Uses of Class
javax.swing.JTree
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects that combine two or more look and feels.
Provides classes and interfaces for dealing with
javax.swing.JTree
.-
Uses of JTree in javax.swing
Modifier and TypeMethodDescriptionDefaultCellEditor.getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Implements theTreeCellEditor
interface.ModifierConstructorDescriptionAccessibleJTreeNode
(JTree t, TreePath p, Accessible ap) Constructs an AccessibleJTreeNode -
Uses of JTree in javax.swing.plaf
Modifier and TypeMethodDescriptionabstract void
TreeUI.cancelEditing
(JTree tree) Cancels the current editing session.abstract TreePath
TreeUI.getClosestPathForLocation
(JTree tree, int x, int y) Returns the path to the node that is closest to x,y.abstract TreePath
TreeUI.getEditingPath
(JTree tree) Returns the path to the element that is being edited.abstract Rectangle
TreeUI.getPathBounds
(JTree tree, TreePath path) Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.abstract TreePath
TreeUI.getPathForRow
(JTree tree, int row) Returns the path for passed in row.abstract int
TreeUI.getRowCount
(JTree tree) Returns the number of rows that are being displayed.abstract int
TreeUI.getRowForPath
(JTree tree, TreePath path) Returns the row that the last item identified in path is visible at.abstract boolean
Returns true if the tree is being edited.abstract void
TreeUI.startEditingAtPath
(JTree tree, TreePath path) Selects the last item in path and tries to edit it.abstract boolean
TreeUI.stopEditing
(JTree tree) Stops the current editing session. -
Uses of JTree in javax.swing.plaf.basic
Modifier and TypeFieldDescriptionprotected JTree
BasicTreeUI.tree
Component that we're going to be drawing into.Modifier and TypeMethodDescriptionvoid
BasicTreeUI.cancelEditing
(JTree tree) Cancels the current editing session.BasicTreeUI.getClosestPathForLocation
(JTree tree, int x, int y) Returns the path to the node that is closest to x,y.BasicTreeUI.getEditingPath
(JTree tree) Returns the path to the element that is being edited.BasicTreeUI.getPathBounds
(JTree tree, TreePath path) Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.BasicTreeUI.getPathForRow
(JTree tree, int row) Returns the path for passed in row.int
BasicTreeUI.getRowCount
(JTree tree) Returns the number of rows that are being displayed.int
BasicTreeUI.getRowForPath
(JTree tree, TreePath path) Returns the row that the last item identified in path is visible at.boolean
Returns true if the tree is being edited.void
BasicTreeUI.startEditingAtPath
(JTree tree, TreePath path) Selects the last item in path and tries to edit it.boolean
BasicTreeUI.stopEditing
(JTree tree) Stops the current editing session. -
Uses of JTree in javax.swing.plaf.multi
Modifier and TypeMethodDescriptionvoid
MultiTreeUI.cancelEditing
(JTree a) Invokes thecancelEditing
method on each UI handled by this object.MultiTreeUI.getClosestPathForLocation
(JTree a, int b, int c) Invokes thegetClosestPathForLocation
method on each UI handled by this object.MultiTreeUI.getEditingPath
(JTree a) Invokes thegetEditingPath
method on each UI handled by this object.MultiTreeUI.getPathBounds
(JTree a, TreePath b) Invokes thegetPathBounds
method on each UI handled by this object.MultiTreeUI.getPathForRow
(JTree a, int b) Invokes thegetPathForRow
method on each UI handled by this object.int
MultiTreeUI.getRowCount
(JTree a) Invokes thegetRowCount
method on each UI handled by this object.int
MultiTreeUI.getRowForPath
(JTree a, TreePath b) Invokes thegetRowForPath
method on each UI handled by this object.boolean
Invokes theisEditing
method on each UI handled by this object.void
MultiTreeUI.startEditingAtPath
(JTree a, TreePath b) Invokes thestartEditingAtPath
method on each UI handled by this object.boolean
MultiTreeUI.stopEditing
(JTree a) Invokes thestopEditing
method on each UI handled by this object. -
Uses of JTree in javax.swing.tree
Modifier and TypeFieldDescriptionprotected JTree
DefaultTreeCellEditor.tree
JTree
instance listening too.Modifier and TypeMethodDescriptionprotected void
DefaultTreeCellEditor.determineOffset
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Determine the offset.DefaultTreeCellEditor.getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Configures the editor.TreeCellEditor.getTreeCellEditorComponent
(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Sets an initial value for the editor.DefaultTreeCellRenderer.getTreeCellRendererComponent
(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) Configures the renderer based on the passed in components.TreeCellRenderer.getTreeCellRendererComponent
(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) Sets the value of the current tree cell tovalue
.protected void
Sets the tree currently editing for.ModifierConstructorDescriptionDefaultTreeCellEditor
(JTree tree, DefaultTreeCellRenderer renderer) Constructs aDefaultTreeCellEditor
object for a JTree using the specified renderer and a default editor.DefaultTreeCellEditor
(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor) Constructs aDefaultTreeCellEditor
object for aJTree
using the specified renderer and the specified editor.