Uses of Class
javax.swing.tree.TreePath
 
   -  
      
Packages that use TreePath 软件包 描述 javax.swing 提供一组“轻量级”(全Java语言)组件,这些组件在所有平台上尽可能地工作。javax.swing.event 提供由Swing组件触发的事件。javax.swing.plaf 提供一个接口和许多抽象类,Swing使用它们来提供其可插入的外观功能。javax.swing.plaf.basic 提供根据Basic外观构建的用户界面对象。javax.swing.plaf.multi 提供组合两种或多种外观的用户界面对象。javax.swing.tree 提供用于处理javax.swing.JTree类和接口。 -  
      
-  
        
Uses of TreePath in javax.swing
Methods in javax.swing that return TreePath 变量和类型 方法 描述 TreePathJTree. getAnchorSelectionPath()返回标识为锚点的路径。TreePathJTree. getClosestPathForLocation(int x, int y)返回最接近x,y的节点的路径。TreePathJTree. getEditingPath()返回当前正在编辑的元素的路径。TreePathJTree. getLeadSelectionPath()返回标识为潜在客户的路径。TreePathJTree. getNextMatch(String prefix, int startingRow, Position.Bias bias)将TreePath返回到以前缀开头的下一个树元素。TreePathJTree.DropLocation. getPath()返回应在树中放置已删除数据的路径。protected TreePath[]JTree. getPathBetweenRows(int index0, int index1)返回指定行之间的路径(包括)。TreePathJTree. getPathForLocation(int x, int y)返回指定位置的节点的路径。TreePathJTree. getPathForRow(int row)返回指定行的路径。TreePathJTree. getSelectionPath()返回第一个选定节点的路径。TreePath[]JTree. getSelectionPaths()返回所有选定值的路径。Methods in javax.swing that return types with arguments of type TreePath 变量和类型 方法 描述 protected Enumeration<TreePath>JTree. getDescendantToggledPaths(TreePath parent)返回Enumeration的TreePaths已展开是后裔parent。Enumeration<TreePath>JTree. getExpandedDescendants(TreePath parent)返回一个Enumeration路径的后裔parent当前展开。Methods in javax.swing with parameters of type TreePath 变量和类型 方法 描述 voidJTree. addSelectionPath(TreePath path)将指定的TreePath标识的节点添加到当前选择中。voidJTree. addSelectionPaths(TreePath[] paths)将路径数组中的每个路径添加到当前选择。voidJTree.EmptySelectionModel. addSelectionPaths(TreePath[] paths)这是重写,什么都不做;EmptySelectionModel不允许选择。voidJTree. collapsePath(TreePath path)确保指定路径标识的节点已折叠并可查看。voidJTree. expandPath(TreePath path)确保指定路径标识的节点已展开并可查看。voidJTree. fireTreeCollapsed(TreePath path)通知所有已注册对此事件类型的通知感兴趣的听众。voidJTree. fireTreeExpanded(TreePath path)通知所有已注册对此事件类型的通知感兴趣的听众。voidJTree. fireTreeWillCollapse(TreePath path)通知所有已注册对此事件类型的通知感兴趣的听众。voidJTree. fireTreeWillExpand(TreePath path)通知所有已注册对此事件类型的通知感兴趣的听众。protected Enumeration<TreePath>JTree. getDescendantToggledPaths(TreePath parent)返回Enumeration的TreePaths,其已被扩展为parent后代。Enumeration<TreePath>JTree. getExpandedDescendants(TreePath parent)返回一个Enumeration路径的后裔parent当前展开。RectangleJTree. getPathBounds(TreePath path)返回将绘制指定节点的Rectangle。intJTree. getRowForPath(TreePath path)返回显示指定路径标识的节点的行。booleanJTree. hasBeenExpanded(TreePath path)如果路径标识的节点曾被扩展,则返回true。booleanJTree. isCollapsed(TreePath path)如果path标识的值当前已折叠,则返回true,如果当前未显示path中的任何值,则返回false。booleanJTree. isExpanded(TreePath path)如果路径标识的节点当前已展开,则返回true,booleanJTree. isPathEditable(TreePath path)返回isEditable。booleanJTree. isPathSelected(TreePath path)如果当前选择了路径标识的项,则返回true。booleanJTree. isVisible(TreePath path)如果path标识的值当前是可见的,则返回true,这意味着它是根或其所有父项都已展开。voidJTree. makeVisible(TreePath path)确保路径标识的节点当前可见。protected booleanJTree. removeDescendantSelectedPaths(TreePath path, boolean includePath)删除选择中作为path后代的所有路径。voidJTree. removeSelectionPath(TreePath path)从当前选择中删除指定路径标识的节点。voidJTree.EmptySelectionModel. removeSelectionPaths(TreePath[] paths)这是重写,什么都不做;EmptySelectionModel不允许选择。voidJTree. removeSelectionPaths(TreePath[] paths)从当前选择中删除指定路径标识的节点。voidJTree. scrollPathToVisible(TreePath path)确保路径中的所有路径组件都已展开(最后一个路径组件除外)并滚动,以便显示由路径标识的节点。voidJTree. setAnchorSelectionPath(TreePath newPath)设置标识为锚点的路径。protected voidJTree. setExpandedState(TreePath path, boolean state)设置此JTree的展开状态。voidJTree. setLeadSelectionPath(TreePath newPath)将路径标识设置为潜在客户。voidJTree. setSelectionPath(TreePath path)选择由指定路径标识的节点。voidJTree.EmptySelectionModel. setSelectionPaths(TreePath[] paths)这是重写,什么都不做;EmptySelectionModel不允许选择。voidJTree. setSelectionPaths(TreePath[] paths)选择由指定路径数组标识的节点。voidJTree. startEditingAtPath(TreePath path)选择由指定路径标识的节点并启动编辑。Method parameters in javax.swing with type arguments of type TreePath 变量和类型 方法 描述 protected voidJTree. removeDescendantToggledPaths(Enumeration<TreePath> toRemove)删除已扩展的TreePaths中toRemove所有后代。Constructors in javax.swing with parameters of type TreePath 构造器 描述 AccessibleJTreeNode(JTree t, TreePath p, Accessible ap)构造一个AccessibleJTreeNode -  
        
