javax.swing.tree
public interface TreeCellEditor extends CellEditor
TreeCellEditor
is used by the {@link 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 {@link JTree} component. |
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.