DESY ACOP Beans Home

com.cosylab.gui.components.table
Interface ObjectTableEngine

All Known Implementing Classes:
DefaultObjectTableEngine

public interface ObjectTableEngine

ObjectTableEngine is intermediator betwean arbitrary objects and ObjectTableModel structure. It converts objects to TableRows and executes operations on rows.

Author:
Igor Kriznar

Method Summary
 java.lang.String getColumnName(int index)
          Returns name of column.
 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 columnIndex)
          Sets new value which resulted from user interaction with table to the context underlayng kay object.
 

Method Detail

getTableRow

TableRow getTableRow(java.lang.Object key)
Creates new row for key object.

Parameters:
key - key for which row is created
Returns:
new or recycled table row

releaseTableRow

void releaseTableRow(java.lang.Object key,
                     TableRow row)
Signals to factory that row with associated key is no longer in use.

Parameters:
key - kay object for row
row - row to be released

setValue

void setValue(java.lang.Object value,
              java.lang.Object key,
              TableRow row,
              int columnIndex)
Sets new value which resulted from user interaction with table to the context underlayng kay object.

Parameters:
value - new value as user has set with table editors
key - the key object
row - row associated with kay object
columnIndex - DOCUMENT ME!

getColumnName

java.lang.String getColumnName(int index)
Returns name of column. Same order of columns must be used when construction rows.

Returns:
name of column, or null


Copyright © 2010. All Rights Reserved.