org.freehep.util.parameterdatabase.editor
Class SelectorEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
org.freehep.util.parameterdatabase.editor.SelectorEditor
- All Implemented Interfaces:
- CellEditor, Serializable, TableCellEditor, TreeCellEditor
- public class SelectorEditor
- extends DefaultCellEditor
This is a generic editor which allows all subclasses of the Selector class
to be edited in a table or tree with a JComboBox.
- See Also:
- Serialized Form
- Source Code:
- SelectorEditor.java
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelectorEditor
public SelectorEditor()
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- This sets the initial value for the editor. We override this to ensure
that the underlying JComboBox has the correct values loaded into it.
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
- This sets the initial value for the editor. We override this to ensure
that the underlying JComboBox has the correct values loaded into it.
Copyright © 2000-2004 FreeHEP, All Rights Reserved.