|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--com.ibm.dse.gui.IndexedCollectionTableModel
The IndexedCollectionTableModel class implements a TableModel for SpTable class. It works with an IndexedCollection of KeyedCollections.
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
IndexedCollectionTableModel()
This constructor creates an IndexedCollectionTableModel object. |
|
IndexedCollectionTableModel(IndexedCollection c)
This constructor creates an IndexedCollectionTableModel object. |
Method Summary | |
int |
getColumnCount()
Returns the number of columns. |
java.lang.String |
getColumnDataName(int columnIndex)
Returns the name of the data column at columnIndex. |
java.lang.String |
getColumnName(int columnIndex)
Returns the name of the 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. |
int |
getRowCount()
Returns the number of rows. |
java.lang.Object |
getValueAt(int arg1,
int arg2)
Returns the cell value at row=arg1 and column=arg2. |
boolean |
isCellEditable(int arg1,
int arg2)
Returns true for all cells. |
void |
setICol(IndexedCollection ic)
Sets the IndexedCollection property value. |
void |
setValueAt(java.lang.Object arg1,
int arg2,
int arg3)
Sets the value for the element row(arg2) and column(arg3). |
void |
updateColumns(VectorEditor v)
Updates column values with the vector passed as argument. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
getColumnClass,
removeTableModelListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public IndexedCollectionTableModel()
public IndexedCollectionTableModel(IndexedCollection c)
c
- com.ibm.dse.base.IndexedCollection, ICol property value.Method Detail |
public int getColumnCount()
public java.lang.String getColumnDataName(int columnIndex)
columnIndex
- int, the column.public java.lang.String getColumnName(int columnIndex)
columnIndex
- int, the column.public int getColumnSize(int columnIndex)
columnIndex
- int, the column.public DataElement getDataElement(int arg1, int arg2)
arg1
- int, the rowarg2
- int, the columnpublic IndexedCollection getICol()
public int getRowCount()
public java.lang.Object getValueAt(int arg1, int arg2)
arg1
- int, the rowarg2
- int, the columnpublic boolean isCellEditable(int arg1, int arg2)
public void setICol(IndexedCollection ic)
ic
- com.ibm.dse.base.IndexedCollection, the IndexedCollection associated to the modelpublic void setValueAt(java.lang.Object arg1, int arg2, int arg3)
arg1
- Object, the new valuearg2
- int, the row to be updatedarg3
- int, the column to be updated#getValueAt()
public void updateColumns(VectorEditor v)
v
- com.ibm.dse.gui.VectorEditor, a vector that contains as first element the table name
and in the rest elements each of the ColumnFormatters corresponding to each column table.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |