Package repast.simphony.ui.table
Class ProbePropertyTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
repast.simphony.ui.table.ProbePropertyTableModel
- All Implemented Interfaces:
Serializable
,TableModel
TableModel for Agent tables
- Author:
- Eric Tatara
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorDescriptionProbePropertyTableModel
(List<List<ProbedPropertiesFinder.Property>> agentPropList) -
Method Summary
Modifier and TypeMethodDescriptionRecursively find all Components in the provided container.Class<?>
getColumnClass
(int col) protected void
initColumnData
(List<List<ProbedPropertiesFinder.Property>> agentPropList) Sets the cell values in each row, column from data in the agent properties list.protected void
initColumns
(List<List<ProbedPropertiesFinder.Property>> agentPropList) Configure the columns from data in the agent properties list.boolean
isCellEditable
(int row, int col) Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
columnMap
-
colClassMap
-
columEditable
-
listeners
-
-
Constructor Details
-
ProbePropertyTableModel
-
-
Method Details
-
initColumns
Configure the columns from data in the agent properties list.- Parameters:
agentPropList
-
-
initColumnData
Sets the cell values in each row, column from data in the agent properties list.- Parameters:
agentPropList
-
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getAllComponents
Recursively find all Components in the provided container.- Parameters:
c
- the container- Returns:
- a list of components in the container
-
isCellEditable
public boolean isCellEditable(int row, int col) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classDefaultTableModel
-
getListeners
-