public class WPFTreeView extends WPFItemsControl
Modifier | Constructor and Description |
---|---|
protected |
WPFTreeView(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFTreeView。
|
Modifier and Type | Method and Description |
---|---|
void |
collapse(ItemPath item)
折叠指定项目。
|
void |
collapse(String item)
折叠指定项目。
|
void |
expand(ItemPath item)
展开指定项目。
|
void |
expand(String item)
展开指定项目。
|
void |
expandAll()
展开树中的所有项目。
|
List<WPFColumnHeader> |
getColumnHeaders()
获取 标题列。
|
WPFTreeViewItem |
getSelectedItem()
获取 所选项目,如果选定内容为空,则返回 null。
|
ItemPath |
getSelectedItemPath()
获取 所选项目路径,如果未作出任何选择,则为空项目路径。
|
String |
getSelectedItemText()
获取 所选项目的文本,如果选定内容为空,则为空字符串。
|
List<ItemPath> |
getVisibleItemPaths()
获取 作为项目路径的树中的可见项目。
|
void |
select(ItemPath item)
选择指定项目。
|
void |
select(String item)
选择指定项目。
|
getItems, getItemTexts, hasItems, isTextSearchEnabled
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected WPFTreeView(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 WPFTreeView 的句柄desktop
- 此对象所在的桌面public void collapse(ItemPath item)
item
- 可折叠的项目public void collapse(String item)
item
- 可折叠的项目. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)
。
public void expand(ItemPath item)
item
- 可展开的项目public void expand(String item)
item
- 可展开的项目. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)
。
public void expandAll()
public void select(ItemPath item)
item
- 可选择的项目public void select(String item)
item
- 可选择的项目. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)
。
public List<WPFColumnHeader> getColumnHeaders()
public WPFTreeViewItem getSelectedItem()
public ItemPath getSelectedItemPath()
public String getSelectedItemText()
Copyright 2009-2012 Micro Focus. All Rights Reserved.