Package com.hp.lft.sdk.java
Interface TreeViewTable
- All Superinterfaces:
Clickable
,DoubleClickable
,EnabledProvider
,LocationInfoProvider
,SupportsNativeObject
,TableBase
,TestObject
,TestObjectDescriber
,TreeViewBase
,UiObjectBase
,VisibleProvider
,WaitUntilEnabledProvider
,WaitUntilVisibleProvider
A JavaFX TreeViewTable.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Activates a node or row in the tree view table.void
collapse
(int index) Collapses the expandable node in the tree.void
Collapses the expandable node in the tree.void
deselect
(TreeViewTableRow... nodes) Clears the selection of nodes in the tree.void
deselectColumn
(int column) Unselects the specified column by column index.void
deselectColumn
(String columnsHeader) Unselects the specified column by column header.void
deselectRowsRange
(TreeViewTableRow fromRow, TreeViewTableRow toRow) Unselects rows byTreeViewTableRow
.void
expand
(int index) Expands the expandable node in the tree.void
Expands the expandable node in the tree.void
extendSelect
(TreeViewTableRow... nodes) Selects additional nodes in the tree.getNode
(int index) Returns the value of the specified node.Returns the selected nodes in the tree.void
select
(TreeViewTableRow... nodes) Selects the specified nodes.void
selectColumn
(int column) Selects column by column index.void
selectColumn
(String columnHeader) Selects column by column header.void
selectRange
(TreeViewTableRow fromNode, TreeViewTableRow toNode) Selects the specified range of nodes.void
selectRowsRange
(TreeViewTableRow fromRow, TreeViewTableRow toRow) Selects a range of rows by row objects.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.java.TableBase
activateCell, activateCell, activateColumn, activateColumn, deselectRowsRange, getColumnHeaders, selectCell, selectCell, selectCellsRange, selectCellsRange, selectColumnsRange, selectColumnsRange, selectRowsRange
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
-
activate
Activates a node or row in the tree view table. Tip: Use theTreeViewBase.buildNodePath(java.lang.Object...)
method to build the node path string to be used as the nodeOrPath argument for this method.- Parameters:
nodePath
- The full path of the node to activate within the tree.- Throws:
GeneralLeanFtException
- if error occurs during execution.
-
getNode
Returns the value of the specified node.- Parameters:
index
- The 0-based index of the node or row you want to retrieve.- Returns:
- The value of the specified node.
- 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
-
deselect
Clears the selection of nodes in the tree.- Parameters:
nodes
- the nodes to deselect.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
deselectColumn
Unselects the specified column by column index.
Important: This method is not supported for SWT tables.- Parameters:
column
- 0-based column index.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
deselectColumn
Unselects the specified column by column header.
Important: This method is not supported for SWT tables.- Parameters:
columnsHeader
- the column header.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
deselectRowsRange
void deselectRowsRange(TreeViewTableRow fromRow, TreeViewTableRow toRow) throws GeneralLeanFtException Unselects rows byTreeViewTableRow
.- Parameters:
fromRow
- the firstTreeViewTableRow
.toRow
- the lastTreeViewTableRow
.- 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.
-
select
Selects the specified nodes.- Parameters:
nodes
- the nodes to select.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectColumn
Selects column by column index.- Parameters:
column
- 0-based index of the column.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
selectColumn
Selects column by column header.- Parameters:
columnHeader
- the header of the column.- 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
-
selectRowsRange
void selectRowsRange(TreeViewTableRow fromRow, TreeViewTableRow toRow) throws GeneralLeanFtException Selects a range of rows by row objects.- Parameters:
fromRow
- the firstTreeViewTableRow
.toRow
- the lastTreeViewTableRow
.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
expand
Expands the expandable node in the tree.- Parameters:
nodePath
- The full path of the node to expand within the tree.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
expand
Expands the expandable node in the tree.- Parameters:
index
- The 0-based index of the node or row to expand.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
collapse
Collapses the expandable node in the tree.- Parameters:
nodePath
- The full path of the node to collapse within the tree.- Throws:
GeneralLeanFtException
- if error occurs during execution
-
collapse
Collapses the expandable node in the tree.- Parameters:
index
- The 0-based index of the node or row to collapse.- Throws:
GeneralLeanFtException
- if error occurs during execution
-