Package jmri.jmrit.signalling
Class SignallingPanel.SensorModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.signalling.SignallingPanel.TableModel
-
- jmri.jmrit.signalling.SignallingPanel.SensorModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Enclosing class:
- SignallingPanel
class SignallingPanel.SensorModel extends SignallingPanel.TableModel
TableModel for selecting SML control Sensors and Sensor Set To State.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jmri.jmrit.signalling.SignallingPanel.TableModel
SignallingPanel.TableModel.StateComboBoxPanel
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.signalling.SignallingPanel.TableModel
INCLUDE_COLUMN, SNAME_COLUMN, STATE_COLUMN, UNAME_COLUMN
-
-
Constructor Summary
Constructors Constructor Description SensorModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getRowCount()
(package private) javax.swing.JComboBox<java.lang.String>
getStateEditorBox(int row)
Provide a static JComboBox element to display inside the JPanel CellEditor.java.lang.Object
getValueAt(int r, int c)
void
setValueAt(java.lang.Object type, int r, int c)
-
Methods inherited from class jmri.jmrit.signalling.SignallingPanel.TableModel
configStateColumn, dispose, getColumnClass, getColumnCount, getColumnName, isCellEditable, propertyChange
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
SensorModel
SensorModel()
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getValueAt
public java.lang.Object getValueAt(int r, int c)
-
setValueAt
public void setValueAt(java.lang.Object type, int r, int c)
- Specified by:
setValueAt
in interfacejavax.swing.table.TableModel
- Overrides:
setValueAt
in classjavax.swing.table.AbstractTableModel
-
getStateEditorBox
javax.swing.JComboBox<java.lang.String> getStateEditorBox(int row)
Provide a static JComboBox element to display inside the JPanel CellEditor. When not yet present, create, store and return a new one.- Overrides:
getStateEditorBox
in classSignallingPanel.TableModel
- Parameters:
row
- Index number (in TableDataModel)- Returns:
- A combobox containing the valid aspect names for this mast
-
-