Class GraphPanel.LinesTable.ComboEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
jmva.panels.GraphPanel.LinesTable.ComboEditor
- All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor, TreeCellEditor
- Direct Known Subclasses:
GraphPanel.LinesTable.ComboAlgoEditor
- Enclosing class:
GraphPanel.LinesTable
Inner class used as a comboBox editor
- Version:
- Date: JAN-2015
- Author:
- Bertoli Marco Date: 1-giu-2006 Time: 11.01.29, Cerotti Fixed results retrieval according to reference station
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class DefaultCellEditor
DefaultCellEditor.EditorDelegate -
Field Summary
FieldsFields inherited from class DefaultCellEditor
clickCountToStart, delegate, editorComponentFields inherited from class AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
ConstructorsConstructorDescriptionComboEditor(JComboBox<?> comboBox) Constructs aDefaultCellEditorobject that uses a combo box. -
Method Summary
Modifier and TypeMethodDescriptionReturns selected index - 2 (so -1 means all classes and -2 or -3 means no selection)Methods inherited from class DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTableCellEditorComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditingMethods inherited from class AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CellEditor
addCellEditorListener, removeCellEditorListener
-
Field Details
-
combo
-
-
Constructor Details
-
ComboEditor
Constructs aDefaultCellEditorobject that uses a combo box.- Parameters:
comboBox- aJComboBoxobject
-
-
Method Details
-
getCellEditorValue
Returns selected index - 2 (so -1 means all classes and -2 or -3 means no selection)- Specified by:
getCellEditorValuein interfaceCellEditor- Overrides:
getCellEditorValuein classDefaultCellEditor
-