Uses of Class javax.swing.JTree

Uses in package javax.swing.plaf

Methods with parameter type javax.swing.JTree

void
Cancels editing a tree cell, discarding any entered value.
TreePath
TreeUI.getClosestPathForLocation(JTree tree, int x, int y)
Finds the path that is closest to the specified position.
TreePath
Retrieves the tree cell that is currently being edited.
Rectangle
Determines the geometric extent of the label that is drawn for a path.
TreePath
TreeUI.getPathForRow(JTree tree, int row)
Creates a TreePath for the specified row.
int
Counts how many rows are currently displayed.
int
Determines in which row a TreePath is currently being displayed.
boolean
Determines whether the user is currently editing a tree cell.
void
Starts a session to edit a tree cell.
boolean
Stops editing a tree cell, committing the entered value into the tree’s model.

Uses in package javax.swing.plaf.multi

Methods with parameter type javax.swing.JTree

void
Calls the TreeUI.cancelEditing(JTree) method for all the UI delegates managed by this MultiTreeUI.
TreePath
Calls the TreeUI.getClosestPathForLocation(JTree,int,int) method for all the UI delegates managed by this MultiTreeUI, returning the path for the UI delegate from the primary look and feel.
TreePath
Calls the TreeUI.getEditingPath(JTree) method for all the UI delegates managed by this MultiTreeUI, returning the path for the UI delegate from the primary look and feel.
Rectangle
Calls the TreeUI.getPathBounds(JTree,TreePath) method for all the UI delegates managed by this MultiTreeUI, returning the bounds for the UI delegate from the primary look and feel.
TreePath
Calls the TreeUI.getPathForRow(JTree,int) method for all the UI delegates managed by this MultiTreeUI, returning the path for the UI delegate from the primary look and feel.
int
Calls the TreeUI.getRowCount(JTree) method for all the UI delegates managed by this MultiTreeUI, returning the count for the UI delegate from the primary look and feel.
int
Calls the TreeUI.getRowForPath(JTree,TreePath) method for all the UI delegates managed by this MultiTreeUI, returning the row index for the UI delegate from the primary look and feel.
boolean
Calls the TreeUI.isEditing(JTree) method for all the UI delegates managed by this MultiTreeUI, returning the result for the UI delegate from the primary look and feel.
void
Calls the TreeUI.startEditingAtPath(JTree,TreePath) method for all the UI delegates managed by this MultiTreeUI.
boolean
Calls the TreeUI.stopEditing(JTree) method for all the UI delegates managed by this MultiTreeUI, returning the result for the UI delegate from the primary look and feel.

Uses in package javax.swing

Constructors with parameter type javax.swing.JTree

Constructs an AccessibleJTreeNode

Methods with parameter type javax.swing.JTree

Component
DefaultCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
Sets an initial value for the editor.

Uses in package javax.swing.tree

Constructors with parameter type javax.swing.JTree

Constructs a DefaultTreeCellEditor object for a JTree using the specified renderer and a default editor.
Constructs a DefaultTreeCellEditor object for a JTree using the specified renderer and the specified editor.

Fields of type javax.swing.JTree

JTree
JTree instance listening too.

Methods with parameter type javax.swing.JTree

void
DefaultTreeCellEditor.determineOffset(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
determineOffset
Component
DefaultTreeCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
Configures the editor.
Component
TreeCellEditor.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.
Component
DefaultTreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
Returns a component (in fact this) that can be used to render a tree cell with the specified state.
Component
TreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
Returns a component that has been configured to display one element (or node) in a JTree component.
void
Sets the tree currently editing for.

Uses in package javax.swing.plaf.basic

Fields of type javax.swing.JTree

JTree
Component that we're going to be drawing onto.

Methods with parameter type javax.swing.JTree

void
Cancels the current editing session.
TreePath
Returns the path to the node that is closest to x,y.
TreePath
Returns the path to the element that is being editted.
Rectangle
Returns the Rectangle enclosing the label portion that the last item in path will be drawn to.
TreePath
Returns the path for passed in row.
int
Returns the number of rows that are being displayed.
int
Returns the row that the last item identified in path is visible at.
boolean
Returns true if the tree is being edited.
void
Selects the last item in path and tries to edit it.
boolean
Stops the current editing session.