Class ConditionsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
edu.tufts.hrilab.action.gui.tablemodels.ConditionsTableModel
- All Implemented Interfaces:
Serializable
,TableModel
Model for the JTable containing conditions.
Provides various helper methods and takes care of handling the actual java types.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Model for condition sub-parts (map of predicates to observable state). -
Field Summary
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the table with the above defined column names. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Export the current conditions to an ActionDBEntry Builder object.getColumnClass
(int c) JTable uses this method to determine the default renderer/ editor for each cell.void
Sets the conditions of a DBEntry in the table.Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, 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
-
Constructor Details
-
ConditionsTableModel
Initializes the table with the above defined column names.
-
-
Method Details
-
setConditions
Sets the conditions of a DBEntry in the table.- Parameters:
dbe
- DBEntry
-
exportConditions
Export the current conditions to an ActionDBEntry Builder object.- Parameters:
adbeb
- builder- Returns:
- true if success
-
getColumnClass
JTable uses this method to determine the default renderer/ editor for each cell.- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
- Parameters:
c
- the column being queried- Returns:
- the class represented in the column
-