Package jmri.jmrit.beantable.oblock
Class SignalTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.beantable.oblock.SignalTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
GUI to define the Signals within an OBlock.
This file is part of JMRI.
Can be used with two interfaces:
- original "desktop" InternalFrames (parent class TableFrames, an extended JmriJFrame)
- JMRI standard Tabbed tables (parent class JPanel)
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) TableFrames(package private) PortalManagerstatic final intstatic final intstatic final int(package private) booleanstatic 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 TypeMethodDescriptionprotected StringcheckDuplicateSignal(NamedBean signal) protected voiddeleteSignal(SignalTableModel.SignalRow signalRow) booleaneditMode()Class<?>getColumnClass(int col) intgetColumnName(int col) static intgetPreferredWidth(int col) intgetValueAt(int rowIndex, int columnIndex) voidinit()(package private) voidbooleanisCellEditable(int row, int col) voidvoidsetEditMode(boolean editing) 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
-
NAME_COLUMN
- See Also:
-
FROM_BLOCK_COLUMN
- See Also:
-
PORTAL_COLUMN
- See Also:
-
TO_BLOCK_COLUMN
- See Also:
-
LENGTHCOL
- See Also:
-
UNITSCOL
- See Also:
-
DELETE_COL
- See Also:
-
EDIT_COL
- See Also:
-
NUMCOLS
- See Also:
-
_lastIdx
int _lastIdx -
_portalMgr
-
_parent
-
inEditMode
boolean inEditMode -
twoDigit
-
-
Constructor Details
-
SignalTableModel
-
-
Method Details
-
init
-
initTempRow
void initTempRow() -
checkDuplicateSignal
-
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
-
deleteSignal
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getPreferredWidth
-
editMode
-
setEditMode
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-