TreeViewNode

SAPGUI. TreeViewNode

TreeViewNode

Constructor

new TreeViewNode()

A TreeViewNode object

Methods

activateItem(itemOrIndex) → {Promise.<void>}

Activates an item in this node of a SAP column tree or list tree, by item text or index.
Parameters:
NameTypeDescription
itemOrIndexnumber | stringThe item text or 0-based index.
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>

clickButton(itemOrIndex) → {Promise.<void>}

Clicks the specified button item in this node of a SAP column tree or list tree, by button text or index.
Parameters:
NameTypeDescription
itemOrIndexnumber | stringThe button text or 0-based index.
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>
Clicks the specified link in this node of a SAP column tree or list tree, by link text or index.
Parameters:
NameTypeDescription
itemOrIndexnumber | stringThe link text or 0-based index.
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>

collapse() → {Promise.<void>}

Hides this node's sub-nodes in the expanded tree object.
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>

expand() → {Promise.<void>}

Displays this node's sub-nodes in the tree object.
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>

openContextMenu() → {Promise.<void>}

Opens the context menu for this node of a SAP simple tree.
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>

openItemContextMenu(item) → {Promise.<void>}

Opens the context menu for the specified item in this node of a SAP column tree or list tree.
Parameters:
NameTypeDescription
itemstringThe text of the item.
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>

path() → {string}

Get the path of the node.
Returns:
the path of the node.
Type
string

select(itemOrIndex) → {Promise.<void>}

Selects an item in this node of a SAP column tree or list tree, by item text or index.
Parameters:
NameTypeDescription
itemOrIndexnumber | stringThe item text or 0-based index.
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>

setCheckBoxState(itemOrIndex, state) → {Promise.<void>}

Selects or unselects a check box item for this node of a SAP column tree or list tree, by checkbox text.
Parameters:
NameTypeDescription
itemOrIndexnumber | stringThe text or 0-based index of the check box.
statebooleanTrue to select
Returns:
a promise that is fulfilled when the operation ends.
Type
Promise.<void>