5.7.1 (SWT) Tree

Description:

A tree in SWT is essentially the same as a tree in Swing, with an extra option to have chackboxes on the nodes of the tree. Use this component if you want to select or check the selection of the checkboxes on an SWT tree. For other actions on trees, use the tree component in the concrete toolkit.

Synopsis:

New Actions
Name Type Parameters
Check Selection of Checkbox by Indexpath c

String:Path Type
Integer:Pre-ascend
String:Indexpath
Boolean:Checked

SWT_Tree_VerifyCheckboxOfNodeByIndexpath
Check Selection of Checkbox by Textpath c

String:Path Type
Integer:Pre-ascend
String:Textpath
String:Operator
Boolean:Checked

SWT_Tree_VerifyCheckboxOfNodeByTextpath
Check Selection of Checkbox on Selected Node c

Boolean:Checked

SWT_Tree_VerifyCheckboxOfSelectedEntry
Toggle Checkbox on Node by Indexpath e

String:Path Type
Integer:Pre-ascend
String:Indexpath

SWT_Tree_ToggleCheckboxByIndexpath
Toggle Checkbox on Node by Textpath e

String:Path Type
Integer:Pre-ascend
String:Textpath
String:Operator

SWT_Tree_ToggleCheckboxByTextpath

Inherited Actions
Name Type Parameters Inherited from
Check Enablement c

Boolean:Enabled

Graphics Component (abstract)
Check Enablement of Context Menu Entry by Indexpath c

String:Indexpath
Boolean:Enabled
Integer:Mouse Button

Graphics Component (abstract)
Check Enablement of Context Menu Entry by Indexpath (Specify Position) c

Integer:x-position
String:x-units
Integer:y-position
String:y-units
String:Indexpath
Boolean:Enabled
Integer:Mouse Button

Graphics Component (abstract)
Check Enablement of Context Menu Entry by Textpath c

String:Textpath
String:Operator
Boolean:Enabled
Integer:Mouse Button

Graphics Component (abstract)
Check Enablement of Context Menu Entry by Textpath (Specify Position) c

Integer:x-position
String:x-units
Integer:y-position
String:y-units
String:Textpath
String:Operator
Boolean:Enabled
Integer:Mouse Button

Graphics Component (abstract)
Check Existence c

Boolean:Exists

Graphics Component (abstract)
Check Existence of Context Menu Entry by Indexpath c

String:Indexpath
Boolean:Exists
Integer:Mouse Button

Graphics Component (abstract)
Check Existence of Context Menu Entry by Indexpath (Specify Position) c

Integer:x-position
String:x-units
Integer:y-position
String:y-units
String:Indexpath
Boolean:Exists
Integer:Mouse Button

Graphics Component (abstract)
Check Existence of Context Menu Entry by Textpath c

String:Textpath
String:Operator
Boolean:Exists
Integer:Mouse Button

Graphics Component (abstract)
Check Existence of Context Menu Entry by Textpath (Specify Position) c

Integer:x-position
String:x-units
Integer:y-position
String:y-units
String:Textpath
String:Operator
Boolean:Exists
Integer:Mouse Button

Graphics Component (abstract)
Check Existence of Node by Indexpath c

String:Path Type
Integer:Pre-ascend
String:Indexpath
Boolean:Exists

Tree (concrete)
Check Existence of Node by Textpath c

String:Path Type
Integer:Pre-ascend
String:Textpath
String:Operator
Boolean:Exists

Tree (concrete)
Check Focus c

Boolean:Has Focus

Graphics Component (abstract)
Check Property c

String:Property Name
String:Property Value
String:Operator

Graphics Component (abstract)
Check Selection of Context Menu Entry by Indexpath c

String:Indexpath
Boolean:Selected
Integer:Mouse Button

Graphics Component (abstract)
Check Selection of Context Menu Entry by Indexpath (Specify Position) c

Integer:x-position
String:x-units
Integer:y-position
String:y-units
String:Indexpath
Boolean:Selected
Integer:Mouse Button

Graphics Component (abstract)
Check Selection of Context Menu Entry by Textpath c

String:Textpath
String:Operator
Boolean:Selected
Integer:Mouse Button

Graphics Component (abstract)
Check Selection of Context Menu Entry by Textpath (Specify Position) c

Integer:x-position
String:x-units
Integer:y-position
String:y-units
String:Textpath
String:Operator
Boolean:Selected
Integer:Mouse Button

Graphics Component (abstract)
Check Text (Mouse Position) c

String:Text
String:Operator

Tree (concrete)
Check Text of Selected Node(s) c

String:Text
String:Operator

Tree (concrete)
Click e

Integer:Number of Clicks
Integer:Mouse Button

Graphics Component (abstract)
Click in Component e

Integer:Number of Clicks
Integer:Mouse Button
Integer:x-position
String:x-units
Integer:y-position
String:y-units

Graphics Component (abstract)
Collapse Node by Indexpath e

String:Path Type
Integer:Pre-ascend
String:Indexpath

Tree (concrete)
Collapse Node by Textpath e

String:Path Type
Integer:Pre-ascend
String:Textpath
String:Operator

Tree (concrete)
Drag e

Integer:Mouse Button
String:Modifier Keys
Integer:x-position
String:x-units
Integer:y-position
String:y-units

Graphics Component (abstract)
Drag Node by Indexpath e

Integer:Mouse Button
String:Modifier Keys
String:Path Type
Integer:Pre-ascend
String:Tree Indexpath

Tree (concrete)
Drag Node by Textpath e

Integer:Mouse Button
String:Modifier Keys
String:Path Type
Integer:Pre-ascend
String:Tree Textpath
String:Operator

Tree (concrete)
Drop e

Integer:x-position
String:x-units
Integer:y-position
String:y-units
Integer:Delay before drop (milliseconds)

Graphics Component (abstract)
Drop on Node by Indexpath e

String:Path Type
Integer:Pre-ascend
String:Tree Indexpath
Integer:Delay before drop (milliseconds)

Tree (concrete)
Drop on Node by Textpath e

String:Path Type
Integer:Pre-ascend
String:Tree Textpath
String:Operator
Integer:Delay before drop (milliseconds)

Tree (concrete)
Expand Node by Indexpath e

String:Path Type
Integer:Pre-ascend
String:Indexpath

Tree (concrete)
Expand Node by Textpath e

String:Path Type
Integer:Pre-ascend
String:Textpath
String:Operator

Tree (concrete)
Move e

String:Direction
Integer:Number of Nodes
Integer:Number of Clicks

Tree (concrete)
Select Context Menu Entry by Indexpath e

String:Indexpath
Integer:Mouse Button

Graphics Component (abstract)
Select Context Menu Entry by Indexpath (Specify Position) e

Integer:x-position
String:x-units
Integer:y-position
String:y-units
String:Indexpath
Integer:Mouse Button

Graphics Component (abstract)
Select Context Menu Entry by Textpath e

String:Textpath
String:Operator
Integer:Mouse Button

Graphics Component (abstract)
Select Context Menu Entry by Textpath (Specify Position) e

Integer:x-position
String:x-units
Integer:y-position
String:y-units
String:Menupath
String:Operator
Integer:Mouse Button

Graphics Component (abstract)
Select Node by Indexpath e

String:Path Type
Integer:Pre-ascend
String:Indexpath
Integer:Number of Clicks
Integer:Mouse Button
String:Extend Selection

Tree (concrete)
Select Node by Textpath e

String:Path Type
Integer:Pre-ascend
String:Textpath
String:Operator
Integer:Number of Clicks
Integer:Mouse Button
String:Extend Selection

Tree (concrete)
Show Text e

String:Text
Integer:Text Size (in points)
Integer:Time per Word (in milliseconds)
Integer:Window Width (in pixels)

Graphics Component (abstract)
Store Property e

Variable:Variable Name
String:Property Name

Graphics Component (abstract)
Store Text at Mouse Position e

Variable:Variable Name

Tree (concrete)
Store Text of Selected Node e

Variable:Variable Name

Tree (concrete)
Wait for Component e

Integer:Timeout in ms
Integer:Delay after Visibility

Graphics Component (abstract)


Check Selection of Checkbox by Indexpath ((SWT) Tree)

h

Parameters
Name Data Type Values Default
Path Type String absolute
relative
absolute

Name Data Type Values Default
Pre-ascend Integer - 0

\includegraphics[height=2cm]{lightbulb} The Pre-ascend parameter is simply ignored for absolute paths.

Name Data Type Values Default
Indexpath String - none

Use this parameter to specify the textpath to the node where the checkbox is whose status you want to check. Make sure you give the whole path (either starting from the top of the tree, or at the position defined by the pre-ascend and path type parameters).

Name Data Type Values Default
Checked Boolean true
false
true


Check Selection of Checkbox by Textpath ((SWT) Tree)

Parameters
Name Data Type Values Default
Path Type String absolute
relative
absolute

Name Data Type Values Default
Pre-ascend Integer - 0

\includegraphics[height=2cm]{lightbulb} The Pre-ascend parameter is simply ignored for absolute paths.

Name Data Type Values Default
Textpath String - none

Enter the textpath to the node on which you want to check the status of the checkbox. Make sure you give the whole path (either starting from the top of the tree, or at the position defined by the pre-ascend and path type parameters).

Name Data Type Values Default
Operator String equals
not equals
matches
simple match
equals

\includegraphics[height=2cm]{lightbulb} When you use a regular expression for a textpath, bear in mind that each subpath is considered separately. The first path which corresponds to each subpath will be chosen. It is therefore advisable to make your regular expressions as unambiguous as possible.

Name Data Type Values Default
Checked Boolean true
false
true


Check Selection of Checkbox on Selected Node ((SWT) Tree)

Parameters
Name Data Type Values Default
Checked Boolean true
false
true


Toggle Checkbox on Node by Indexpath ((SWT) Tree)

Parameters
Name Data Type Values Default
Path Type String absolute
relative
absolute

Name Data Type Values Default
Pre-ascend Integer - 0

\includegraphics[height=2cm]{lightbulb} The Pre-ascend parameter is simply ignored for absolute paths.

Name Data Type Values Default
Indexpath String - none

Use this parameter to specify the textpath to the node you want to select / deselect the checkbox on. Make sure you give the whole path (either starting from the top of the tree, or at the position defined by the pre-ascend and path type parameters).


Toggle Checkbox on Node by Textpath ((SWT) Tree)

Parameters
Name Data Type Values Default
Path Type String absolute
relative
absolute

Name Data Type Values Default
Pre-ascend Integer - 0

\includegraphics[height=2cm]{lightbulb} The Pre-ascend parameter is simply ignored for absolute paths.

Name Data Type Values Default
Textpath String - none

Enter the textpath to the node on which you want to select or deselect the checkbox. Make sure you give the whole path (either starting from the top of the tree, or at the position defined by the pre-ascend and path type parameters).

Name Data Type Values Default
Operator String equals
not equals
matches
simple match
equals

\includegraphics[height=2cm]{lightbulb} When you use a regular expression for a textpath, bear in mind that each subpath is considered separately. The first path which corresponds to each subpath will be chosen. It is therefore advisable to make your regular expressions as unambiguous as possible.

Tree Table (swt)



Copyright BREDEX GmbH 2012. Made available under the Eclipse Public License v1.0.