Package jmri.jmrit.signalling
Class SignallingPanel.BlockModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.signalling.SignallingPanel.TableModel
-
- jmri.jmrit.signalling.SignallingPanel.BlockModel
-
- All Implemented Interfaces:
java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
- Enclosing class:
- SignallingPanel
class SignallingPanel.BlockModel extends SignallingPanel.TableModel
TableModel for selecting SML control Blocks and Block 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 BlockModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getColumnClass(int c)
int
getColumnCount()
java.lang.String
getColumnName(int col)
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, isCellEditable, propertyChange
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
-
-
-
Constructor Detail
-
BlockModel
BlockModel()
-
-
Method Detail
-
getRowCount
public int getRowCount()
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCount
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnCount
in classSignallingPanel.TableModel
-
getValueAt
public java.lang.Object getValueAt(int r, int c)
-
getColumnClass
public java.lang.Class<?> getColumnClass(int c)
- Specified by:
getColumnClass
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnClass
in classSignallingPanel.TableModel
-
getColumnName
public java.lang.String getColumnName(int col)
- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classSignallingPanel.TableModel
-
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
-
-