IBM Branch Transformation Toolkit Javadoc

com.ibm.dse.gui
Interface SpTableModel

All Superinterfaces:
javax.swing.table.TableModel
All Known Implementing Classes:
IndexedCollectionTableModel

public interface SpTableModel
extends javax.swing.table.TableModel

The SpTableModel interface is implemented by IndexedCollectionTableModel, the model that SpTable uses. It should be used by any other model developped to be an SpTable model.


Method Summary
 java.lang.String getColumnDataName(int columnIndex)
          Returns the name of the data column at columnIndex.
 int getColumnSize(int columnIndex)
          Returns the size of the column at columnIndex.
 DataElement getDataElement(int arg1, int arg2)
          Returns the cell DataElement at row=arg1 and column=arg2.
 IndexedCollection getICol()
          Gets the IndexedCollection property value.
 void setICol(IndexedCollection ic)
          Sets the IndexedCollection of KeyedCollections to be associated to the table model.
 void updateColumns(VectorEditor v)
          Updates the table columns.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getColumnDataName

public java.lang.String getColumnDataName(int columnIndex)
Returns the name of the data column at columnIndex.

Parameters:
columnIndex - int, the column.
Returns:
java.lang.String - the column data name

getColumnSize

public int getColumnSize(int columnIndex)
Returns the size of the column at columnIndex.

Parameters:
columnIndex - int, the column
Returns:
int - the column size

getDataElement

public DataElement getDataElement(int arg1,
                                  int arg2)
Returns the cell DataElement at row=arg1 and column=arg2.

Parameters:
arg1 - int, the row
arg2 - int, the column
Returns:
DataElement - the DataElement at the specified cell

getICol

public IndexedCollection getICol()
Gets the IndexedCollection property value.

Returns:
com.ibm.dse.base.IndexedCollection, the IndexedCollection associated to the model

setICol

public void setICol(IndexedCollection ic)
Sets the IndexedCollection of KeyedCollections to be associated to the table model.

Parameters:
ic - IndexedCollection, the IndexedCollection associated to the model

updateColumns

public void updateColumns(VectorEditor v)
Updates the table columns.

Parameters:
v - VectorEditor, the vector with the columns information

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005