Skip to content

SWTTree

Java SWT Tree.

Extends SWTObject

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 Collapses specific node in the tree.
DoExpand Expands a 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.

Type: boolean

Accessors: GetChecked, SetChecked

value = SeS('SomeSWTTree').GetChecked()

SeS('SomeSWTTree').SetChecked(/**boolean*/value)

ChildrenCount

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

Getter 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".

Type: string|boolean

Accessors: GetChildrenCount, SetChildrenCount

value = SeS('SomeSWTTree').GetChildrenCount(path, separator, pathType)

SeS('SomeSWTTree').SetChildrenCount(/**string*/value)

Expanded

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

Getter 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".

Type: boolean

Accessors: GetExpanded, SetExpanded

value = SeS('SomeSWTTree').GetExpanded(path, separator, pathType)

SeS('SomeSWTTree').SetExpanded(path, separator, pathType)

NodeText

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

Type: string|boolean

Accessors: GetNodeText, SetNodeText

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

SeS('SomeSWTTree').SetNodeText(/**string*/value)

Selected

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

Getter 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".

Type: boolean

Accessors: GetSelected, SetSelected

value = SeS('SomeSWTTree').GetSelected(path, separator, pathType)

SeS('SomeSWTTree').SetSelected(path, separator, pathType)

Action Detail

DoCollapse

Collapses specific node in the tree.

SeS('SomeSWTTree').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 a specific node in the tree.

SeS('SomeSWTTree').DoExpand(node)

Parameters:

Name Type Description
node string Name of the node

Returns:

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

DoSelectItem

Selects specified item in the tree.

SeS('SomeSWTTree').DoSelectItem(value)

Parameters:

Name Type Description
value string Item to select

Returns:

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