Package jmri.jmrit.signalling
Class SignallingPanel.SignalMastModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.signalling.SignallingPanel.TableModel
jmri.jmrit.signalling.SignallingPanel.SignalMastModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
- Enclosing class:
- SignallingPanel
Set up table for selecting Signal Masts and an Aspect on each mast
Updated for TableRowSorter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA row specific Aspect combobox cell editor/renderer.Nested classes/interfaces inherited from class jmri.jmrit.signalling.SignallingPanel.TableModel
SignallingPanel.TableModel.StateComboBoxPanel -
Field Summary
FieldsFields inherited from class jmri.jmrit.signalling.SignallingPanel.TableModel
INCLUDE_COLUMN, SNAME_COLUMN, STATE_COLUMN, UNAME_COLUMNFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigStateColumn(JTable table) Customize the SignalMast State (Appearance) column to show an appropriate ComboBox of available Aspects.getAspectEditorBox(int row) Provide a JComboBox element to display inside the JPanel CellEditor.getAspectVector(int row) Holds a Hashtable of valid aspects per signal mast used by getAspectEditorBox()Class<?>getColumnClass(int c) getColumnName(int col) intgetValueAt(int r, int c) voidsetValueAt(Object type, int r, int c) Methods inherited from class jmri.jmrit.signalling.SignallingPanel.TableModel
dispose, getColumnCount, getStateEditorBox, isCellEditable, propertyChangeMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
editorMap
-
-
Constructor Details
-
SignalMastModel
-
-
Method Details
-
getRowCount
-
getValueAt
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classSignallingPanel.TableModel
-
getValue
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classSignallingPanel.TableModel
-
configStateColumn
Customize the SignalMast State (Appearance) column to show an appropriate ComboBox of available Aspects.- Overrides:
configStateColumnin classSignallingPanel.TableModel- Parameters:
table- a JTable of Signal Masts
-
getAspectEditorBox
Provide a JComboBox element to display inside the JPanel CellEditor. When not yet present, create, store and return a new one.- Parameters:
row- Index number (in TableDataModel)- Returns:
- A combobox containing the valid aspect names for this mast
-
getAspectVector
Holds a Hashtable of valid aspects per signal mast used by getAspectEditorBox()- Parameters:
row- Index number (in TableDataModel)- Returns:
- The Vector of valid aspect names for this mast to show in the JComboBox
-