javax.swing.tree

Interface TreeCellEditor

public interface TreeCellEditor extends CellEditor

A TreeCellEditor is used by the {@link JTree} component to edit individual tree elements (nodes).
Method Summary
ComponentgetTreeCellEditorComponent(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 {@link JTree} component.

Method Detail

getTreeCellEditorComponent

public 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 {@link 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.