SWTTree

Java SWT Tree.

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 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

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.
Optional, Default: ;.
pathType string Path type. Can be one of 'name', 'id' or 'index'.
Optional, Default: name.

Type: string|boolean

Accessors: GetChildrenCount, SetChildrenCount

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.
Optional, Default: ;.
pathType string Path type. Can be one of 'name', 'id' or 'index'.
Optional, Default: name.

Type: boolean

Accessors: GetExpanded, SetExpanded

NodeText

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

Type: string|boolean

Accessors: GetNodeText, SetNodeText

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.
Optional, Default: ;.
pathType string Path type. Can be one of 'name', 'id' or 'index'.
Optional, Default: name.

Type: boolean

Accessors: GetSelected, SetSelected

Action Detail

DoCollapse(path, separator, pathType)

Collapses specific node in the tree.

Parameters:

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

Returns:

boolean: '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:

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

DoSelectItem(value)

Selects specified item in the tree.

Parameters:

Name Type Description
value string Item to select

Returns:

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