javax.swing.tree
Interface TreeCellEditor

All Superinterfaces:
CellEditor
All Known Implementing Classes:
DefaultCellEditor, DefaultTreeCellEditor

public interface TreeCellEditor
extends CellEditor

A TreeCellEditor is used by the JTree component to edit individual tree elements (nodes).


Method Summary
 Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
          Returns a component that has been configured to edit one element (or node) in a JTree component.
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
 

Method Detail

getTreeCellEditorComponent

Component getTreeCellEditorComponent(JTree tree,
                                     Object value,
                                     boolean isSelected,
                                     boolean expanded,
                                     boolean leaf,
                                     int row)
Returns a component that has been configured to edit one element (or node) in a JTree component. The arguments to this method are used to pass in the value and state of the element to be edited.

Parameters:
tree - the tree.
value - the value to render.
isSelected - is the tree element selected?
expanded - is the tree element expanded?
leaf - is the tree element a leaf node?
row - the row index.
Returns:
A component that is configured for editing the tree element.