public class SWTTree extends Tree
| Modifier | Constructor and Description |
|---|---|
protected |
SWTTree(JtfObjectHandle handle,
Desktop desktop)
Creates a new SWTTree with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
extendSelect(ItemPath itemPath)
Selects a range of items by extending the selection.
|
void |
extendSelect(String itemPath)
Selects a range of items by extending the selection.
|
int |
getColumnCount()
Gets the number of columns in the tree.
|
List<SWTTreeColumn> |
getColumns()
Gets a list of columns in the tree.
|
List<String> |
getContentsOfColumn(boolean rawMode)
Retrieves the contents of the specified column as a list.
|
List<String> |
getContentsOfColumn(boolean rawMode,
int column)
Retrieves the contents of the specified column as a list.
|
Tree |
getItemsOfColumn()
Retrieve items of the specified column from Tree.
|
Tree |
getItemsOfColumn(boolean allItems)
Retrieve items of the specified column from Tree.
|
Tree |
getItemsOfColumn(boolean allItems,
int column)
Retrieve items of the specified column from Tree.
|
String |
getSelectedTextOfColumn()
Retrieves selected text from the specified column.
|
String |
getSelectedTextOfColumn(int column)
Retrieves selected text from the specified column.
|
void |
multiSelect(ItemPath itemPath)
Adds an item from the tree to the set of selected items.
|
void |
multiSelect(String itemPath)
Adds an item from the tree to the set of selected items.
|
void |
multiUnselect(ItemPath itemPath)
Removes an item in the tree from the set of selected items.
|
void |
multiUnselect(String itemPath)
Removes an item in the tree from the set of selected items.
|
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, uncheckgetHorizontalBar, getVerticalBar, openContextMenu, openContextMenuclick, 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, typePasswordKeyscaptureBitmap, 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, waitForPropertyequals, 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, toStringprotected SWTTree(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the SWTTreedesktop - the desktop on which this object livespublic void extendSelect(ItemPath itemPath)
itemPath - the item to selectpublic void extendSelect(String itemPath)
itemPath - the item to select. E.g: /Games/Applications[2]/[0]For details see ItemPath.ItemPath(String).
public List<String> getContentsOfColumn(boolean rawMode)
rawMode - prevents spaces from being trimmed from itemspublic List<String> getContentsOfColumn(boolean rawMode, int column)
rawMode - prevents spaces from being trimmed from itemscolumn - the column to get the contents from. The value is zero-based.public Tree getItemsOfColumn()
public Tree getItemsOfColumn(boolean allItems)
allItems - true if the result should include nonviewable itemspublic Tree getItemsOfColumn(boolean allItems, int column)
allItems - true if the result should include nonviewable itemscolumn - the column to get the items from. The value is zero-based.public String getSelectedTextOfColumn()
public String getSelectedTextOfColumn(int column)
column - the column to get the text from. The value is zero-based.public void multiSelect(ItemPath itemPath)
itemPath - the item to selectpublic void multiSelect(String itemPath)
itemPath - the item to select. E.g: /Games/Applications[2]/[0]For details see ItemPath.ItemPath(String).
public void multiUnselect(ItemPath itemPath)
itemPath - the item to selectpublic void multiUnselect(String itemPath)
itemPath - the item to select. E.g: /Games/Applications[2]/[0]For details see ItemPath.ItemPath(String).
public int getColumnCount()
public List<SWTTreeColumn> getColumns()
Copyright 2009-2012 Micro Focus. All Rights Reserved.