public interface TreeCellEditor extends CellEditor
TreeCellEditor is used by the JTree component to
edit individual tree elements (nodes).| Modifier and Type | Method and Description |
|---|---|
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. |
addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditingComponent getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
JTree component. The arguments to this method are used
to pass in the value and state of the element to be edited.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.