Package jmri.jmrit.beantable
Class SignalHeadTableModel.AppearanceComboBoxPanel
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- jmri.jmrit.beantable.RowComboBoxPanel
-
- jmri.jmrit.beantable.SignalHeadTableModel.AppearanceComboBoxPanel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.CellEditor
,javax.swing.table.TableCellEditor
,javax.swing.table.TableCellRenderer
,javax.swing.tree.TreeCellEditor
- Enclosing class:
- SignalHeadTableModel
class SignalHeadTableModel.AppearanceComboBoxPanel extends RowComboBoxPanel
A row specific Appearance combobox cell editor/renderer.
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.beantable.RowComboBoxPanel
comboBoxFocusRequester, consumeComboBoxActionEvent, currentRow, editor, prevItem, renderer, startEditingEvent, table, tableListenerAdded
-
-
Constructor Summary
Constructors Constructor Description AppearanceComboBoxPanel()
-
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 the method in the surrounding method for the SignalHeadTable.-
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
-
AppearanceComboBoxPanel
AppearanceComboBoxPanel()
-
-
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 the method in the surrounding method for the SignalHeadTable.- Overrides:
getEditorBox
in classRowComboBoxPanel
- Parameters:
row
- the user clicked on in the table- Returns:
- an appropriate combobox for this signal head
-
-