Package com.hp.lft.sdk.java
Interface TreeView
- All Superinterfaces:
Clickable,DoubleClickable,EnabledProvider,LocationInfoProvider,SupportsNativeObject,TestObject,TestObjectDescriber,TreeViewBase,UiObjectBase,VisibleProvider,WaitUntilEnabledProvider,WaitUntilVisibleProvider
A Java tree.
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivateNode(TreeViewNode node) Activates a node in the tree.voidactivateNode(String nodePath) Activates a node in the tree by node path.voiddeselect(TreeViewNode... nodes) Clears the selection of nodes in the tree.voidextendSelect(TreeViewNode... nodes) Selects additional nodes in the tree.getColumnHeader(int columnIndex) Returns the header of the specified column in the tree.Returns the specified node.Returns the selected nodes in the tree.intReturns the number of visible nodes in the tree.voidselect(TreeViewNode... nodes) Selects the specified nodes.voidselectRange(TreeViewNode fromNode, TreeViewNode toNode) Selects the specified range of nodes.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClickMethods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObject
callFTMethod, callFTMethod, exists, exists, findChildren, getDescription, getDisplayName, getParent, getSnapshot, getTextLocations, getTextLocations, getVisibleText, getVisibleText, highlight, highlightMatches, setDescription, setDisplayName, verifyImageExists, verifyImageExists, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, verifyImageMatch, waitUntilExists, waitUntilExistsMethods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describeMethods inherited from interface com.hp.lft.sdk.java.TreeViewBase
buildNodePath, deselect, deselectRange, extendSelect, getColumnsCount, select, selectRangeMethods inherited from interface com.hp.lft.sdk.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeysMethods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisibleMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabledMethods inherited from interface com.hp.lft.sdk.WaitUntilVisibleProvider
waitUntilVisible, waitUntilVisible
-
Method Details
-
getVisibleNodesCount
Returns the number of visible nodes in the tree.- Returns:
- the number of visible nodes.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getSelectedNodes
Returns the selected nodes in the tree.- Returns:
- the selected nodes.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
activateNode
Activates a node in the tree.- Parameters:
node- the node to activate.- Throws:
GeneralLeanFtException- if error occurs during execution
-
activateNode
Activates a node in the tree by node path.- Parameters:
nodePath- the full path of the node to activate.
Tip: Use theTreeViewBase.buildNodePath(java.lang.Object...)method to build the node path string to be used as the nodePath argument for this method.- Throws:
GeneralLeanFtException- if error occurs during execution
-
deselect
Clears the selection of nodes in the tree.- Parameters:
nodes- the nodes to deselect.- Throws:
GeneralLeanFtException- if error occurs during execution
-
extendSelect
Selects additional nodes in the tree.- Parameters:
nodes- the nodes to add to the selection.- Throws:
GeneralLeanFtException- if error occurs during execution.
-
getColumnHeader
Returns the header of the specified column in the tree.- Parameters:
columnIndex- 0-based index of the column from which to return the value.- Returns:
- the header of the specified column.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
getNode
Returns the specified node.- Parameters:
nodePath- the full path of the node to return within the tree.
Tip: Use theTreeViewBase.buildNodePath(java.lang.Object...)method to build the node path string to be used as the nodePath argument for this method.- Returns:
- the specified node.
- Throws:
GeneralLeanFtException- if error occurs during execution
-
select
Selects the specified nodes.- Parameters:
nodes- the nodes to select.- Throws:
GeneralLeanFtException- if error occurs during execution
-
selectRange
Selects the specified range of nodes.- Parameters:
fromNode- the first node in the range.toNode- the last node of the range.- Throws:
GeneralLeanFtException- if error occurs during execution
-