Package jmri.jmrit.beantable.oblock
Class BlockPathTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.beantable.oblock.BlockPathTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
GUI to define the OPaths within an OBlock. An OPath is the setting of turnouts
from one Portal to another Portal within an OBlock. It may also be assigned
a length.
This file is part of JMRI.
This file is part of JMRI.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int(package private) DecimalFormatstatic final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleandeletePath(OPath path) protected OBlockgetBlock()Class<?>getColumnClass(int col) intgetColumnName(int col) intgetPreferredWidth(int col) intgetValueAt(int rowIndex, int columnIndex) (package private) voidbooleanisCellEditable(int row, int col) voidvoidvoidsetValueAt(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
-
FROM_PORTAL_COLUMN
- See Also:
-
NAME_COLUMN
- See Also:
-
TO_PORTAL_COLUMN
- See Also:
-
LENGTHCOL
- See Also:
-
UNITSCOL
- See Also:
-
EDIT_COL
- See Also:
-
DELETE_COL
- See Also:
-
NUMCOLS
- See Also:
-
twoDigit
-
-
Constructor Details
-
BlockPathTableModel
public BlockPathTableModel() -
BlockPathTableModel
-
-
Method Details
-
removeListener
-
getBlock
-
initTempRow
void initTempRow() -
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel
-
getRowCount
- Specified by:
getRowCountin interfaceTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
deletePath
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getPreferredWidth
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-