|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectetomica.graphics.Device
etomica.graphics.DeviceTable
public class DeviceTable
Presents a table of numeric properties that can be edited by typing in values.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class etomica.graphics.Device |
|---|
Device.ActionSet |
| Field Summary |
|---|
| Fields inherited from class etomica.graphics.Device |
|---|
controller, unit |
| Constructor Summary | |
|---|---|
DeviceTable(String[] columnNames)
|
|
DeviceTable(TableModel tableModel)
|
|
| Method Summary | |
|---|---|
int[] |
getSelectedRows()
Returns the indices of all the selected rows on the table. |
Component |
graphic(Object obj)
Returns the top level panel that the table components sit on. |
void |
initCellEditor(TableModel tableModel)
|
static void |
main(String[] args)
main method to demonstrate and test this class. |
void |
setPreferredSize(int width,
int height)
Set the preferred size attribute of the scrolled window the table sits on. |
void |
setSize(int width,
int height)
Set the size attribute of the scrolled window the table sits on. |
void |
setTitle(String title)
Set the title of the border surrounding the table. |
| Methods inherited from class etomica.graphics.Device |
|---|
doAction, getController, getDimension, getPostAction, getPreAction, getUnit, graphic, setController, setPostAction, setPreAction, setUnit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceTable(String[] columnNames)
public DeviceTable(TableModel tableModel)
| Method Detail |
|---|
public void initCellEditor(TableModel tableModel)
public void setPreferredSize(int width,
int height)
width - height -
public void setSize(int width,
int height)
width - height - public void setTitle(String title)
title - public int[] getSelectedRows()
public Component graphic(Object obj)
graphic in interface GraphicalElementgraphic in class Deviceobj - An object that might be used to specify the graphic that the GraphicalElement is to return.
In most cases the GraphicalElement ignores this parameter, and it can be set to null.
Device,
Displaypublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||