Uses of TreePath in javax.swing.event
Fields in javax.swing.event declared as TreePath 变量和类型 字段 描述 protected TreePathTreeSelectionEvent. newLeadSelectionPath路径更改后的leadSelectionPath可能为null。protected TreePathTreeSelectionEvent. oldLeadSelectionPath路径更改前的leadSelectionPath可能为null。protected TreePathTreeExpansionEvent. path此事件表示的值的路径。protected TreePathTreeModelEvent. path已更改的节点的父节点的路径。protected TreePath[]TreeSelectionEvent. paths此事件表示的路径。Methods in javax.swing.event that return TreePath 变量和类型 方法 描述 TreePathTreeSelectionEvent. getNewLeadSelectionPath()返回当前的潜在客户路径。TreePathTreeSelectionEvent. getOldLeadSelectionPath()返回先前为前导路径的路径。TreePathTreeExpansionEvent. getPath()返回已展开/折叠的值的路径。TreePathTreeSelectionEvent. getPath()返回第一个路径元素。TreePath[]TreeSelectionEvent. getPaths()返回已从选择中添加或删除的路径。TreePathTreeModelEvent. getTreePath()对于除treeStructureChanged之外的所有事件,返回已更改节点的父节点。Methods in javax.swing.event with parameters of type TreePath 变量和类型 方法 描述 booleanTreeSelectionEvent. isAddedPath(TreePath path)返回指定的路径是否已添加到选择中。Constructors in javax.swing.event with parameters of type TreePath 构造器 描述 TreeExpansionEvent(Object source, TreePath path)构造一个TreeExpansionEvent对象。TreeModelEvent(Object source, TreePath path)用于在节点结构以某种方式更改时创建事件,将修改后的子树的根路径标识为TreePath对象。TreeModelEvent(Object source, TreePath path, int[] childIndices, Object[] children)用于在更改,插入或删除节点时创建事件,将已修改项的父级路径标识为TreePath对象。TreeSelectionEvent(Object source, TreePath[] paths, boolean[] areNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)表示选择TreeSelectionModel。TreeSelectionEvent(Object source, TreePath path, boolean isNew, TreePath oldLeadSelectionPath, TreePath newLeadSelectionPath)表示选择TreeSelectionModel。 -  
        
