|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cosylab.gui.components.table.DefaultObjectTableEngine
public class DefaultObjectTableEngine
Default implementation of the ObjectTableEngine.
Constructor Summary | |
---|---|
DefaultObjectTableEngine()
|
Method Summary | |
---|---|
java.lang.String |
getColumnName(int i)
Returns name of column. |
protected TableCell[] |
getTableCells(java.lang.Object key)
Override this method to convert key object to own array of TableCell instances. |
TableRow |
getTableRow(java.lang.Object key)
Creates new row for key object. |
void |
releaseTableRow(java.lang.Object key,
TableRow row)
Signals to factory that row with associated key is no longer in use. |
void |
setValue(java.lang.Object value,
java.lang.Object key,
TableRow row,
int col)
Dummy implementation: casts row element to TableCell and sets value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultObjectTableEngine()
Method Detail |
---|
public TableRow getTableRow(java.lang.Object key)
ObjectTableEngine
getTableRow
in interface ObjectTableEngine
key
- key for which row is created
public void releaseTableRow(java.lang.Object key, TableRow row)
ObjectTableEngine
releaseTableRow
in interface ObjectTableEngine
key
- kay object for rowrow
- row to be releasedprotected TableCell[] getTableCells(java.lang.Object key)
TableCell
instances. Default implementation creates for
each object own TableCell
and returns it in an array.
key
- key object
public void setValue(java.lang.Object value, java.lang.Object key, TableRow row, int col)
setValue
in interface ObjectTableEngine
value
- new value as user has set with table editorskey
- the key objectrow
- row associated with kay objectcol
- DOCUMENT ME!ObjectTableEngine.setValue(Object, Object, TableRow, int)
public java.lang.String getColumnName(int i)
ObjectTableEngine
getColumnName
in interface ObjectTableEngine
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |