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 SummaryModifier and TypeMethodDescriptionvoidactivateNode(TreeViewNode node) Activates a node in a tree.voidactivateNode(String path) Activates a node in a tree.buildNodePath(Object... nodePathParts) Returns the path of the specified tree node.voidclickColumn(int columnIndex) Clicks the specified column in a column tree or list tree.voidclickColumn(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.voidOpens a tree's default context menu.voidopenHeaderContextMenu(int columnIndex) Opens a context menu for a header in a column tree or list tree.voidopenHeaderContextMenu(String column) Opens a context menu for a header in a column tree or list tree.voidPresses the ENTER key.voidselectMenuItemById(String menuItemId) Selects a menu item from a context menu by ID.voidselectNode(TreeViewNode node) Selects a node in an SAP tree.voidselectNode(String path) Selects a node in an SAP tree.Methods inherited from interface com.hp.lft.sdk.EnabledProviderisEnabledMethods inherited from interface com.hp.lft.sdk.LocationInfoProvidergetAbsoluteLocation, getLocation, getSizeMethods inherited from interface com.hp.lft.sdk.SupportsNativeObjectgetNativeObjectMethods inherited from interface com.hp.lft.sdk.TestObjectcallFTMethod, 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.TestObjectDescriberdescribeMethods inherited from interface com.hp.lft.sdk.WaitUntilEnabledProviderwaitUntilEnabled, waitUntilEnabled
- 
Method Details- 
activateNodeActivates 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
 
- 
activateNodeActivates a node in a tree.- Parameters:
- node- the node.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
clickColumnClicks the specified column in a column tree or list tree.- Parameters:
- column- the name of the column.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
clickColumnClicks the specified column in a column tree or list tree.- Parameters:
- columnIndex- 1-based.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
selectNodeSelects 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
 
- 
selectNodeSelects a node in an SAP tree.- Parameters:
- node- the node you want to select.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
openContextMenuOpens 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
 
- 
openHeaderContextMenuOpens 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
 
- 
openHeaderContextMenuOpens 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
 
- 
selectMenuItemByIdSelects 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
 
- 
pressEnterPresses the ENTER key. Set focus to to the tree before invoking.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getSelectedItemReturns the value of the selected item in the tree.- Returns:
- the value.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getSelectedNodePathReturns the path of the selected node in the tree.- Returns:
- the path of the selected node.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getSelectionModeReturns which selections can be made in the tree.- Returns:
- the selection mode.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getTreeTypeReturns the type of tree.- Returns:
- the type.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getNodeReturns 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
 
- 
buildNodePathReturns 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
 
 
-