Class LocationsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.operations.locations.gui.LocationsTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
Table Model for edit of locations used by operations
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JTablestatic final intprotected static final intstatic final intstatic final intstatic final int(package private) List<LocationEditFrame>static final intstatic final int(package private) LocationManagerprotected static final intstatic final intstatic final intstatic final intstatic final intstatic final intfinal intfinal intstatic final intstatic final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Class<?>getColumnClass(int col) intgetColumnName(int col) intgetValueAt(int row, int col) (package private) voidinitTable(LocationsTableFrame frame, JTable table) booleanisCellEditable(int row, int col) voidprotected voidvoidsetSort(int sort) voidsetValueAt(Object value, int row, int col) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
locationManager
-
_table
-
ID_COLUMN
- See Also:
-
NAME_COLUMN
- See Also:
-
TRACK_COLUMN
- See Also:
-
NUMBER_COLUMN
- See Also:
-
LENGTH_COLUMN
- See Also:
-
USED_LENGTH_COLUMN
- See Also:
-
ROLLINGSTOCK_COLUMN
- See Also:
-
CARS_COLUMN
- See Also:
-
LOCOS_COLUMN
- See Also:
-
PICKUPS_COLUMN
- See Also:
-
DROPS_COLUMN
- See Also:
-
DIVISION_COLUMN
- See Also:
-
REPORTER_COLUMN
- See Also:
-
ACTION_COLUMN
- See Also:
-
EDIT_COLUMN
- See Also:
-
SORTBYNAME
- See Also:
-
SORTBYID
- See Also:
-
locationsList
-
frameList
-
-
Constructor Details
-
LocationsTableModel
public LocationsTableModel()
-
-
Method Details
-
setSort
-
initTable
-
setColumnsVisible
-
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
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
dispose
-