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:
NameTypeDescription
columnIndexOrNamenumber | string0-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:
NameTypeDescription
statebooleanThe 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:
NameTypeDescription
indexnumberThe state index.
Returns:
a promise that is fulfilled when the setNodeState operation ends.
Type
Promise.<void>