public class SLTreeView extends SLBase
| Modifier | Constructor and Description |
|---|---|
protected |
SLTreeView(JtfObjectHandle handle,
Desktop desktop)
Creates a new SLTreeView with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collapse(ItemPath item)
Collapses the specified item.
|
void |
collapse(String item)
Collapses the specified item.
|
void |
expand(ItemPath item)
Expands the specified item.
|
void |
expand(String item)
Expands the specified item.
|
void |
expandAll()
Expands all items in the tree.
|
double |
getHorizontalScrollPercent()
Gets the current horizontal scroll position or negative one (-1) if there is no valid scroll position.
|
List<SLTreeViewItem> |
getRootItems()
Gets a complete list of all root tree items.
|
List<String> |
getRootItemTexts()
Gets a complete list of the texts of all root tree items.
|
SLTreeViewItem |
getSelectedItem()
Gets the selected item or returns null if the selection is empty.
|
ItemPath |
getSelectedItemPath()
Gets the selected item path or an empty item path if nothing is selected.
|
String |
getSelectedItemText()
Gets the text of the selected item or an empty string if the selection is empty.
|
double |
getVerticalScrollPercent()
Gets the current vertical scroll position or negative one (-1) if there is no valid scroll position.
|
List<ItemPath> |
getVisibleItemPaths()
Gets the visible items in the tree as item paths.
|
boolean |
isHorizontallyScrollable()
Gets a value that indicates whether the tree view can scroll horizontally.
|
boolean |
isVerticallyScrollable()
Gets a value that indicates whether the tree view can scroll vertically.
|
void |
scrollHorizontal(ScrollAmount scrollAmount)
Scrolls the currently visible region of the content area, horizontally, the specified ScrollAmount.
|
void |
scrollVertical(ScrollAmount scrollAmount)
Scrolls the currently visible region of the content area, vertically, the specified ScrollAmount.
|
void |
select(ItemPath item)
Selects the specified item.
|
void |
select(String item)
Selects the specified item.
|
void |
setHorizontalScrollPercent(double percent)
Sets the horizontal scroll position as a percentage of the total content area within the tree view.
|
void |
setVerticalScrollPercent(double percent)
Sets the vertical scroll position as a percentage of the total content area within the tree view.
|
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, typePasswordKeyscaptureBitmap, 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, 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 SLTreeView(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the SLTreeViewdesktop - the desktop on which this object livespublic void collapse(ItemPath item)
item - the item to collapsepublic void collapse(String item)
item - the item to collapse. E.g: /Games/Applications[2]/[0]For details see ItemPath.ItemPath(String).
public void expand(ItemPath item)
item - the item to expandpublic void expand(String item)
item - the item to expand. E.g: /Games/Applications[2]/[0]For details see ItemPath.ItemPath(String).
public void expandAll()
public void scrollHorizontal(ScrollAmount scrollAmount)
scrollAmount - the direction and distance to scrollpublic void scrollVertical(ScrollAmount scrollAmount)
scrollAmount - =The direction and distance to scrollpublic void select(ItemPath item)
item - the item to selectpublic void select(String item)
item - the item to select. E.g: /Games/Applications[2]/[0]For details see ItemPath.ItemPath(String).
public void setHorizontalScrollPercent(double percent)
percent - the percentage of the total horizontal content areapublic void setVerticalScrollPercent(double percent)
percent - the percentage of the total vertical content areapublic boolean isHorizontallyScrollable()
public double getHorizontalScrollPercent()
public List<SLTreeViewItem> getRootItems()
public List<String> getRootItemTexts()
public SLTreeViewItem getSelectedItem()
public ItemPath getSelectedItemPath()
public String getSelectedItemText()
public boolean isVerticallyScrollable()
public double getVerticalScrollPercent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.