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. 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
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
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. 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
Action Detail¶
DoCollapse¶
Collapses specific node in the tree.
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.
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.
DoSelectItem(value)
Parameters:
Name | Type | Description |
---|---|---|
value | string | Item to select |
Returns:
boolean: 'true' if successful, 'false' otherwise.