Package com.hp.lft.sdk.sap.gui
Interface TreeView
- All Superinterfaces:
Element
,EnabledProvider
,LocationInfoProvider
,SupportsNativeObject
,TestObject
,TestObjectDescriber
,WaitUntilEnabledProvider
A tree control in a SAP GUI for Windows application.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateNode
(TreeViewNode node) Activates a node in a tree.void
activateNode
(String path) Activates a node in a tree.buildNodePath
(Object... nodePathParts) Returns the path of the specified tree node.void
clickColumn
(int columnIndex) Clicks the specified column in a column tree or list tree.void
clickColumn
(String column) Clicks the specified column in a column tree or list tree.Returns the node with the specified path.Returns the value of the selected item in the tree.Returns the path of the selected node in the tree.Returns which selections can be made in the tree.Returns the type of tree.void
Opens a tree's default context menu.void
openHeaderContextMenu
(int columnIndex) Opens a context menu for a header in a column tree or list tree.void
openHeaderContextMenu
(String column) Opens a context menu for a header in a column tree or list tree.void
Presses the ENTER key.void
selectMenuItemById
(String menuItemId) Selects a menu item from a context menu by ID.void
selectNode
(TreeViewNode node) Selects a node in an SAP tree.void
selectNode
(String path) Selects a node in an SAP tree.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.WaitUntilEnabledProvider
waitUntilEnabled, waitUntilEnabled
-
Method Details
-
activateNode
Activates a node in a tree. You can usebuildNodePath(Object...)
to build the node path string to be used as the path argument for this method. You can also use regular expressions in the path name, using the format: RegExp:=(regular expression).- Parameters:
path
- the path to the node. Separate nodes in the path can be specified by the name or 1-based index in the format "#index". Elements of the path are separated by semicolons(;).- Throws:
GeneralLeanFtException
- if error occurs during execution
-
activateNode
Activates a node in a tree.- Parameters:
node
- the node.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
clickColumn
Clicks the specified column in a column tree or list tree.- Parameters:
column
- the name of the column.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
clickColumn
Clicks the specified column in a column tree or list tree.- Parameters:
columnIndex
- 1-based.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectNode
Selects a node in an SAP tree. You can use the BuildNodePath method to build the node path string to be used as the path argument for this method. You can also use regular expressions in the path name, using the format: RegExp:=(regular expression).- Parameters:
path
- the path to the node you want to select. Separate nodes in the path can be specified by the name or index number (in the format "#index") . Index values begin with 1.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectNode
Selects a node in an SAP tree.- Parameters:
node
- the node you want to select.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
openContextMenu
Opens a tree's default context menu. After opening a context menu, you can useselectMenuItemById(String)
to select the menu item.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
openHeaderContextMenu
Opens a context menu for a header in a column tree or list tree. After opening a context menu, you can useselectMenuItemById(String)
to select the menu item.- Parameters:
column
- the column name.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
openHeaderContextMenu
Opens a context menu for a header in a column tree or list tree. After opening a context menu, you useselectMenuItemById(String)
to select the menu item.- Parameters:
columnIndex
- the 1-based column index.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectMenuItemById
Selects a menu item from a context menu by ID.- Parameters:
menuItemId
- a string format ID for the menu item.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
pressEnter
Presses the ENTER key. Set focus to to the tree before invoking.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getSelectedItem
Returns the value of the selected item in the tree.- Returns:
- the value.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getSelectedNodePath
Returns the path of the selected node in the tree.- Returns:
- the path of the selected node.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getSelectionMode
Returns which selections can be made in the tree.- Returns:
- the selection mode.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getTreeType
Returns the type of tree.- Returns:
- the type.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
getNode
Returns the node with the specified path. If the path is not unique, returns the first node with the specified path. You can usebuildNodePath(Object...)
to build the node path string to be used as the path argument for this method.- Parameters:
path
- elements of the path are separated by semicolons(;).- Returns:
- the node.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-
buildNodePath
Returns the path of the specified tree node.- Parameters:
nodePathParts
- the node path parts can be: logical name(String), full path(String), or 1-based index(int). Elements of the path are separated by semicolons(;).- Returns:
- the path.
- Throws:
GeneralLeanFtException
- if error occurs during execution
-