Package adams.gui.flow.tree
Class CellEditor
- java.lang.Object
-
- javax.swing.tree.DefaultTreeCellEditor
-
- adams.gui.flow.tree.CellEditor
-
- All Implemented Interfaces:
ActionListener
,EventListener
,CellEditor
,TreeSelectionListener
,TreeCellEditor
public class CellEditor extends DefaultTreeCellEditor
Simply avoids the editing of the HTML of the tree nodes.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.tree.DefaultTreeCellEditor
DefaultTreeCellEditor.DefaultTextField, DefaultTreeCellEditor.EditorContainer
-
-
Field Summary
-
Fields inherited from class javax.swing.tree.DefaultTreeCellEditor
borderSelectionColor, canEdit, editingComponent, editingContainer, editingIcon, font, lastPath, lastRow, offset, realEditor, renderer, timer, tree
-
-
Constructor Summary
Constructors Constructor Description CellEditor(JTree tree, DefaultTreeCellRenderer renderer)
Constructs aDefaultTreeCellEditor
object for a JTree using the specified renderer and a default editor.CellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor)
Constructs aDefaultTreeCellEditor
object for aJTree
using the specified renderer and the specified editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCellEditable(EventObject event)
If therealEditor
returns true to this message,prepareForEditing
is messaged and true is returned.-
Methods inherited from class javax.swing.tree.DefaultTreeCellEditor
actionPerformed, addCellEditorListener, cancelCellEditing, canEditImmediately, createContainer, createTreeCellEditor, determineOffset, getBorderSelectionColor, getCellEditorListeners, getCellEditorValue, getFont, getTreeCellEditorComponent, inHitRegion, prepareForEditing, removeCellEditorListener, setBorderSelectionColor, setFont, setTree, shouldSelectCell, shouldStartEditingTimer, startEditingTimer, stopCellEditing, valueChanged
-
-
-
-
Constructor Detail
-
CellEditor
public CellEditor(JTree tree, DefaultTreeCellRenderer renderer)
Constructs aDefaultTreeCellEditor
object for a JTree using the specified renderer and a default editor. (Use this constructor for normal editing.)- Parameters:
tree
- aJTree
objectrenderer
- aDefaultTreeCellRenderer
object
-
CellEditor
public CellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor)
Constructs aDefaultTreeCellEditor
object for aJTree
using the specified renderer and the specified editor. (Use this constructor for specialized editing.)- Parameters:
tree
- aJTree
objectrenderer
- aDefaultTreeCellRenderer
objecteditor
- aTreeCellEditor
object
-
-
Method Detail
-
isCellEditable
public boolean isCellEditable(EventObject event)
If therealEditor
returns true to this message,prepareForEditing
is messaged and true is returned.- Specified by:
isCellEditable
in interfaceCellEditor
- Overrides:
isCellEditable
in classDefaultTreeCellEditor
- Returns:
- always false
-
-