public class SWTTree extends Tree
Modifier | Constructor and Description |
---|---|
protected |
SWTTree(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SWTTree。
|
Modifier and Type | Method and Description |
---|---|
void |
extendSelect(ItemPath itemPath)
通过扩展选定内容选择一系列项目。
|
void |
extendSelect(String itemPath)
通过扩展选定内容选择一系列项目。
|
int |
getColumnCount()
获取 树中列的数量。
|
List<SWTTreeColumn> |
getColumns()
获取 树中列的列表。
|
List<String> |
getContentsOfColumn(boolean rawMode)
检索作为列表的指定列的内容。
|
List<String> |
getContentsOfColumn(boolean rawMode,
int column)
检索作为列表的指定列的内容。
|
Tree |
getItemsOfColumn()
检索树中指定列的项目。
|
Tree |
getItemsOfColumn(boolean allItems)
检索树中指定列的项目。
|
Tree |
getItemsOfColumn(boolean allItems,
int column)
检索树中指定列的项目。
|
String |
getSelectedTextOfColumn()
检索指定列中的所选文本。
|
String |
getSelectedTextOfColumn(int column)
检索指定列中的所选文本。
|
void |
multiSelect(ItemPath itemPath)
添加树中的项目至所选项目的集。
|
void |
multiSelect(String itemPath)
添加树中的项目至所选项目的集。
|
void |
multiUnselect(ItemPath itemPath)
从所选项目的集删除树中的项目。
|
void |
multiUnselect(String itemPath)
从所选项目的集删除树中的项目。
|
check, check, collapse, collapse, doubleSelect, doubleSelect, doubleSelect, doubleSelect, expand, expand, getItemCount, getItemPaths, getItemRect, getItemRect, getItemRect, getItemRect, getItems, getSelectedIndex, getSelectedIndices, getSelectedItem, getSelectedItems, getVisibleItemPaths, getVisibleItems, isAllowsCheck, isAllowsMultiSelect, isExpandable, isExpandable, isExpanded, isExpanded, select, select, setSelectedIndex, setSelectedIndex, setSelectedIndices, setSelectedItem, setSelectedItem, setSelectedItems, uncheck, uncheck
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenu
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getBackground, getFont, getForeground, getNativeHandle, isEnabled, isFocused, isVisible, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setBackground, setEnabled, setFocus, setFont, setForeground, setVisible, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, 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 SWTTree(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 SWTTree 的句柄desktop
- 此对象所在的桌面public void extendSelect(ItemPath itemPath)
itemPath
- 可选择的项目public void extendSelect(String itemPath)
itemPath
- 可选择的项目. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)
。
public List<String> getContentsOfColumn(boolean rawMode)
rawMode
- 阻止修剪项目中的空间public List<String> getContentsOfColumn(boolean rawMode, int column)
rawMode
- 阻止修剪项目中的空间column
- 可从中获取内容的列。. The value is zero-based.public Tree getItemsOfColumn()
public Tree getItemsOfColumn(boolean allItems)
allItems
- 结果包含不可视项目时为 truepublic Tree getItemsOfColumn(boolean allItems, int column)
allItems
- 结果包含不可视项目时为 truecolumn
- 可从中获取项目的列。. The value is zero-based.public String getSelectedTextOfColumn()
public String getSelectedTextOfColumn(int column)
column
- 可从中获取文本的列。. The value is zero-based.public void multiSelect(ItemPath itemPath)
itemPath
- 可选择的项目public void multiSelect(String itemPath)
itemPath
- 可选择的项目. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)
。
public void multiUnselect(ItemPath itemPath)
itemPath
- 可选择的项目public void multiUnselect(String itemPath)
itemPath
- 可选择的项目. E.g: /Games/Applications[2]/[0]有关详细信息,请参见 ItemPath.ItemPath(String)
。
public int getColumnCount()
public List<SWTTreeColumn> getColumns()
Copyright 2009-2012 Micro Focus. All Rights Reserved.