Package jmri.jmrit.beantable.oblock
Class OBlockTableModel.CurveComboBoxPanel
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
jmri.jmrit.beantable.RowComboBoxPanel
jmri.jmrit.beantable.oblock.OBlockTableModel.CurveComboBoxPanel
- All Implemented Interfaces:
Serializable,CellEditor,TableCellEditor,TableCellRenderer,TreeCellEditor
- Enclosing class:
- OBlockTableModel
Provide a table cell renderer looking like a JComboBox as an
editor/renderer for the OBlock table CURVE column.
This is a lightweight version of the
RowComboBoxPanel RowComboBox cell editor
class, some of the hashtables not needed here since we only need
identical options for all rows in a column.
see jmri.jmrit.signalling.SignallingPanel.SignalMastModel.AspectComboBoxPanel for a full application with
row specific comboBox choices.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate -
Field Summary
Fields inherited from class jmri.jmrit.beantable.RowComboBoxPanel
comboBoxFocusRequester, consumeComboBoxActionEvent, currentRow, editor, prevItem, renderer, startEditingEvent, table, tableListenerAddedFields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponentFields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidOpen combobox (Editor) when clicked.getEditorBox(int row) Call the method in the surrounding method for the OBlockTable.Methods inherited from class jmri.jmrit.beantable.RowComboBoxPanel
eventRowComboBoxActionPerformed, eventTableSelectionChanged, getCellEditorValue, getCurrentRow, getEditorComponent, getRendererComponent, getTableCellEditorComponent, getTableCellRendererComponent, isCellEditable, setItems, updateDataMethods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, setClickCountToStart, shouldSelectCell, stopCellEditingMethods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
-
Constructor Details
-
CurveComboBoxPanel
public CurveComboBoxPanel()
-
-
Method Details
-
eventEditorMousePressed
Description copied from class:RowComboBoxPanelOpen combobox (Editor) when clicked.- Overrides:
eventEditorMousePressedin classRowComboBoxPanel
-
getEditorBox
Call the method in the surrounding method for the OBlockTable.- Overrides:
getEditorBoxin classRowComboBoxPanel- Parameters:
row- the user clicked on in the table- Returns:
- an appropriate combobox for this signal head
-