Package jmri.jmrix.rfid.swing.tagcarwin
Class TableDataModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrix.rfid.swing.tagcarwin.TableDataModel
- All Implemented Interfaces:
ActionListener,ItemListener,PropertyChangeListener,Serializable,EventListener,TableModel
public class TableDataModel
extends AbstractTableModel
implements PropertyChangeListener, ItemListener, ActionListener
The table model for displaying rows of incoming RFID tags and associating them with cars
and locations. This is where most of the logic resides, though the actually receiving of the table
is done in the parent
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final int(package private) AssociateFrameprotected static final int(package private) CarEditFrameprotected static final intprotected static final int(package private) booleanprotected static final int(package private) TagMonitorPaneprotected static final intprotected booleanprotected JTableprotected static final int(package private) List<TagCarItem>protected static final intprotected static final intprotected static final intprotected static final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadd(TagCarItem newItem) voidClass<?>getColumnClass(int col) intgetColumnName(int col) (package private) ComponentgetLocationRowEditor(JTable table, Object value, boolean isSelected, int row, int column) int(package private) ComponentgetTrackRowEditor(JTable table, Object value, boolean isSelected, int row, int column) getValueAt(int rowIndex, int columnIndex) (package private) voidbooleanisCellEditable(int row, int col) voidvoidvoidsetForceSetLocation(boolean forceSetLocation) voidvoidvoidsetRowMax(int rowMax) voidsetValueAt(Object value, int row, int col) voidshowTimestamps(boolean showTimestamps) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
tableParent
-
TIME_COLUMN
- See Also:
-
ROAD_COLUMN
- See Also:
-
CAR_NUMBER_COLUMN
- See Also:
-
TAG_COLUMN
- See Also:
-
LOCATION_COLUMN
- See Also:
-
TRACK_COLUMN
- See Also:
-
TRAIN_COLUMN
- See Also:
-
TRAIN_POSITION_COLUMN
- See Also:
-
DESTINATION_COLUMN
- See Also:
-
ACTION1_COLUMN
- See Also:
-
ACTION2_COLUMN
- See Also:
-
COLUMN_COUNT
- See Also:
-
tagList
-
locations
-
trackLists
-
parentPane
-
cef
-
associateFrame
-
forceSetLocation
boolean forceSetLocation -
showTimestamps
-
-
Constructor Details
-
TableDataModel
-
TableDataModel
public TableDataModel()
-
-
Method Details
-
setForceSetLocation
-
showTimestamps
-
setRowMax
-
clearTable
-
add
-
setLast
-
setParent
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
getLocationRowEditor
-
getTrackRowEditor
-
initTable
void initTable() -
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
itemStateChanged
- Specified by:
itemStateChangedin interfaceItemListener
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-