public static class IlvJTree.DefaultEditor extends DefaultTreeCellEditor implements IlvWrappedEditor
DefaultEditor is a DefaultTreeCellEditor
that properly implements the IlvWrappedEditor
interface. This is necessary in order to support editing of the tree
within a column of an IlvJTable. Therefore, it is
preferable to use this class when creating tree editors for the Gantt
framework.DefaultTreeCellEditor.DefaultTextField, DefaultTreeCellEditor.EditorContainerborderSelectionColor, canEdit, editingComponent, editingContainer, editingIcon, font, lastPath, lastRow, offset, realEditor, renderer, timer, tree| Constructor and Description |
|---|
DefaultEditor(IlvJTree tree,
DefaultTreeCellRenderer renderer)
Constructs a
DefaultEditor for a tree using the
specified renderer and a default editor. |
DefaultEditor(IlvJTree tree,
DefaultTreeCellRenderer renderer,
TreeCellEditor editor)
Constructs a
DefaultEditor for a tree using the
specified renderer and the specified editor. |
| Modifier and Type | Method and Description |
|---|---|
CellEditor |
getRealEditor()
Returns the real editor that this editor is wrapping.
|
actionPerformed, addCellEditorListener, cancelCellEditing, canEditImmediately, createContainer, createTreeCellEditor, determineOffset, getBorderSelectionColor, getCellEditorListeners, getCellEditorValue, getFont, getTreeCellEditorComponent, inHitRegion, isCellEditable, prepareForEditing, removeCellEditorListener, setBorderSelectionColor, setFont, setTree, shouldSelectCell, shouldStartEditingTimer, startEditingTimer, stopCellEditing, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingpublic DefaultEditor(IlvJTree tree, DefaultTreeCellRenderer renderer)
DefaultEditor for a tree using the
specified renderer and a default editor.tree - The tree.renderer - The tree renderer.public DefaultEditor(IlvJTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor)
DefaultEditor for a tree using the
specified renderer and the specified editor. (Use this constructor
for specialized editing.)tree - The tree.renderer - The tree renderer.editor - The tree editor.public CellEditor getRealEditor()
getRealEditor().getTableCellEditorComponent() or
getRealEditor().getTreeCellEditorComponent() should
be the actual editing component.getRealEditor in interface IlvWrappedEditor© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.