Class TrackTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.operations.OperationsTableModel
jmri.jmrit.operations.locations.gui.TrackTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableColumnModelListener,TableModel
- Direct Known Subclasses:
InterchangeTableModel,SpurTableModel,StagingTableModel,YardTableModel
public abstract class TrackTableModel
extends OperationsTableModel
implements PropertyChangeListener, TableColumnModelListener
Table Model for edit of tracks used by operations
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.jmrit.operations.OperationsTableModel
OperationsTableModel.MyTableCellRenderer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Locationprotected Stringprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final int(package private) TrackEditFrameprotected static final intprotected static final intprotected static final intFields inherited from class jmri.jmrit.operations.OperationsTableModel
_index, _roadNumber, _table, locationName, showAll, trackNameFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoiddispose()protected abstract voideditTrack(int row) Class<?>getColumnClass(int col) intgetColumnName(int col) intgetValueAt(int row, int col) protected voidbooleanisCellEditable(int row, int col) voidvoidsetValueAt(Object value, int row, int col) Methods inherited from class jmri.jmrit.operations.OperationsTableModel
filterList, findRollingStockByRoadNumber, getForegroundColor, getIndex, initTableMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
_location
-
_tracksList
-
_trackType
-
_dirty
-
ID_COLUMN
- See Also:
-
NAME_COLUMN
- See Also:
-
LENGTH_COLUMN
- See Also:
-
USED_LENGTH_COLUMN
- See Also:
-
RESERVED_COLUMN
- See Also:
-
MOVES_COLUMN
- See Also:
-
CARS_COLUMN
- See Also:
-
LOCOS_COLUMN
- See Also:
-
PICKUPS_COLUMN
- See Also:
-
SETOUT_COLUMN
- See Also:
-
SCHEDULE_COLUMN
- See Also:
-
ROAD_COLUMN
- See Also:
-
LOAD_COLUMN
- See Also:
-
DEFAULT_LOAD_COLUMN
- See Also:
-
CUSTOM_LOAD_COLUMN
- See Also:
-
DISABLE_LOAD_CHANGE_COLUMN
- See Also:
-
QUICK_SERVICE_COLUMN
- See Also:
-
SHIP_COLUMN
- See Also:
-
RESTRICTION_COLUMN
- See Also:
-
DESTINATION_COLUMN
- See Also:
-
ROUTED_COLUMN
- See Also:
-
HOLD_COLUMN
- See Also:
-
POOL_COLUMN
- See Also:
-
PLANPICKUP_COLUMN
- See Also:
-
ALT_TRACK_COLUMN
- See Also:
-
TRACK_PRIORITY_COLUMN
- See Also:
-
ORDER_COLUMN
- See Also:
-
TRAIN_DIRECTION_COLUMN
- See Also:
-
REPORTER_COLUMN
- See Also:
-
COMMENT_COLUMN
- See Also:
-
EDIT_COLUMN
- See Also:
-
HIGHESTCOLUMN
- See Also:
-
tef
-
-
Constructor Details
-
TrackTableModel
public TrackTableModel()
-
-
Method Details
-
initTable
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
editTrack
-
dispose
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
columnAdded
- Specified by:
columnAddedin interfaceTableColumnModelListener
-
columnRemoved
- Specified by:
columnRemovedin interfaceTableColumnModelListener
-
columnMoved
- Specified by:
columnMovedin interfaceTableColumnModelListener
-
columnMarginChanged
- Specified by:
columnMarginChangedin interfaceTableColumnModelListener
-
columnSelectionChanged
- Specified by:
columnSelectionChangedin interfaceTableColumnModelListener
-