Uses of TreePath in javax.swing.plaf
Methods in javax.swing.plaf that return TreePath 变量和类型 方法 描述 abstract TreePathTreeUI. getClosestPathForLocation(JTree tree, int x, int y)返回最接近x,y的节点的路径。abstract TreePathTreeUI. getEditingPath(JTree tree)返回正在编辑的元素的路径。abstract TreePathTreeUI. getPathForRow(JTree tree, int row)返回传入行的路径。Methods in javax.swing.plaf with parameters of type TreePath 变量和类型 方法 描述 abstract RectangleTreeUI. getPathBounds(JTree tree, TreePath path)返回包含将绘制路径中最后一项的标签部分的Rectangle。abstract intTreeUI. getRowForPath(JTree tree, TreePath path)返回路径中标识的最后一项可见的行。abstract voidTreeUI. startEditingAtPath(JTree tree, TreePath path)选择路径中的最后一项并尝试编辑它。 -  
        
Uses of TreePath in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as TreePath 变量和类型 字段 描述 protected TreePathBasicTreeUI. editingPath正在编辑的路径。Fields in javax.swing.plaf.basic with type parameters of type TreePath 变量和类型 字段 描述 protected Hashtable<TreePath,Boolean>BasicTreeUI. drawingCache用于最小化垂直线的绘制。Methods in javax.swing.plaf.basic that return TreePath 变量和类型 方法 描述 TreePathBasicTreeUI. getClosestPathForLocation(JTree tree, int x, int y)返回最接近x,y的节点的路径。TreePathBasicTreeUI. getEditingPath(JTree tree)返回正在编辑的元素的路径。protected TreePathBasicTreeUI. getLastChildPath(TreePath parent)返回最后一个子项parent的路径。TreePathBasicTreeUI. getPathForRow(JTree tree, int row)返回传入行的路径。Methods in javax.swing.plaf.basic with parameters of type TreePath 变量和类型 方法 描述 protected voidBasicTreeUI. checkForClickInExpandControl(TreePath path, int mouseX, int mouseY)如果mouseX和mouseY都在的展开/折叠区域row,这将切换行。protected TreePathBasicTreeUI. getLastChildPath(TreePath parent)返回最后一个子项parent的路径。RectangleBasicTreeUI. getPathBounds(JTree tree, TreePath path)返回包含将绘制路径中最后一项的标签部分的Rectangle。intBasicTreeUI. getRowForPath(JTree tree, TreePath path)返回路径中标识的最后一项可见的行。protected voidBasicTreeUI. handleExpandControlClick(TreePath path, int mouseX, int mouseY)当用户单击特定行时发送消息,这将调用toggleExpandState。protected booleanBasicTreeUI. isLocationInExpandControl(TreePath path, int mouseX, int mouseY)返回true如果mouseX和mouseY下降,用于展开/折叠节点和节点的行的区域row不代表叶子。protected voidBasicTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)绘制一行的展开(切换)部分。protected voidBasicTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)涂抹腿部的水平部分。protected voidBasicTreeUI. paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)绘制一行的渲染器部分。protected voidBasicTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)涂抹腿部的垂直部分。protected voidBasicTreeUI. pathWasCollapsed(TreePath path)它崩溃后从VisibleTreeNode消息。protected voidBasicTreeUI. pathWasExpanded(TreePath path)在VisibleTreeNode之后从VisibleTreeNode传递消息。protected voidBasicTreeUI. selectPathForEvent(TreePath path, MouseEvent event)消息传递以在特定行上基于MouseEvent更新选择。protected booleanBasicTreeUI. shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)如果应为指定行绘制展开(切换)控件,则返回true。protected booleanBasicTreeUI. startEditing(TreePath path, MouseEvent event)如果有cellEditor且shouldSelectCell返回true将开始编辑节点。voidBasicTreeUI. startEditingAtPath(JTree tree, TreePath path)选择路径中的最后一项并尝试编辑它。protected voidBasicTreeUI. toggleExpandState(TreePath path)如果未展开,则展开路径;如果展开,则展开行。protected voidBasicTreeUI. updateExpandedDescendants(TreePath path)通过从树中获取扩展后代并转发到树状态来更新path的所有后代的扩展状态。 -  
        
Uses of TreePath in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi that return TreePath 变量和类型 方法 描述 TreePathMultiTreeUI. getClosestPathForLocation(JTree a, int b, int c)在由此对象处理的每个UI上调用getClosestPathForLocation方法。TreePathMultiTreeUI. getEditingPath(JTree a)在由此对象处理的每个UI上调用getEditingPath方法。TreePathMultiTreeUI. getPathForRow(JTree a, int b)在由此对象处理的每个UI上调用getPathForRow方法。Methods in javax.swing.plaf.multi with parameters of type TreePath 变量和类型 方法 描述 RectangleMultiTreeUI. getPathBounds(JTree a, TreePath b)在由此对象处理的每个UI上调用getPathBounds方法。intMultiTreeUI. getRowForPath(JTree a, TreePath b)在由此对象处理的每个UI上调用getRowForPath方法。voidMultiTreeUI. startEditingAtPath(JTree a, TreePath b)在由此对象处理的每个UI上调用startEditingAtPath方法。 -  
        
