public class SLTreeView extends SLBase
Modifier | Constructor and Description |
---|---|
protected |
SLTreeView(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SLTreeView。
|
Modifier and Type | Method and Description |
---|---|
void |
collapse(ItemPath item)
折叠指定项目。
|
void |
collapse(String item)
折叠指定项目。
|
void |
expand(ItemPath item)
展开指定项目。
|
void |
expand(String item)
展开指定项目。
|
void |
expandAll()
展开树中的所有项目。
|
double |
getHorizontalScrollPercent()
获取 当前水平滚动位置,如果无有效的滚动位置,则为负值 (-1)。
|
List<SLTreeViewItem> |
getRootItems()
获取 所有根树项目的完整列表。
|
List<String> |
getRootItemTexts()
获取 所有根树项目的文本的完整列表。
|
SLTreeViewItem |
getSelectedItem()
获取 所选项目,如果选定内容为空,则返回 null。
|
ItemPath |
getSelectedItemPath()
获取 所选项目路径,如果未作出任何选择,则为空项目路径。
|
String |
getSelectedItemText()
获取 所选项目的文本,如果选定内容为空,则为空字符串。
|
double |
getVerticalScrollPercent()
获取 当前垂直滚动位置,如果无有效的滚动位置,则为负值 (-1)。
|
List<ItemPath> |
getVisibleItemPaths()
获取 作为项目路径的树中的可见项目。
|
boolean |
isHorizontallyScrollable()
获取 表示树视图是否可以水平滚动的值。
|
boolean |
isVerticallyScrollable()
获取 表示树视图是否可以垂直滚动的值。
|
void |
scrollHorizontal(ScrollAmount scrollAmount)
将内容区域的当前可见区域水平滚动指定 ScrollAmount。
|
void |
scrollVertical(ScrollAmount scrollAmount)
将内容区域的当前可见区域垂直滚动指定 ScrollAmount。
|
void |
select(ItemPath item)
选择指定项目。
|
void |
select(String item)
选择指定项目。
|
void |
setHorizontalScrollPercent(double percent)
设置水平滚动位置占树视图内全部内容区域的百分比。
|
void |
setVerticalScrollPercent(double percent)
设置垂直滚动位置占树视图内全部内容区域的百分比。
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAutomationId, getClassName, getName, getRawChildren, getRawChildren, isEnabled, isFocused, mouseMove, mouseMove, 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 SLTreeView(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SLTreeView 的句柄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 scrollHorizontal(ScrollAmount scrollAmount)
scrollAmount
- 可滚动的方向和距离public void scrollVertical(ScrollAmount scrollAmount)
scrollAmount
- =可滚动的方向和距离public void select(ItemPath item)
item
- 可选择的项目public void select(String item)
item
- 可选择的项目. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)
。
public void setHorizontalScrollPercent(double percent)
percent
- 全部水平内容区域的百分比public void setVerticalScrollPercent(double percent)
percent
- 全部垂直内容区域的百分比public boolean isHorizontallyScrollable()
public double getHorizontalScrollPercent()
public List<SLTreeViewItem> getRootItems()
public SLTreeViewItem getSelectedItem()
public ItemPath getSelectedItemPath()
public String getSelectedItemText()
public boolean isVerticallyScrollable()
public double getVerticalScrollPercent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.