Package jmri.jmrit.beantable.signalmast
Class SignalMastTableDataModel.AspectComboBoxPanel
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- jmri.jmrit.beantable.RowComboBoxPanel
-
- jmri.jmrit.beantable.signalmast.SignalMastTableDataModel.AspectComboBoxPanel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
,javax.swing.table.TableCellRenderer
,javax.swing.tree.TreeCellEditor
- Enclosing class:
- SignalMastTableDataModel
public class SignalMastTableDataModel.AspectComboBoxPanel extends RowComboBoxPanel
A row specific Aspect combobox cell editor/renderer- See Also:
- Serialized Form
-
-
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 method getAspectEditorBox() 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 method getAspectEditorBox() 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
-
-