public abstract class TreeUI extends ComponentUI
Constructor and Description |
---|
TreeUI() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cancelEditing(JTree tree)
取消当前编辑会话。
|
abstract TreePath |
getClosestPathForLocation(JTree tree, int x, int y)
返回最接近x,y的节点的路径。
|
abstract TreePath |
getEditingPath(JTree tree)
返回正在编辑的元素的路径。
|
abstract Rectangle |
getPathBounds(JTree tree, TreePath path)
返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。
|
abstract TreePath |
getPathForRow(JTree tree, int row)
返回在行中传递的路径。
|
abstract int |
getRowCount(JTree tree)
返回正在显示的行数。
|
abstract int |
getRowForPath(JTree tree, TreePath path)
返回在路径中识别的最后一个项目可见的行。
|
abstract boolean |
isEditing(JTree tree)
如果正在编辑树,则返回true。
|
abstract void |
startEditingAtPath(JTree tree, TreePath path)
选择路径中的最后一个项目并尝试编辑它。
|
abstract boolean |
stopEditing(JTree tree)
停止当前编辑会话。
|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
public abstract Rectangle getPathBounds(JTree tree, TreePath path)
public abstract int getRowForPath(JTree tree, TreePath path)
public abstract int getRowCount(JTree tree)
public abstract TreePath getClosestPathForLocation(JTree tree, int x, int y)
public abstract boolean isEditing(JTree tree)
public abstract boolean stopEditing(JTree tree)
public abstract void cancelEditing(JTree tree)
public abstract void startEditingAtPath(JTree tree, TreePath path)
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.