Skip to content

GWTTree

GWT Tree.

Extends HTMLObject

Extends SeSSimulatedObject

Behavior Pattern: GWTTreeBehavior

Property Summary

Property Description Getter Setter
ChildrenCount Children count of the current node in the tree. GetChildrenCount
Expanded Expanded state of the current node. GetExpanded
NodeIndex Zero based index of the current node. GetNodeIndex
NodeText Text of the current node. GetNodeText
Selected Selected state of the current node. GetSelected
SelectedNodeText Text of the selected node. GetSelectedNodeText

Action Summary

Action Description
DoClickNode Clicks specific node in the tree.
DoCollapse Collapses specific node in the tree.
DoExpand Expands specific node in the tree.
DoFindChild Finds child node by its path from the current node and remembers it as the current node.
DoFindNode Searches for specific node in the tree and remembers it as the current node.
DoGetPath Returns path to the current node.

Property Detail

ChildrenCount

Children count of the current node in the tree.

Type: number

Accessors: GetChildrenCount

value = SeS('SomeGWTTree').GetChildrenCount()

Expanded

Expanded state of the current node. Use DoFindNode to set current node. 0 - if the node is collapsed, 1 - if the node is expanded, 2 - if the node is a leaf.

Type: number

Accessors: GetExpanded

value = SeS('SomeGWTTree').GetExpanded()

NodeIndex

Zero based index of the current node. Use DoFindNode to set current node.

Type: number

Accessors: GetNodeIndex

value = SeS('SomeGWTTree').GetNodeIndex()

NodeText

Text of the current node. Use DoFindNode to set current node.

Type: string

Accessors: GetNodeText

value = SeS('SomeGWTTree').GetNodeText()

Selected

Selected state of the current node. Use DoFindNode to set current node. 'true' if the node is selected, 'false' otherwise.

Type: boolean

Accessors: GetSelected

value = SeS('SomeGWTTree').GetSelected()

SelectedNodeText

Text of the selected node.

Type: string

Accessors: GetSelectedNodeText

value = SeS('SomeGWTTree').GetSelectedNodeText()

Action Detail

DoClickNode

Clicks specific node in the tree.

SeS('SomeGWTTree').DoClickNode(path, separator, pathType)

Parameters:

Name Type Description
path string Path of the node
separator string Separator character. Possible values: ";", ",", "\", "/"
Optional, Default: ";".
pathType string Path type. Can be one of 'name', 'id' or 'index'. Possible values: "name", "index", "id"
Optional, Default: "name".

Returns:

boolean: 'true' if success, 'false' otherwise.

DoCollapse

Collapses specific node in the tree.

SeS('SomeGWTTree').DoCollapse(path, separator, pathType)

Parameters:

Name Type Description
path string Path of the node
separator string Separator character. Possible values: ";", ",", "\", "/"
Optional, Default: ";".
pathType string Path type. Can be one of 'name', 'id' or 'index'. Possible values: "name", "index", "id"
Optional, Default: "name".

Returns:

boolean: 'true' if success, 'false' otherwise.

DoExpand

Expands specific node in the tree.

SeS('SomeGWTTree').DoExpand(path, separator, pathType)

Parameters:

Name Type Description
path string Path of the node
separator string Separator character. Possible values: ";", ",", "\", "/"
Optional, Default: ";".
pathType string Path type. Can be one of 'name', 'id' or 'index'. Possible values: "name", "index", "id"
Optional, Default: "name".

Returns:

boolean: 'true' if success, 'false' otherwise.

DoFindChild

Finds child node by its path from the current node and remembers it as the current node. If current node is not set then Root node is used.

SeS('SomeGWTTree').DoFindChild(path, separator, pathType, expand)

Parameters:

Name Type Description
path string Path of the node
separator string Separator character. Possible values: ";", ",", "\", "/"
Optional, Default: ";".
pathType string Path type. Can be one of 'name', 'id' or 'index'. Possible values: "name", "index", "id"
Optional, Default: "name".
expand boolean is set to true, then found node is expanded

Returns:

HTMLObject: HTMLObject of the found node

DoFindNode

Searches for specific node in the tree and remembers it as the current node.

SeS('SomeGWTTree').DoFindNode(path, separator, pathType, expand)

Parameters:

Name Type Description
path string Path of the node
separator string Separator character. Possible values: ";", ",", "\", "/"
Optional, Default: ";".
pathType string Path type. Can be one of 'name', 'id' or 'index'. Possible values: "name", "index", "id"
Optional, Default: "name".
expand boolean is set to true, then found node is expanded

Returns:

HTMLObject: HTMLObject of the found node

DoGetPath

Returns path to the current node.

SeS('SomeGWTTree').DoGetPath(pathType, separator)

Parameters:

Name Type Description
pathType string Path type. Can be one of 'name', 'id' or 'index'. Possible values: "name", "index", "id"
Optional, Default: "name".
separator string Separator character. Possible values: ";", ",", "\", "/"
Optional, Default: ";".

Returns:

string: Path to the current node