软件包 | 描述 |
---|---|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.plaf |
提供一个接口和抽象类的使用许多摆动为可插拔的外观和感觉的能力。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.multi |
提供结合两个或多个外观和感觉的用户界面对象。
|
javax.swing.tree |
处理
javax.swing.JTree 提供类和接口。
|
Modifier and Type | Method and Description |
---|---|
Component |
DefaultCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
实现了
TreeCellEditor 接口。
|
Constructor and Description |
---|
AccessibleJTreeNode(JTree t, TreePath p, Accessible ap)
构建了一个accessiblejtreenode
|
Modifier and Type | Method and Description |
---|---|
abstract void |
TreeUI.cancelEditing(JTree tree)
取消当前编辑会话。
|
abstract TreePath |
TreeUI.getClosestPathForLocation(JTree tree, int x, int y)
返回到最接近X的节点的路径。
|
abstract TreePath |
TreeUI.getEditingPath(JTree tree)
返回正在编辑的元素的路径。
|
abstract Rectangle |
TreeUI.getPathBounds(JTree tree, TreePath path)
返回包含路径的最后一个项目将被绘制到的标签部分的矩形框。
|
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)
如果正在编辑树,则返回真。
|
abstract void |
TreeUI.startEditingAtPath(JTree tree, TreePath path)
选择路径中的最后一个项目,并试图编辑它。
|
abstract boolean |
TreeUI.stopEditing(JTree tree)
停止当前编辑会话。
|
Modifier and Type | Field and Description |
---|---|
protected JTree |
BasicTreeUI.tree
组件,我们将要绘制。
|
Modifier and Type | Method and Description |
---|---|
void |
BasicTreeUI.cancelEditing(JTree tree)
取消当前编辑会话。
|
TreePath |
BasicTreeUI.getClosestPathForLocation(JTree tree, int x, int y)
返回到最接近X的节点的路径。
|
TreePath |
BasicTreeUI.getEditingPath(JTree tree)
返回正在编辑的元素的路径。
|
Rectangle |
BasicTreeUI.getPathBounds(JTree tree, TreePath path)
返回包含路径的最后一个项目将被绘制到的标签部分的矩形框。
|
TreePath |
BasicTreeUI.getPathForRow(JTree tree, int row)
返回行中的路径。
|
int |
BasicTreeUI.getRowCount(JTree tree)
返回正在显示的行数。
|
int |
BasicTreeUI.getRowForPath(JTree tree, TreePath path)
返回路径中确定的最后一个项目的行的可见光行。
|
boolean |
BasicTreeUI.isEditing(JTree tree)
如果正在编辑树,则返回真。
|
void |
BasicTreeUI.startEditingAtPath(JTree tree, TreePath path)
选择路径中的最后一个项目,并试图编辑它。
|
boolean |
BasicTreeUI.stopEditing(JTree tree)
停止当前编辑会话。
|
Modifier and Type | Method and Description |
---|---|
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)
stopEditing 方法调用每个UI处理该对象。
|
Modifier and Type | Field and Description |
---|---|
protected JTree |
DefaultTreeCellEditor.tree
JTree 审听过。
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultTreeCellEditor.determineOffset(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 |
DefaultTreeCellEditor.getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
配置编辑器。
|
Component |
TreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
集
value 当前树的单元格的值。
|
Component |
DefaultTreeCellRenderer.getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus)
配置基于通过组件的渲染。
|
protected void |
DefaultTreeCellEditor.setTree(JTree newTree)
设置当前编辑的树。
|
Constructor and Description |
---|
DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer)
构建一个JTree使用指定的默认渲染器和编辑器
DefaultTreeCellEditor 对象。
|
DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer, TreeCellEditor editor)
构建了一个
JTree 使用指定的渲染和指定编辑器的
DefaultTreeCellEditor 对象。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.