Package jmri.jmrit.beantable.oblock
Class BlockPortalTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.beantable.oblock.BlockPortalTableModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
GUI to define Portal-Block-Portal combos for OBlocks.
No differences between _desktop and _tabbed code, so _tabbed not stored.
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 TypeFieldDescription(package private) OBlockTableModelstatic final intstatic final intstatic final intstatic final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getColumnClass(int col) intgetColumnName(int col) intgetPreferredWidth(int col) intgetValueAt(int row, int col) booleanisCellEditable(int row, int col) voidvoidsetValueAt(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
-
BLOCK_NAME_COLUMN
- See Also:
-
PORTAL_NAME_COLUMN
- See Also:
-
OPPOSING_BLOCK_NAME
- See Also:
-
NUMCOLS
- See Also:
-
_oBlockModel
-
-
Constructor Details
-
BlockPortalTableModel
-
-
Method Details
-
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
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getPreferredWidth
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-