To learn more about using JavaScript in LeanFT, see Setting up and working with the JavaScript SDK.
For JavaScript code samples, see Code Samples - JavaScript.

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>

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

Sets the state of the node in the tree.
Parameters:
Name Type Description
state bool 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>