|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TreePath | |
com.sun.java.swing | Provides a set of "lightweight" (all-Java |
com.sun.java.swing.event | Provides for events fired by Swing components. |
com.sun.java.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. |
com.sun.java.swing.tree | Provides classes and interfaces for dealing with java.awt.swing. |
Uses of TreePath in com.sun.java.swing |
Methods in com.sun.java.swing that return TreePath | |
TreePath | JTree.getSelectionPath()
Returns the path to the first selected node. |
TreePath[] | JTree.getSelectionPaths()
Returns the paths of all selected values. |
TreePath | JTree.getLeadSelectionPath()
Returns the path of the last node added to the selection. |
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). |
Methods in com.sun.java.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.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. |
Enumeration | JTree.getExpandedDescendants(TreePath parent)
Returns an Enumeration of the descendants of path 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 exapnded , Otherwise, this method returns false. |
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)
Notify all listeners that have registered interest for notification on this event type. |
void | JTree.fireTreeCollapsed(TreePath path)
Notify all listeners that have registered interest for notification on this event type. |
void | JTree.fireTreeWillExpand(TreePath path)
Notify all listeners that have registered interest for notification on this event type. |
void | JTree.fireTreeWillCollapse(TreePath path)
Notify 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 the receiver. |
protected Enumeration | JTree.getDescendantToggledPaths(TreePath parent)
Returns an Enumeration of TreePaths that have been expanded that are descendants of parent . |
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 |
Constructors in com.sun.java.swing with parameters of type TreePath | |
JTree.AccessibleJTree.AccessibleJTreeNode.JTree.AccessibleJTree.AccessibleJTreeNode(JTree t,
TreePath p,
Accessible ap)
Constructs an AccessibleJTreeNode |
Uses of TreePath in com.sun.java.swing.event |
Fields in com.sun.java.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 com.sun.java.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()
Returns the TreePath object identifying the changed node. |
Methods in com.sun.java.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 com.sun.java.swing.event with parameters of type TreePath | |
TreeSelectionEvent.TreeSelectionEvent(Object source,
TreePath[] paths,
boolean[] areNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
Represents a change in the selection of a TreeSelectionModel. paths identifies the paths that have been either added or removed from the selection. |
|
TreeSelectionEvent.TreeSelectionEvent(Object source,
TreePath path,
boolean isNew,
TreePath oldLeadSelectionPath,
TreePath newLeadSelectionPath)
Represents a change in the selection of a TreeSelectionModel. path identifies the path that have been either added or removed from the selection. |
|
TreeExpansionEvent.TreeExpansionEvent(Object source,
TreePath path)
|
|
TreeModelEvent.TreeModelEvent(Object source,
TreePath path,
int[] childIndices,
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.TreeModelEvent(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 com.sun.java.swing.plaf |
Methods in com.sun.java.swing.plaf that return TreePath | |
abstract TreePath | TreeUI.getPathForRow(JTree tree,
int row)
Returns the path for passed in row. |
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. |
Methods in com.sun.java.swing.plaf with parameters of type TreePath | |
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 int | TreeUI.getRowForPath(JTree tree,
TreePath path)
Returns the row that the last item identified in path is visible at. |
abstract void | TreeUI.startEditingAtPath(JTree tree,
TreePath path)
Selects the last item in path and tries to edit it. |
Uses of TreePath in com.sun.java.swing.tree |
Fields in com.sun.java.swing.tree declared as TreePath | |
protected TreePath[] | DefaultTreeSelectionModel.selection
Paths that are currently selected. |
protected TreePath | DefaultTreeSelectionModel.leadPath
Last path that was added. |
protected TreePath | DefaultTreeCellEditor.lastPath
last path that was selected. |
Methods in com.sun.java.swing.tree that return TreePath | |
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. |
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(Object child)
Returns a new path containing all the elements of this receiver plus child . |
TreePath | TreePath.getParentPath()
Returns a path containing all the elements of the receiver, accept the last path component. |
abstract TreePath | AbstractLayoutCache.getPathForRow(int row)
Returns the path for passed in row. |
abstract TreePath | AbstractLayoutCache.getPathClosestTo(int x,
int y)
Returns the path to the node that is closest to x,y. |
TreePath | FixedHeightLayoutCache.getPathForRow(int row)
Returns the path for passed in row. |
TreePath | FixedHeightLayoutCache.getPathClosestTo(int x,
int y)
Returns the path to the node that is closest to x,y. |
TreePath | VariableHeightLayoutCache.getPathForRow(int row)
Returns the path for passed in row. |
TreePath | VariableHeightLayoutCache.getPathClosestTo(int x,
int y)
Returns the path to the node that is closest to x,y. |
Methods in com.sun.java.swing.tree with parameters of type 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. |
protected boolean | DefaultTreeSelectionModel.canPathsBeAdded(TreePath[] paths)
Returns true if the paths can be added without breaking the continuity of the model. |
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(Vector changedPaths,
TreePath oldLeadSelection)
Notifies listeners of a change in path. changePaths should contain instances of PathPlaceHolder. |
int[] | RowMapper.getRowsForPaths(TreePath[] path)
Returns the rows that the TreePath instances in path
are being displayed at. |
void | DefaultTreeModel.valueForPathChanged(TreePath path,
Object newValue)
This sets the user object of the TreeNode identified by path and posts a node changed. |
void | TreeSelectionModel.setSelectionPath(TreePath path)
Sets the selection to path. |
void | TreeSelectionModel.setSelectionPaths(TreePath[] paths)
Sets the selection to the the paths. |
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. |
boolean | TreePath.isDescendant(TreePath aTreePath)
Returns true if the specified node is a descendant of this TreePath. |
abstract boolean | AbstractLayoutCache.isExpanded(TreePath path)
Returns true if the value identified by row is currently expanded. |
abstract Rectangle | AbstractLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
|
abstract int | AbstractLayoutCache.getRowForPath(TreePath path)
Returns the row that the last item identified in path is visible at. |
abstract Enumeration | AbstractLayoutCache.getVisiblePathsFrom(TreePath path)
Returns an Enumerator that increments over the visible paths starting at the passed in location. |
abstract int | AbstractLayoutCache.getVisibleChildCount(TreePath path)
Returns the number of visible children for row. |
abstract void | AbstractLayoutCache.setExpandedState(TreePath path,
boolean isExpanded)
Marks the path path expanded state to
isExpanded . |
abstract boolean | AbstractLayoutCache.getExpandedState(TreePath path)
Returns true if the path is expanded, and visible. |
abstract void | AbstractLayoutCache.invalidatePathBounds(TreePath path)
Instructs the LayoutCache that the bounds for path
are invalid, and need to be updated. |
int[] | AbstractLayoutCache.getRowsForPaths(TreePath[] paths)
Returns the rows that the TreePath instances in path
are being displayed at. |
void | FixedHeightLayoutCache.invalidatePathBounds(TreePath path)
Does nothing, FixedHeightLayoutCache doesn't cache width, and that is all that could change. |
boolean | FixedHeightLayoutCache.isExpanded(TreePath path)
Returns true if the value identified by row is currently expanded. |
Rectangle | FixedHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
|
int | FixedHeightLayoutCache.getRowForPath(TreePath path)
Returns the row that the last item identified in path is visible at. |
int | FixedHeightLayoutCache.getVisibleChildCount(TreePath path)
Returns the number of visible children for row. |
Enumeration | FixedHeightLayoutCache.getVisiblePathsFrom(TreePath path)
Returns an Enumerator that increments over the visible paths starting at the passed in location. |
void | FixedHeightLayoutCache.setExpandedState(TreePath path,
boolean isExpanded)
Marks the path path expanded state to
isExpanded . |
boolean | FixedHeightLayoutCache.getExpandedState(TreePath path)
Returns true if the path is expanded, and visible. |
void | VariableHeightLayoutCache.setExpandedState(TreePath path,
boolean isExpanded)
Marks the path path expanded state to
isExpanded . |
boolean | VariableHeightLayoutCache.getExpandedState(TreePath path)
Returns true if the path is expanded, and visible. |
Rectangle | VariableHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns the Rectangle enclosing the label portion that the item identified by row will be drawn into. |
int | VariableHeightLayoutCache.getRowForPath(TreePath path)
Returns the row that the last item identified in path is visible at. |
void | VariableHeightLayoutCache.invalidatePathBounds(TreePath path)
Instructs the LayoutCache that the bounds for path
are invalid, and need to be updated. |
Enumeration | VariableHeightLayoutCache.getVisiblePathsFrom(TreePath path)
Returns an Enumerator that increments over the visible paths starting at the passed in location. |
int | VariableHeightLayoutCache.getVisibleChildCount(TreePath path)
Returns the number of visible children for row. |
boolean | VariableHeightLayoutCache.isExpanded(TreePath path)
Returns true if the value identified by row is currently expanded. |
void | TreeModel.valueForPathChanged(TreePath path,
Object newValue)
Messaged when the user has altered the value for the item identified by path to newValue. |
Constructors in com.sun.java.swing.tree with parameters of type TreePath | |
TreePath.TreePath(TreePath parent,
Object lastElement)
Constructs a TreePath this is the combination of all the path elements in parent with a last path component of
lastElement . |
|
Java Platform 1.2 Beta 4 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |