Class SimulationPanel.PreloadTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
table.ExactTableModel
common.panels.SimulationPanel.PreloadTableModel
- All Implemented Interfaces:
Serializable, TableModel, ModelHandlesRowHeader, PrototypedTableModel
- Enclosing class:
SimulationPanel
Model for Preload table
Rows represent classes, columns stations.
- Author:
- Bertoli Marco Date: 16-set-2005 Time: 14.01.02 Modified by Francesco D'Aquino 11/11/2005
- See Also:
-
Field Summary
Fields inherited from class ExactTableModel
prototype, rowHeaderPrototypeFields inherited from class AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear(int row, int col) Class<?> getColumnClass(int columnIndex) intgetColumnName(int index) getPrototype(int i) intprotected ObjectgetRowName(int rowIndex) protected ObjectgetValueAtImpl(int rowIndex, int columnIndex) booleanisCellEditable(int rowIndex, int columnIndex) voidsetValueAt(Object value, int rowIndex, int columnIndex) Methods inherited from class ExactTableModel
getValueAtMethods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Constructor Details
-
PreloadTableModel
public PreloadTableModel()
-
-
Method Details
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getPrototype
- Specified by:
getPrototypein interfacePrototypedTableModel- Overrides:
getPrototypein classExactTableModel- Returns:
- a prototypical data item for column i. This is typically a maximum-length item used for autmatically sizing columns.
-
getValueAtImpl
- Specified by:
getValueAtImplin classExactTableModel- Returns:
- the object at (rowIndex, columnIndex)
-
getRowName
- Specified by:
getRowNamein classExactTableModel- Returns:
- the header for row
rowIndex
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
clear
public void clear(int row, int col) - Overrides:
clearin classExactTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-