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:
- java.io.Serializable,- javax.swing.CellEditor,- javax.swing.table.TableCellEditor,- javax.swing.table.TableCellRenderer,- javax.swing.tree.TreeCellEditor
 - Enclosing class:
- OBlockTableModel
 
 public static class OBlockTableModel.CurveComboBoxPanel extends RowComboBoxPanel 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 RowComboBoxPanelRowComboBox 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:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class jmri.jmrit.beantable.RowComboBoxPanelcomboBoxFocusRequester, consumeComboBoxActionEvent, currentRow, editor, prevItem, renderer, startEditingEvent, table, tableListenerAdded
 
- 
 - 
Constructor SummaryConstructors Constructor Description CurveComboBoxPanel()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voideventEditorMousePressed()Open combobox (Editor) when clicked.protected javax.swing.JComboBox<java.lang.String>getEditorBox(int row)Call the method in the surrounding method for the OBlockTable.- 
Methods inherited from class jmri.jmrit.beantable.RowComboBoxPaneleventRowComboBoxActionPerformed, eventTableSelectionChanged, getCellEditorValue, getCurrentRow, getEditorComponent, getRendererComponent, getTableCellEditorComponent, getTableCellRendererComponent, isCellEditable, setItems, updateData
 - 
Methods inherited from class javax.swing.DefaultCellEditorcancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, setClickCountToStart, shouldSelectCell, stopCellEditing
 - 
Methods inherited from class javax.swing.AbstractCellEditoraddCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
- 
 
- 
- 
- 
Constructor Detail- 
CurveComboBoxPanelpublic CurveComboBoxPanel() 
 
- 
 - 
Method Detail- 
eventEditorMousePressedprotected final void eventEditorMousePressed() Description copied from class:RowComboBoxPanelOpen combobox (Editor) when clicked.- Overrides:
- eventEditorMousePressedin class- RowComboBoxPanel
 
 - 
getEditorBoxprotected javax.swing.JComboBox<java.lang.String> getEditorBox(int row) Call the method in the surrounding method for the OBlockTable.- Overrides:
- getEditorBoxin class- RowComboBoxPanel
- Parameters:
- row- the user clicked on in the table
- Returns:
- an appropriate combobox for this signal head
 
 
- 
 
-