suncertify.swingClient.swingTable
Class TableMap
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--suncertify.swingClient.swingTable.TableMap
- Direct Known Subclasses:
- TableSorter
- public class TableMap
- extends javax.swing.table.AbstractTableModel
- implements javax.swing.event.TableModelListener
TableMap implements TableModel by routing all requests to its model, and
TableModelListener by routing all events to its listeners. Inserting
a TableMap which has not been subclassed into a chain of table filters
should have no effect.
- Version:
- 1.4 12/17/97
- See Also:
- Serialized Form
Field Summary |
protected javax.swing.table.TableModel |
model
|
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Method Summary |
java.lang.Class |
getColumnClass(int aColumn)
The method to get the class of the column by calling the
getColumnClass() method of the underlying model. |
int |
getColumnCount()
The method to get the number of rows in the table by calling the
the getColumnCount() of the underlying method. |
java.lang.String |
getColumnName(int aColumn)
The method to get the name of columns by calling the
getColumnName() method of the underlying model. |
javax.swing.table.TableModel |
getModel()
The method to get the underlying model of a table. |
int |
getRowCount()
The method to calculate the row count of the table by calling the
getRowCount() method of the underlying table. |
java.lang.Object |
getValueAt(int aRow,
int aColumn)
The method to calculate the value of a cell by calling the
getValueAt() method of the underlying model. |
boolean |
isCellEditable(int row,
int column)
The method to check whether a column is editable or not by calling
the isCellEditable() method of the underlying model. |
void |
setModel(javax.swing.table.TableModel model)
The method to set the model of a table. |
void |
setValueAt(java.lang.Object aValue,
int aRow,
int aColumn)
The method to set the value of a cell by calling the
setValueAt() method of the underlying model. |
void |
tableChanged(javax.swing.event.TableModelEvent e)
Implementation of the TableModelListener interface,
By default forward all events to all the listeners. |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
removeTableModelListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
model
protected javax.swing.table.TableModel model
TableMap
public TableMap()
getModel
public javax.swing.table.TableModel getModel()
- The method to get the underlying model of a table.
setModel
public void setModel(javax.swing.table.TableModel model)
- The method to set the model of a table.
getValueAt
public java.lang.Object getValueAt(int aRow,
int aColumn)
- The method to calculate the value of a cell by calling the
getValueAt() method of the underlying model.
- Overrides:
- getValueAt in class javax.swing.table.AbstractTableModel
setValueAt
public void setValueAt(java.lang.Object aValue,
int aRow,
int aColumn)
- The method to set the value of a cell by calling the
setValueAt() method of the underlying model.
- Overrides:
- setValueAt in class javax.swing.table.AbstractTableModel
getRowCount
public int getRowCount()
- The method to calculate the row count of the table by calling the
getRowCount() method of the underlying table.
- Overrides:
- getRowCount in class javax.swing.table.AbstractTableModel
getColumnCount
public int getColumnCount()
- The method to get the number of rows in the table by calling the
the getColumnCount() of the underlying method.
- Overrides:
- getColumnCount in class javax.swing.table.AbstractTableModel
getColumnName
public java.lang.String getColumnName(int aColumn)
- The method to get the name of columns by calling the
getColumnName() method of the underlying model.
- Overrides:
- getColumnName in class javax.swing.table.AbstractTableModel
getColumnClass
public java.lang.Class getColumnClass(int aColumn)
- The method to get the class of the column by calling the
getColumnClass() method of the underlying model.
- Overrides:
- getColumnClass in class javax.swing.table.AbstractTableModel
isCellEditable
public boolean isCellEditable(int row,
int column)
- The method to check whether a column is editable or not by calling
the isCellEditable() method of the underlying model.
- Overrides:
- isCellEditable in class javax.swing.table.AbstractTableModel
tableChanged
public void tableChanged(javax.swing.event.TableModelEvent e)
- Implementation of the TableModelListener interface,
By default forward all events to all the listeners.
- Specified by:
- tableChanged in interface javax.swing.event.TableModelListener