Interface ITreeView
A Java tree.
Inherited Members
Namespace: HP.LFT.SDK.Java
Assembly: HP.LFT.SDK.dll
Syntax
public interface ITreeView : ITreeViewBase, IUiObjectBase, IClickable, IDoubleClickable, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider, IVisibleProvider, ITestObject, ITestObjectDescriber
Properties
ColumnsCount
Returns the number of columns in the tree.
Declaration
int ColumnsCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
SelectedNodes
Returns the selected nodes in the tree.
Declaration
ReadOnlyCollection<ITreeViewNode> SelectedNodes { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<ITreeViewNode> |
VisibleNodesCount
Returns the number of visible nodes in the tree.
Declaration
int VisibleNodesCount { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
ActivateNode(ITreeViewNode)
Activates a node in the tree.
Declaration
void ActivateNode(ITreeViewNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode | node | The specified node to activate in the tree. |
ActivateNode(string)
Activates a node in the tree by node path.
Declaration
void ActivateNode(string nodePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | nodePath | The full path of the node to activate within the tree. Tip: Use the HP.LFT.SDK.Technologies.Java.API.ITreeViewBase#BuildNodePath method to build the node path string to be used as the nodePath argument for this method |
Deselect(params ITreeViewNode[])
Clears the selection of nodes in the tree.
Declaration
void Deselect(params ITreeViewNode[] nodes)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode[] | nodes | The nodes to deselect. |
ExtendSelect(params ITreeViewNode[])
Selects additional nodes in the tree.
Declaration
void ExtendSelect(params ITreeViewNode[] nodes)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode[] | nodes | The nodes to add to the selection. |
GetColumnHeader(int)
Returns the header of the specified column in the tree.
Declaration
string GetColumnHeader(int columnIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | columnIndex | 0-based index of the column from which to return the value. |
Returns
| Type | Description |
|---|---|
| string |
GetNode(string)
Returns the specified node.
Declaration
ITreeViewNode GetNode(string nodePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | nodePath | The full path of the node to return within the tree. |
Returns
| Type | Description |
|---|---|
| ITreeViewNode |
Select(params ITreeViewNode[])
Selects the specified nodes in the tree.
Declaration
void Select(params ITreeViewNode[] nodes)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode[] | nodes | The nodes to select in a tree. |
SelectRange(ITreeViewNode, ITreeViewNode)
Selects the specified range of nodes in the tree.
Declaration
void SelectRange(ITreeViewNode fromNode, ITreeViewNode toNode)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeViewNode | fromNode | The first node in the range |
| ITreeViewNode | toNode | The last node of the range |