Package jmri.jmrit.signalling
Class SignallingPanel.SignalMastModel.AspectComboBoxPanel
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- jmri.jmrit.beantable.RowComboBoxPanel
-
- jmri.jmrit.signalling.SignallingPanel.SignalMastModel.AspectComboBoxPanel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
,javax.swing.table.TableCellRenderer
,javax.swing.tree.TreeCellEditor
- Enclosing class:
- SignallingPanel.SignalMastModel
public class SignallingPanel.SignalMastModel.AspectComboBoxPanel extends RowComboBoxPanel
A row specific Aspect combobox cell editor/renderer.This is a full version of the
RowComboBoxPanel
RowComboBox cell editor class, including all hashtables and row specific comboBox choices.
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.beantable.RowComboBoxPanel
comboBoxFocusRequester, consumeComboBoxActionEvent, currentRow, editor, prevItem, renderer, startEditingEvent, table, tableListenerAdded
-
-
Constructor Summary
Constructors Constructor Description AspectComboBoxPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
eventEditorMousePressed()
Open combobox (Editor) when clicked.protected javax.swing.JComboBox<java.lang.String>
getEditorBox(int row)
Call methodSignallingPanel.SignalMastModel.getAspectEditorBox(int)
in the surrounding method for the SignalMastTable-
Methods inherited from class jmri.jmrit.beantable.RowComboBoxPanel
eventRowComboBoxActionPerformed, eventTableSelectionChanged, getCellEditorValue, getCurrentRow, getEditorComponent, getRendererComponent, getTableCellEditorComponent, getTableCellRendererComponent, isCellEditable, setItems, updateData
-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, setClickCountToStart, shouldSelectCell, stopCellEditing
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
-
-
-
-
Constructor Detail
-
AspectComboBoxPanel
public AspectComboBoxPanel()
-
-
Method Detail
-
eventEditorMousePressed
protected final void eventEditorMousePressed()
Description copied from class:RowComboBoxPanel
Open combobox (Editor) when clicked.- Overrides:
eventEditorMousePressed
in classRowComboBoxPanel
-
getEditorBox
protected javax.swing.JComboBox<java.lang.String> getEditorBox(int row)
Call methodSignallingPanel.SignalMastModel.getAspectEditorBox(int)
in the surrounding method for the SignalMastTable- Overrides:
getEditorBox
in classRowComboBoxPanel
- Parameters:
row
- Index of the row clicked in the table- Returns:
- an appropriate combobox for this signal mast
-
-