Diamond Control Suite 3.0

diamondedge.swing.grid
Interface TableFormat

All Known Implementing Classes:
TableModelFormat

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

getDataValue

Object getDataValue(int row)
Returns the value for the bound column at specified row.


getTextValue

Object getTextValue(int row)
Returns the value for the display column at specified row.


getIndexOf

int getIndexOf(Object dataValue)
Returns the row index for the given data value.


getRowCount

int getRowCount()
Returns the number of rows in the table.


getColumnCount

int getColumnCount()
Returns the number of columns in the table.


getValueAt

Object getValueAt(int rowIndex,
                  int columnIndex)
Returns the value for the cell at columnIndex and rowIndex.


setValueAt

void setValueAt(Object aValue,
                int rowIndex,
                int columnIndex)
Sets the value in the cell at columnIndex and rowIndex to aValue.


Diamond Control Suite 3.0

Diamond Edge and Diamond Control Suite are trademarks or registered trademarks of Diamond Edge, Inc. Copyright 1999-2005 Diamond Edge, Inc. All Rights Reserved.