Share this page

# TreeViewNode

## Java. TreeViewNode

TreeViewNode

## Constructor

## new TreeViewNode()

A TreeViewNode object

# Methods

## clickState() → {Promise.<void>}

Clicks the state icon of a node in a tree.

##### Returns:

a promise that is fulfilled when the clickState operation ends.

Type
  Promise.<void>

## collapse() → {Promise.<void>}

Collapses an expandable node in a tree.

##### Returns:

a promise that is fulfilled when the collapse operation ends.

Type
  Promise.<void>

## doubleClickState() → {Promise.<void>}

Double-clicks the state icon of a node in a tree.

##### Returns:

a promise that is fulfilled when the doubleClickState operation ends.

Type
  Promise.<void>

## expand() → {Promise.<void>}

Expands an expandable node in a tree.

##### Returns:

a promise that is fulfilled when the expand operation ends.

Type
  Promise.<void>

## getColumnValue(columnIndexOrName) → {Promise.<void>}

Returns the text of a node in the tree from the specified column by index or name.

##### Parameters:

Name | Type | Description
--- | --- | ---
`columnIndexOrName` | number | string | 0-based index or the name of the column from which to return the value.

##### Returns:

a promise that is fulfilled when the getColumnValue operation ends.

Type
  Promise.<void>

## openContextMenu() → {Promise.<void>}

Opens the context menu of a node in a tree.

##### Returns:

a promise that is fulfilled when the openContextMenu operation ends.

Type
  Promise.<void>

## path() → {string}

Returns the path to the node in the tree.

##### Returns:

the path to the node in the tree

Type
  string

## setChecked(state) → {Promise.<void>}

Sets the state of the node in the tree.

##### Parameters:

Name | Type | Description
--- | --- | ---
`state` | boolean | The new state of the check box: true - Checked, false - Unchecked.

##### Returns:

a promise that is fulfilled when the setChecked operation ends.

Type
  Promise.<void>

## setNodeState(index) → {Promise.<void>}

Sets the state of the node in the tree.

##### Parameters:

Name | Type | Description
--- | --- | ---
`index` | number | The state index.

##### Returns:

a promise that is fulfilled when the setNodeState operation ends.

Type
  Promise.<void>

Tips to improve your search results... UFT Developer JavaScript SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: