This page is maintained for older versions of Rapise only. The latest documentation can be found at: https://rapisedoc.inflectra.com
SWTTree

SWTTree

Top  Previous  Next

 

Extends UIAObject. Extends SeSSimulatedObject.

 

Behavior Pattern: SWTTreeBehavior

 

Property Summary

 

Property

Description

Getter

Setter

Checked

Checked state of the selected node or a node specified by the input parameters.

GetChecked

SetChecked

ChildrenCount

Number of children of the selected node or a node specified by the input parameters.

GetChildrenCount

SetChildrenCount

Expanded

Expanded state of the selected node or a node specified by the input parameters.

GetExpanded

SetExpanded

NodeText

Text of the selected node or a node specified by the input parameters.

GetNodeText

SetNodeText

Selected

Selected state of the selected node or a node specified by the input parameters

GetSelected

SetSelected

 

Action Summary

 

Action

Description

DoCollapse

Clicks specific node in the tree.

DoExpand

Clicks specific node in the tree.

DoSelectItem

Selects specified item in the tree

 

Property Detail

 

Checked

Checked state of the selected node or a node specified by the input parameters.

Accessors: GetChecked, SetChecked

 

ChildrenCount

Number of children of the selected node or a node specified by the input parameters.

Accessors: GetChildrenCount, SetChildrenCount

 

Expanded

Expanded state of the selected node or a node specified by the input parameters.

Accessors: GetExpanded, SetExpanded

 

NodeText

Text of the selected node or a node specified by the input parameters.

Accessors: GetNodeText, SetNodeText

 

Selected

Selected state of the selected node or a node specified by the input parameters

Accessors: GetSelected, SetSelected

 

Action Detail

 

DoCollapse(path, separator, pathType)

Clicks specific node in the tree.

 

Parameters:

 

Name

Type

Description

path

string

Path of the node

separator

string

Separator
Optional, Default: ;.

pathType

string

Path type. Can be one of 'name', 'id' or 'index'.
Optional, Default: name.

 

Returns:

 

'true' if success, 'false' otherwise.

 

DoExpand(node)

Expands a specific node in the tree.

 

Parameters:

 

Name

Type

Description

node

string

Name of the node

 

Returns:

 

'true' if success, 'false' otherwise.

 

DoSelectItem(value)

Selects specified item in the tree

 

Parameters:

 

Name

Type

Description

value

string

Item to select

 

Returns:

 

'true' if successful, 'false' otherwise.