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 TypeMethodDescriptionvoid
activateNode
(TreeViewNode node) Activates a node in the tree.void
activateNode
(String nodePath) Activates a node in the tree by node path.void
deselect
(TreeViewNode... nodes) Clears the selection of nodes in the tree.void
extendSelect
(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.int
Returns the number of visible nodes in the tree.void
select
(TreeViewNode... nodes) Selects the specified nodes.void
selectRange
(TreeViewNode fromNode, TreeViewNode toNode) Selects the specified range of nodes.Methods inherited from interface com.hp.lft.sdk.DoubleClickable
doubleClick, doubleClick, doubleClick
Methods inherited from interface com.hp.lft.sdk.EnabledProvider
isEnabled
Methods inherited from interface com.hp.lft.sdk.LocationInfoProvider
getAbsoluteLocation, getLocation, getSize
Methods inherited from interface com.hp.lft.sdk.SupportsNativeObject
getNativeObject
Methods 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, waitUntilExists
Methods inherited from interface com.hp.lft.sdk.TestObjectDescriber
describe
Methods inherited from interface com.hp.lft.sdk.java.TreeViewBase
buildNodePath, deselect, deselectRange, extendSelect, getColumnsCount, select, selectRange
Methods inherited from interface com.hp.lft.sdk.java.UiObjectBase
createObject, createObject, fireEvent, getAttachedText, getBackgroundColor, getForegroundColor, getLabel, getNativeClass, getObjectName, getObjectProperty, getPath, getStatics, getTagName, isFocused, sendKeys, sendKeys
Methods inherited from interface com.hp.lft.sdk.VisibleProvider
isVisible
Methods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
Methods 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
-