Package jmri.jmrit.operations.locations
Class SpurTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.operations.OperationsTableModel
-
- jmri.jmrit.operations.locations.TrackTableModel
-
- jmri.jmrit.operations.locations.SpurTableModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.event.TableColumnModelListener
,javax.swing.table.TableModel
public class SpurTableModel extends TrackTableModel
Table Model for edit of spurs used by operations- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.operations.OperationsTableModel
OperationsTableModel.MyTableCellRenderer
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.operations.locations.TrackTableModel
_dirty, _location, _table, _tracksList, _trackType, ALT_TRACK_COLUMN, CARS_COLUMN, COMMENT_COLUMN, CUSTOM_LOAD_COLUMN, DEFAULT_LOAD_COLUMN, DESTINATION_COLUMN, DISABLE_LOAD_CHANGE_COLUMN, EDIT_COLUMN, HIGHESTCOLUMN, HOLD_COLUMN, ID_COLUMN, LENGTH_COLUMN, LOAD_COLUMN, LOCOS_COLUMN, MOVES_COLUMN, NAME_COLUMN, ORDER_COLUMN, PICKUPS_COLUMN, PLANPICKUP_COLUMN, POOL_COLUMN, REPORTER_COLUMN, RESERVED_COLUMN, RESTRICTION_COLUMN, ROAD_COLUMN, ROUTED_COLUMN, SCHEDULE_COLUMN, SETOUT_COLUMN, SHIP_COLUMN, tef, TRAIN_DIRECTION_COLUMN, USED_LENGTH_COLUMN
-
-
Constructor Summary
Constructors Constructor Description SpurTableModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
editTrack(int row)
java.lang.String
getColumnName(int col)
protected java.awt.Color
getForegroundColor(int row)
void
initTable(javax.swing.JTable table, Location location)
void
propertyChange(java.beans.PropertyChangeEvent e)
-
Methods inherited from class jmri.jmrit.operations.locations.TrackTableModel
columnAdded, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, dispose, getColumnClass, getColumnCount, getRowCount, getValueAt, initTable, isCellEditable, setValueAt
-
Methods inherited from class jmri.jmrit.operations.OperationsTableModel
initTable
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
SpurTableModel
public SpurTableModel()
-
-
Method Detail
-
editTrack
protected void editTrack(int row)
- Specified by:
editTrack
in classTrackTableModel
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classTrackTableModel
-
getForegroundColor
protected java.awt.Color getForegroundColor(int row)
- Overrides:
getForegroundColor
in classOperationsTableModel
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
- Overrides:
propertyChange
in classTrackTableModel
-
-