Package jmri.jmrit.beantable
Class SignalGroupTableAction.SignalGroupSignalHeadModel
java.lang.Object
javax.swing.table.AbstractTableModel
jmri.jmrit.beantable.SignalGroupTableAction.SignalGroupOutputModel
jmri.jmrit.beantable.SignalGroupTableAction.SignalGroupSignalHeadModel
- All Implemented Interfaces:
PropertyChangeListener,Serializable,EventListener,TableModel
- Enclosing class:
- SignalGroupTableAction
class SignalGroupTableAction.SignalGroupSignalHeadModel
extends SignalGroupTableAction.SignalGroupOutputModel
Table Model to manage Signal Head outputs in a Signal Group.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class jmri.jmrit.beantable.SignalGroupTableAction.SignalGroupOutputModel
INCLUDE_COLUMN, SNAME_COLUMN, STATE_COLUMN, UNAME_COLUMNFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final voidaddPcl()voiddispose()Remove listener from Signal Head in group.getBean(int r) Fetch existing bean object for a row in the Signal Head table.Class<?>getColumnClass(int c) intgetColumnName(int c) getDisplayName(int r) Fetch User Name (System Name if User Name is empty) for a row in the Signal Head table.intThe number of rows in the Signal Head table.getValueAt(int r, int c) Fill in info cells of the Signal Head table on the Add/Edit Group Edit pane.booleanisCellEditable(int r, int c) voidvoidsetValueAt(Object type, int r, int c) Store info from the cells of the Signal Head table of the Add/Edit Group Edit pane.Methods inherited from class jmri.jmrit.beantable.SignalGroupTableAction.SignalGroupOutputModel
propertyChangeMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
STATE_ON_COLUMN
- See Also:
-
STATE_OFF_COLUMN
- See Also:
-
EDIT_COLUMN
- See Also:
-
-
Constructor Details
-
SignalGroupSignalHeadModel
-
-
Method Details
-
addPcl
-
isCellEditable
- Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classSignalGroupTableAction.SignalGroupOutputModel
-
getColumnCount
- Specified by:
getColumnCountin interfaceTableModel- Overrides:
getColumnCountin classSignalGroupTableAction.SignalGroupOutputModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classSignalGroupTableAction.SignalGroupOutputModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classSignalGroupTableAction.SignalGroupOutputModel
-
setSetToState
-
getRowCount
The number of rows in the Signal Head table.- Returns:
- The number of rows
-
getValueAt
Fill in info cells of the Signal Head table on the Add/Edit Group Edit pane.- Parameters:
r- Index of the cell rowc- Index of the cell column
-
getDisplayName
Fetch User Name (System Name if User Name is empty) for a row in the Signal Head table.- Parameters:
r- index in the signal head table of head to be edited- Returns:
- name of signal head
-
getBean
Fetch existing bean object for a row in the Signal Head table.- Parameters:
r- index in the signal head table of head to be edited- Returns:
- bean object of the head
-
setValueAt
Store info from the cells of the Signal Head table of the Add/Edit Group Edit pane.- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractTableModel- Parameters:
type- The contents from the tabler- Index of the cell row of the entryc- Index of the cell column of the entry
-
dispose
Remove listener from Signal Head in group. Called on Delete.
-