java.lang.Object
javax.swing.table.AbstractTableModel
org.jpo.gui.TableMap
- All Implemented Interfaces:
Serializable
,EventListener
,TableModelListener
,TableModel
- Direct Known Subclasses:
TableSorter
- 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) By default, implement TableModel by forwarding all messages to the model.boolean
isCellEditable
(int row, int column) void
setModel
(TableModel model) void
setValueAt
(Object aValue, int aRow, int aColumn) Set cell valuevoid
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, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
model
-
-
Constructor Details
-
TableMap
public TableMap()
-
-
Method Details
-
getModel
-
setModel
-
getValueAt
By default, implement TableModel by forwarding all messages to the model.- Specified by:
getValueAt
in interfaceTableModel
- Parameters:
aRow
- a rowaColumn
- a column- Returns:
- the value
-
setValueAt
Set cell value- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
- Parameters:
aValue
- a valueaRow
- a rowaColumn
- a column
-
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
Implementation of the TableModelListener interface, By default forward all events to all the listeners.- Specified by:
tableChanged
in interfaceTableModelListener
- Parameters:
e
- event
-