|
JSR-209 (Final Approval Ballot) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TreePath | |
javax.microedition.plaf | AGUI provides a Pluggable Look and Feel architecture, similar to that which is defined in Java SE (from which AGUI is subset). |
javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
javax.swing.event | Provides for events fired by Swing components. |
javax.swing.tree | Provides classes and interfaces for dealing with
javax.swing.JTree . |
Uses of TreePath in javax.microedition.plaf |
Methods in javax.microedition.plaf that return TreePath | |
TreePath |
TreeUI.getPathForRow(JTree tree,
int row)
Returns the path for passed in row. |
TreePath |
TreeUI.getClosestPathForLocation(JTree tree,
int x,
int y)
Returns the path to the node that is closest to x,y. |
TreePath |
TreeUI.getEditingPath(JTree tree)
Returns the path to the element that is being edited. |
Methods in javax.microedition.plaf with parameters of type TreePath | |
Rectangle |
TreeUI.getPathBounds(JTree tree,
TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. |
int |
TreeUI.getRowForPath(JTree tree,
TreePath path)
Returns the row that the last item identified in path is visible at. |
void |
TreeUI.startEditingAtPath(JTree tree,
TreePath path)
Selects the last item in path and tries to edit it. |
Uses of TreePath in javax.swing |
Methods in javax.swing that return TreePath | |
TreePath |
JTree.getLeadSelectionPath()
Returns the path identified as the lead. |
TreePath |
JTree.getAnchorSelectionPath()
Returns the path identified as the anchor. |
TreePath |
JTree.getSelectionPath()
Returns the path to the first selected node. |
TreePath[] |
JTree.getSelectionPaths()
Returns the paths of all selected values. |
TreePath |
JTree.getPathForRow(int row)
Returns the path for the specified row. |
TreePath |
JTree.getPathForLocation(int x,
int y)
Returns the path for the node at the specified location. |
TreePath |
JTree.getClosestPathForLocation(int x,
int y)
Returns the path to the node that is closest to x,y. |
TreePath |
JTree.getEditingPath()
Returns the path to the element that is currently being edited. |
protected TreePath[] |
JTree.getPathBetweenRows(int index0,
int index1)
Returns JTreePath instances representing the path
between index0 and index1 (including index1). |
TreePath |
JTree.getNextMatch(java.lang.String prefix,
int startingRow,
Position.Bias bias)
Returns the TreePath to the next tree element that begins with a prefix. |
Methods in javax.swing with parameters of type TreePath | |
boolean |
JTree.isPathEditable(TreePath path)
Returns isEditable . |
void |
JTree.setSelectionPath(TreePath path)
Selects the node identified by the specified path. |
void |
JTree.setSelectionPaths(TreePath[] paths)
Selects the nodes identified by the specified array of paths. |
void |
JTree.setLeadSelectionPath(TreePath newPath)
Sets the path identifies as the lead. |
void |
JTree.setAnchorSelectionPath(TreePath newPath)
Sets the path identified as the anchor. |
void |
JTree.addSelectionPath(TreePath path)
Adds the node identified by the specified TreePath
to the current selection. |
void |
JTree.addSelectionPaths(TreePath[] paths)
Adds each path in the array of paths to the current selection. |
boolean |
JTree.isPathSelected(TreePath path)
Returns true if the item identified by the path is currently selected. |
java.util.Enumeration |
JTree.getExpandedDescendants(TreePath parent)
Returns an Enumeration of the descendants of the
path parent that
are currently expanded. |
boolean |
JTree.hasBeenExpanded(TreePath path)
Returns true if the node identified by the path has ever been expanded. |
boolean |
JTree.isExpanded(TreePath path)
Returns true if the node identified by the path is currently expanded, |
boolean |
JTree.isCollapsed(TreePath path)
Returns true if the value identified by path is currently collapsed, this will return false if any of the values in path are currently not being displayed. |
void |
JTree.makeVisible(TreePath path)
Ensures that the node identified by path is currently viewable. |
boolean |
JTree.isVisible(TreePath path)
Returns true if the value identified by path is currently viewable, which means it is either the root or all of its parents are expanded. |
Rectangle |
JTree.getPathBounds(TreePath path)
Returns the Rectangle that the specified node will be drawn
into. |
void |
JTree.scrollPathToVisible(TreePath path)
Makes sure all the path components in path are expanded (except for the last path component) and scrolls so that the node identified by the path is displayed. |
int |
JTree.getRowForPath(TreePath path)
Returns the row that displays the node identified by the specified path. |
void |
JTree.expandPath(TreePath path)
Ensures that the node identified by the specified path is expanded and viewable. |
void |
JTree.collapsePath(TreePath path)
Ensures that the node identified by the specified path is collapsed and viewable. |
void |
JTree.startEditingAtPath(TreePath path)
Selects the node identified by the specified path and initiates editing. |
void |
JTree.removeSelectionPath(TreePath path)
Removes the node identified by the specified path from the current selection. |
void |
JTree.removeSelectionPaths(TreePath[] paths)
Removes the nodes identified by the specified paths from the current selection. |
void |
JTree.fireTreeExpanded(TreePath path)
Notifies all listeners that have registered interest for notification on this event type. |
void |
JTree.fireTreeCollapsed(TreePath path)
Notifies all listeners that have registered interest for notification on this event type. |
void |
JTree.fireTreeWillExpand(TreePath path)
Notifies all listeners that have registered interest for notification on this event type. |
void |
JTree.fireTreeWillCollapse(TreePath path)
Notifies all listeners that have registered interest for notification on this event type. |
protected void |
JTree.setExpandedState(TreePath path,
boolean state)
Sets the expanded state of this JTree . |
protected java.util.Enumeration |
JTree.getDescendantToggledPaths(TreePath parent)
Returns an Enumeration of TreePaths
that have been expanded that
are descendants of parent . |
protected boolean |
JTree.removeDescendantSelectedPaths(TreePath path,
boolean includePath)
Removes any paths in the selection that are descendants of path . |
void |
JTree.EmptySelectionModel.setSelectionPaths(TreePath[] pPaths)
A null implementation that selects nothing. |
void |
JTree.EmptySelectionModel.addSelectionPaths(TreePath[] paths)
A null implementation that adds nothing. |
void |
JTree.EmptySelectionModel.removeSelectionPaths(TreePath[] paths)
A null implementation that removes nothing. |
Uses of TreePath in javax.swing.event |
Fields in javax.swing.event declared as TreePath | |
protected TreePath[] |
TreeSelectionEvent.paths
Paths this event represents. |
protected TreePath |
TreeSelectionEvent.oldLeadSelectionPath
leadSelectionPath before the paths changed, may be null. |
protected TreePath |
TreeSelectionEvent.newLeadSelectionPath
leadSelectionPath after the paths changed, may be null. |
protected TreePath |
TreeExpansionEvent.path
Path to the value this event represents. |
protected TreePath |
TreeModelEvent.path
Path to the parent of the nodes that have changed. |
Methods in javax.swing.event that return TreePath | |
TreePath[] |
TreeSelectionEvent.getPaths()
Returns the paths that have been added or removed from the selection. |
TreePath |
TreeSelectionEvent.getPath()
Returns the first path element. |
TreePath |
TreeSelectionEvent.getOldLeadSelectionPath()
Returns the path that was previously the lead path. |
TreePath |
TreeSelectionEvent.getNewLeadSelectionPath()
Returns the current lead path. |
TreePath |
TreeExpansionEvent.getPath()
Returns the path to the value that has been expanded/collapsed. |
TreePath |
TreeModelEvent.getTreePath()
For all events, except treeStructureChanged, returns the parent of the changed nodes. |
Methods in javax.swing.event with parameters of type TreePath | |
boolean |
TreeSelectionEvent.isAddedPath(TreePath path)
Returns true if the path identified by path was added to the selection. |
Constructors in javax.swing.event with parameters of type TreePath | |
TreeSelectionEvent(java.lang.Object source,
TreePath[] paths,
boolean[] areNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
Represents a change in the selection of a TreeSelectionModel. |
|
TreeSelectionEvent(java.lang.Object source,
TreePath path,
boolean isNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
Represents a change in the selection of a TreeSelectionModel. |
|
TreeExpansionEvent(java.lang.Object source,
TreePath path)
Constructs a TreeExpansionEvent object. |
|
TreeModelEvent(java.lang.Object source,
TreePath path,
int[] childIndices,
java.lang.Object[] children)
Used to create an event when nodes have been changed, inserted, or removed, identifying the path to the parent of the modified items as a TreePath object. |
|
TreeModelEvent(java.lang.Object source,
TreePath path)
Used to create an event when the node structure has changed in some way, identifying the path to the root of the modified subtree as a TreePath object. |
Uses of TreePath in javax.swing.tree |
Fields in javax.swing.tree declared as TreePath | |
protected TreePath[] |
DefaultTreeSelectionModel.selection
Paths that are currently selected. |
protected TreePath |
DefaultTreeSelectionModel.leadPath
Last path that was added. |
Methods in javax.swing.tree that return TreePath | |
TreePath |
TreeSelectionModel.getSelectionPath()
Returns the first path in the selection. |
TreePath[] |
TreeSelectionModel.getSelectionPaths()
Returns the paths in the selection. |
TreePath |
TreeSelectionModel.getLeadSelectionPath()
Returns the last path that was added. |
TreePath |
TreePath.pathByAddingChild(java.lang.Object child)
Returns a new path containing all the elements of this object plus child . |
TreePath |
TreePath.getParentPath()
Returns a path containing all the elements of this object, except the last path component. |
TreePath |
DefaultTreeSelectionModel.getSelectionPath()
Returns the first path in the selection. |
TreePath[] |
DefaultTreeSelectionModel.getSelectionPaths()
Returns the paths in the selection. |
TreePath |
DefaultTreeSelectionModel.getLeadSelectionPath()
Returns the last path that was added. |
Methods in javax.swing.tree with parameters of type TreePath | |
void |
TreeSelectionModel.setSelectionPath(TreePath path)
Sets the selection to path. |
void |
TreeSelectionModel.setSelectionPaths(TreePath[] paths)
Sets the selection to path. |
void |
TreeSelectionModel.addSelectionPath(TreePath path)
Adds path to the current selection. |
void |
TreeSelectionModel.addSelectionPaths(TreePath[] paths)
Adds paths to the current selection. |
void |
TreeSelectionModel.removeSelectionPath(TreePath path)
Removes path from the selection. |
void |
TreeSelectionModel.removeSelectionPaths(TreePath[] paths)
Removes paths from the selection. |
boolean |
TreeSelectionModel.isPathSelected(TreePath path)
Returns true if the path, path , is in the current
selection. |
void |
TreeModel.valueForPathChanged(TreePath path,
java.lang.Object newValue)
Messaged when the user has altered the value for the item identified by path to newValue . |
boolean |
TreePath.isDescendant(TreePath aTreePath)
Returns true if aTreePath is a
descendant of this
TreePath. |
void |
DefaultTreeSelectionModel.setSelectionPath(TreePath path)
Sets the selection to path. |
void |
DefaultTreeSelectionModel.setSelectionPaths(TreePath[] pPaths)
Sets the selection to the paths in paths. |
void |
DefaultTreeSelectionModel.addSelectionPath(TreePath path)
Adds path to the current selection. |
void |
DefaultTreeSelectionModel.addSelectionPaths(TreePath[] paths)
Adds paths to the current selection. |
void |
DefaultTreeSelectionModel.removeSelectionPath(TreePath path)
Removes path from the selection. |
void |
DefaultTreeSelectionModel.removeSelectionPaths(TreePath[] paths)
Removes paths from the selection. |
boolean |
DefaultTreeSelectionModel.isPathSelected(TreePath path)
Returns true if the path, path ,
is in the current selection. |
protected boolean |
DefaultTreeSelectionModel.arePathsContiguous(TreePath[] paths)
Returns true if the paths are contiguous, or this object has no RowMapper. |
protected boolean |
DefaultTreeSelectionModel.canPathsBeAdded(TreePath[] paths)
Used to test if a particular set of TreePath s can
be added. |
protected boolean |
DefaultTreeSelectionModel.canPathsBeRemoved(TreePath[] paths)
Returns true if the paths can be removed without breaking the continuity of the model. |
protected void |
DefaultTreeSelectionModel.notifyPathChange(java.util.Vector changedPaths,
TreePath oldLeadSelection)
Notifies listeners of a change in path. |
void |
DefaultTreeModel.valueForPathChanged(TreePath path,
java.lang.Object newValue)
This sets the user object of the TreeNode identified by path and posts a node changed. |
int[] |
RowMapper.getRowsForPaths(TreePath[] path)
Returns the rows that the TreePath instances in path
are being displayed at. |
Constructors in javax.swing.tree with parameters of type TreePath | |
TreePath(TreePath parent,
java.lang.Object lastElement)
Constructs a new TreePath, which is the path identified by parent ending in lastElement . |
|
JSR-209 (Final Approval Ballot) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |