Class StyleTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
repast.simphony.visualization.gui.StyleTableModel
- All Implemented Interfaces:
Serializable
,TableModel
- Direct Known Subclasses:
AgentStyleTableModel
,NetStyleTableModel
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
- Author:
- Nick Collier
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String[]
protected List<Pair<ClassListItem,
ClassListItem>> protected List<Pair<ClassListItem,
ClassListItem>> Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRow
(ClassListItem className, ClassListItem styleName) void
deleteRow
(int row) Class<?>
getColumnClass
(int columnIndex) int
getColumnName
(int column) int
getValueAt
(int rowIndex, int columnIndex) boolean
isCellEditable
(int rowIndex, int columnIndex) void
setValueAt
(Object aValue, int rowIndex, int columnIndex) void
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
COLUMN_NAMES
-
items
-
oldItems
-
-
Constructor Details
-
StyleTableModel
public StyleTableModel()
-
-
Method Details
-
addRow
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractTableModel
-
deleteRow
public void deleteRow(int row) -
swapItems
public void swapItems()
-