Uses of TreePath in javax.swing.tree
Fields in javax.swing.tree declared as TreePath 变量和类型 字段 描述 protected TreePathDefaultTreeCellEditor. lastPath选择的最后一条路径。protected TreePathDefaultTreeSelectionModel. leadPath添加的最后一条路径。protected TreePath[]DefaultTreeSelectionModel. selection当前选定的路径。Methods in javax.swing.tree that return TreePath 变量和类型 方法 描述 TreePathDefaultTreeSelectionModel. getLeadSelectionPath()返回添加的最后一个路径。TreePathTreeSelectionModel. getLeadSelectionPath()返回添加的最后一个路径。TreePathTreePath. getParentPath()返回父级的TreePath。abstract TreePathAbstractLayoutCache. getPathClosestTo(int x, int y)返回最接近x,y的节点的路径。TreePathFixedHeightLayoutCache. getPathClosestTo(int x, int y)返回最接近x,y的节点的路径。TreePathVariableHeightLayoutCache. getPathClosestTo(int x, int y)返回最接近x,y的节点的路径。abstract TreePathAbstractLayoutCache. getPathForRow(int row)返回传入行的路径。TreePathFixedHeightLayoutCache. getPathForRow(int row)返回传入行的路径。TreePathVariableHeightLayoutCache. getPathForRow(int row)返回row的路径。TreePathDefaultTreeSelectionModel. getSelectionPath()返回选择中的第一个路径。TreePathTreeSelectionModel. getSelectionPath()返回选择中的第一个路径。TreePath[]DefaultTreeSelectionModel. getSelectionPaths()返回选择。TreePath[]TreeSelectionModel. getSelectionPaths()返回选择中的路径。TreePathTreePath. pathByAddingChild(Object child)返回包含此路径的所有元素的新路径以及child。Methods in javax.swing.tree that return types with arguments of type TreePath 变量和类型 方法 描述 abstract Enumeration<TreePath>AbstractLayoutCache. getVisiblePathsFrom(TreePath path)返回一个Enumerator,它在从传入位置开始的可见路径上递增。Enumeration<TreePath>FixedHeightLayoutCache. getVisiblePathsFrom(TreePath path)返回一个枚举器,该枚举器在从传入位置开始的可见路径上递增。Enumeration<TreePath>VariableHeightLayoutCache. getVisiblePathsFrom(TreePath path)返回一个Enumerator,它在从传入位置开始的可见路径上递增。Methods in javax.swing.tree with parameters of type TreePath 变量和类型 方法 描述 voidDefaultTreeSelectionModel. addSelectionPath(TreePath path)添加当前选择的路径。voidTreeSelectionModel. addSelectionPath(TreePath path)添加当前选择的路径。voidDefaultTreeSelectionModel. addSelectionPaths(TreePath[] paths)添加当前选择的路径。voidTreeSelectionModel. addSelectionPaths(TreePath[] paths)添加当前选择的路径。protected booleanDefaultTreeSelectionModel. arePathsContiguous(TreePath[] paths)如果路径是连续的,或者此对象没有RowMapper,则返回true。protected booleanDefaultTreeSelectionModel. canPathsBeAdded(TreePath[] paths)用于测试是否可以添加一组特定的TreePath。protected booleanDefaultTreeSelectionModel. canPathsBeRemoved(TreePath[] paths)如果可以在不破坏模型连续性的情况下删除路径,则返回true。abstract RectangleAbstractLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回一个矩形,给出绘制路径所需的边界。RectangleFixedHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回一个矩形,给出绘制路径所需的边界。RectangleVariableHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回Rectangle它包围在其中所确定的项目的标签部path将被绘制。abstract booleanAbstractLayoutCache. getExpandedState(TreePath path)如果路径已展开且可见,则返回true。booleanFixedHeightLayoutCache. getExpandedState(TreePath path)如果路径已展开且可见,则返回true。booleanVariableHeightLayoutCache. getExpandedState(TreePath path)如果路径已展开且可见,则返回true。abstract intAbstractLayoutCache. getRowForPath(TreePath path)返回路径中标识的最后一项可见的行。intFixedHeightLayoutCache. getRowForPath(TreePath path)返回路径中标识的最后一项可见的行。intVariableHeightLayoutCache. getRowForPath(TreePath path)返回路径中标识的最后一项可见的行。int[]AbstractLayoutCache. getRowsForPaths(TreePath[] paths)返回显示path中的TreePath实例的行。int[]RowMapper. getRowsForPaths(TreePath[] path)返回显示path中的TreePath实例的行。abstract intAbstractLayoutCache. getVisibleChildCount(TreePath path)返回行的可见子项数。intFixedHeightLayoutCache. getVisibleChildCount(TreePath path)返回行的可见子项数。intVariableHeightLayoutCache. getVisibleChildCount(TreePath path)返回path的可见子path。abstract Enumeration<TreePath>AbstractLayoutCache. getVisiblePathsFrom(TreePath path)返回一个Enumerator,它在传入位置开始的可见路径上递增。Enumeration<TreePath>FixedHeightLayoutCache. getVisiblePathsFrom(TreePath path)返回一个枚举器,该枚举器在从传入位置开始的可见路径上递增。Enumeration<TreePath>VariableHeightLayoutCache. getVisiblePathsFrom(TreePath path)返回一个Enumerator,它在传入位置开始的可见路径上递增。abstract voidAbstractLayoutCache. invalidatePathBounds(TreePath path)指示LayoutCache,对于边界path无效,并且需要进行更新。voidFixedHeightLayoutCache. invalidatePathBounds(TreePath path)什么都不做,FixedHeightLayoutCache没有缓存宽度,这就是所有可能改变的。voidVariableHeightLayoutCache. invalidatePathBounds(TreePath path)指示LayoutCache,对于边界path无效,并且需要进行更新。booleanTreePath. isDescendant(TreePath aTreePath)如果aTreePath是此TreePath的后代,则返回true。abstract booleanAbstractLayoutCache. isExpanded(TreePath path)如果当前展开的行标识的值,则返回true。booleanFixedHeightLayoutCache. isExpanded(TreePath path)如果当前展开的行标识的值,则返回true。booleanVariableHeightLayoutCache. isExpanded(TreePath path)如果当前扩展了由path标识的值,则返回true。booleanDefaultTreeSelectionModel. isPathSelected(TreePath path)如果路径path在当前选择中,则返回true。booleanTreeSelectionModel. isPathSelected(TreePath path)如果路径path在当前选择中,则返回true。protected voidDefaultTreeSelectionModel. notifyPathChange(Vector<?> changedPaths, TreePath oldLeadSelection)已过时。截至JDK 1.7版voidDefaultTreeSelectionModel. removeSelectionPath(TreePath path)从选择中删除路径。voidTreeSelectionModel. removeSelectionPath(TreePath path)从选择中删除路径。voidDefaultTreeSelectionModel. removeSelectionPaths(TreePath[] paths)从选择中删除路径。voidTreeSelectionModel. removeSelectionPaths(TreePath[] paths)从选择中删除路径。abstract voidAbstractLayoutCache. setExpandedState(TreePath path, boolean isExpanded)标记路径path展开状态为isExpanded。voidFixedHeightLayoutCache. setExpandedState(TreePath path, boolean isExpanded)标记路径path展开状态为isExpanded。voidVariableHeightLayoutCache. setExpandedState(TreePath path, boolean isExpanded)标记路径path展开状态为isExpanded。voidDefaultTreeSelectionModel. setSelectionPath(TreePath path)将选择设置为路径。voidTreeSelectionModel. setSelectionPath(TreePath path)将选择设置为路径。voidDefaultTreeSelectionModel. setSelectionPaths(TreePath[] pPaths)设置选择。voidTreeSelectionModel. setSelectionPaths(TreePath[] paths)将选择设置为路径。voidDefaultTreeModel. valueForPathChanged(TreePath path, Object newValue)这将设置由路径标识的TreeNode的用户对象,并发布更改的节点。voidTreeModel. valueForPathChanged(TreePath path, Object newValue)当用户将newValue标识的项目的值更改为path发送newValue。Constructors in javax.swing.tree with parameters of type TreePath 构造器 描述 TreePath(TreePath parent, Object lastPathComponent)使用指定的父元素和元素创建TreePath。 
 -