Package groovy.swing.table
Class TableMap
java.lang.Object
javax.swing.table.AbstractTableModel
groovy.swing.table.TableMap
- All Implemented Interfaces:
Serializable
,EventListener
,TableModelListener
,TableModel
- Direct Known Subclasses:
TableSorter
In a chain of data manipulators some behaviour is common. TableMap
provides most of this behaviour and can be subclassed by filters
that only need to override a handful of specific methods. 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.
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColumnClass
(int aColumn) int
getColumnName
(int aColumn) getModel()
int
getValueAt
(int aRow, int aColumn) boolean
isCellEditable
(int row, int column) void
setModel
(TableModel model) void
setValueAt
(Object aValue, int aRow, int aColumn) void
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
model
-
-
Constructor Details
-
TableMap
public TableMap()
-
-
Method Details
-
getModel
-
setModel
-
getValueAt
- Specified by:
getValueAt
in interfaceTableModel
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
getRowCount
public int getRowCount()- Specified by:
getRowCount
in interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCount
in interfaceTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int column) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
tableChanged
- Specified by:
tableChanged
in interfaceTableModelListener
-