Uses of Class
javax.swing.JTree
-
Packages that use JTree 软件包 描述 javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.multi 提供组合两种或多种外观和感觉的用户界面对象。javax.swing.tree 提供处理javax.swing.JTree
类和接口。 -
-
Uses of JTree in javax.swing
Methods in javax.swing with parameters of type JTree Modifier and Type 方法 描述 Component
DefaultCellEditor. getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
实现TreeCellEditor
界面。Constructors in javax.swing with parameters of type JTree Constructor 描述 AccessibleJTreeNode(JTree t, TreePath p, Accessible ap)
构造一个AccessibleJTreeNode -
Uses of JTree in javax.swing.plaf
Methods in javax.swing.plaf with parameters of type JTree Modifier and Type 方法 描述 abstract void
TreeUI. cancelEditing(JTree tree)
取消当前编辑会话。abstract TreePath
TreeUI. getClosestPathForLocation(JTree tree, int x, int y)
返回最接近x,y的节点的路径。abstract TreePath
TreeUI. getEditingPath(JTree tree)
返回正在编辑的元素的路径。abstract Rectangle
TreeUI. getPathBounds(JTree tree, TreePath path)
返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。abstract TreePath
TreeUI. getPathForRow(JTree tree, int row)
返回在行中传递的路径。abstract int
TreeUI. getRowCount(JTree tree)
返回正在显示的行数。abstract int
TreeUI. getRowForPath(JTree tree, TreePath path)
返回在路径中识别的最后一个项目可见的行。abstract boolean
TreeUI. isEditing(JTree tree)
如果正在编辑树,则返回true。abstract void
TreeUI. startEditingAtPath(JTree tree, TreePath path)
选择路径中的最后一个项目并尝试编辑它。abstract boolean
TreeUI. stopEditing(JTree tree)
停止当前编辑会话。 -
Uses of JTree in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as JTree Modifier and Type Field 描述 protected JTree
BasicTreeUI. tree
我们将要绘制的组件。Methods in javax.swing.plaf.basic with parameters of type JTree Modifier and Type 方法 描述 void
BasicTreeUI. cancelEditing(JTree tree)
取消当前编辑会话。TreePath
BasicTreeUI. getClosestPathForLocation(JTree tree, int x, int y)
返回最接近x,y的节点的路径。TreePath
BasicTreeUI. getEditingPath(JTree tree)
返回正在编辑的元素的路径。Rectangle
BasicTreeUI. getPathBounds(JTree tree, TreePath path)
返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。TreePath
BasicTreeUI. getPathForRow(JTree tree, int row)
返回在行中传递的路径。int
BasicTreeUI. getRowCount(JTree tree)
返回正在显示的行数。int
BasicTreeUI. getRowForPath(JTree tree, TreePath path)
返回在路径中识别的最后一个项目可见的行。boolean
BasicTreeUI. isEditing(JTree tree)
如果正在编辑树,则返回true。void
BasicTreeUI. startEditingAtPath(JTree tree, TreePath path)
选择路径中的最后一个项目并尝试编辑它。boolean
BasicTreeUI. stopEditing(JTree tree)
停止当前编辑会话。 -
Uses of JTree in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi with parameters of type JTree Modifier and Type 方法 描述 void
MultiTreeUI. cancelEditing(JTree a)
在此对象处理的每个UI上调用cancelEditing
方法。TreePath
MultiTreeUI. getClosestPathForLocation(JTree a, int b, int c)
在此对象处理的每个UI上调用getClosestPathForLocation
方法。TreePath
MultiTreeUI. getEditingPath(JTree a)
在此对象处理的每个UI上调用getEditingPath
方法。Rectangle
MultiTreeUI. getPathBounds(JTree a, TreePath b)
在此对象处理的每个UI上调用getPathBounds
方法。TreePath
MultiTreeUI. getPathForRow(JTree a, int b)
在此对象处理的每个UI上调用getPathForRow
方法。int
MultiTreeUI. getRowCount(JTree a)
在此对象处理的每个UI上调用getRowCount
方法。int
MultiTreeUI. getRowForPath(JTree a, TreePath b)
在此对象处理的每个UI上调用getRowForPath
方法。boolean
MultiTreeUI. isEditing(JTree a)
在此对象处理的每个UI上调用isEditing
方法。void
MultiTreeUI. startEditingAtPath(JTree a, TreePath b)
在此对象处理的每个UI上调用startEditingAtPath
方法。boolean
MultiTreeUI. stopEditing(JTree a)
在此对象处理的每个UI上调用stopEditing
方法。 -
Uses of JTree in javax.swing.tree
Fields in javax.swing.tree declared as JTree Modifier and Type Field 描述 protected JTree
DefaultTreeCellEditor. tree
JTree
实例也听。Methods in javax.swing.tree with parameters of type JTree Modifier and Type 方法 描述 protected void
DefaultTreeCellEditor. determineOffset(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
确定偏移量。Component
DefaultTreeCellEditor. getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
配置编辑器。Component
TreeCellEditor. getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
设置编辑器的初始 值 。Component
DefaultTreeCellRenderer. getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
根据传入的组件配置渲染器。Component
TreeCellRenderer. getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
将当前树状单元格的值设置为value
。protected void
DefaultTreeCellEditor. setTree(JTree newTree)
设置当前编辑的树。Constructors in javax.swing.tree with parameters of type JTree Constructor 描述 DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer)
使用指定的渲染器和默认编辑器为JTree构造一个DefaultTreeCellEditor
对象。DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor)
使用指定的渲染器和指定的编辑器为JTree
构造一个DefaultTreeCellEditor
对象。
-