|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableFormat
This class allows a mapping to be specified between the actual data value in the cell and a set of values. The actual value in the grid will correspond to the value in the TableModel for the selected row and the BoundColumn. The value displayed in the grid will correspond to the value in the TableModel for the selected row and the TextColumn. When editing in a DsGrid, a multi-column drop-down ComboBox will be used as the editor.
Method Summary | |
---|---|
int |
getColumnCount()
Returns the number of columns in the table. |
Object |
getDataValue(int row)
Returns the value for the bound column at specified row. |
int |
getIndexOf(Object dataValue)
Returns the row index for the given data value. |
int |
getRowCount()
Returns the number of rows in the table. |
Object |
getTextValue(int row)
Returns the value for the display column at specified row. |
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the value for the cell at columnIndex and
rowIndex . |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex)
Sets the value in the cell at columnIndex and
rowIndex to aValue . |
Method Detail |
---|
Object getDataValue(int row)
Object getTextValue(int row)
int getIndexOf(Object dataValue)
int getRowCount()
int getColumnCount()
Object getValueAt(int rowIndex, int columnIndex)
columnIndex
and
rowIndex
.
void setValueAt(Object aValue, int rowIndex, int columnIndex)
columnIndex
and
rowIndex
to aValue
.
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |