|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
com.ibm.dse.gui.IndexedCollectionTableModel
The IndexedCollectionTableModel class implements a TableModel for SpTable class. It works with an IndexedCollection of KeyedCollections.
Field Summary | |
---|---|
(package private) java.lang.String[] |
columnDataNames
|
(package private) java.lang.String[] |
columnNames
|
(package private) java.util.Hashtable |
columns
|
(package private) int[] |
columnSize
|
(package private) IndexedCollection |
iCol
|
(package private) int |
NbOfColumns
|
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, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableModel |
---|
addTableModelListener, getColumnClass, removeTableModelListener |
Field Detail |
java.lang.String[] columnNames
java.lang.String[] columnDataNames
int[] columnSize
java.util.Hashtable columns
IndexedCollection iCol
int NbOfColumns
Constructor Detail |
public IndexedCollectionTableModel()
public IndexedCollectionTableModel(IndexedCollection c)
c
- com.ibm.dse.base.IndexedCollection, ICol property value.Method Detail |
public int getColumnCount()
getColumnCount
in interface javax.swing.table.TableModel
public java.lang.String getColumnDataName(int columnIndex)
getColumnDataName
in interface SpTableModel
columnIndex
- int, the column.
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
columnIndex
- int, the column.
public int getColumnSize(int columnIndex)
getColumnSize
in interface SpTableModel
columnIndex
- int, the column.
public DataElement getDataElement(int arg1, int arg2)
getDataElement
in interface SpTableModel
arg1
- int, the rowarg2
- int, the column
public IndexedCollection getICol()
getICol
in interface SpTableModel
public int getRowCount()
getRowCount
in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int arg1, int arg2)
getValueAt
in interface javax.swing.table.TableModel
arg1
- int, the rowarg2
- int, the column
public boolean isCellEditable(int arg1, int arg2)
isCellEditable
in interface javax.swing.table.TableModel
public void setICol(IndexedCollection ic)
setICol
in interface SpTableModel
ic
- com.ibm.dse.base.IndexedCollection, the IndexedCollection associated to the modelpublic void setValueAt(java.lang.Object arg1, int arg2, int arg3)
setValueAt
in interface javax.swing.table.TableModel
arg1
- Object, the new valuearg2
- int, the row to be updatedarg3
- int, the column to be updated#getValueAt()
public void updateColumns(VectorEditor v)
updateColumns
in interface SpTableModel
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.
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |