5.7.2 Toolbar Item

Description:

Toolbar items are buttons and their menus on a toolbar, such as the one in Jubula (5.33). Each of the buttons on the toolbar is a toolbar item.

Figure 5.33: Toolbar items
Image toolbar

Often, toolbar items have drop-down menus (5.34).

Figure 5.34: Toolbar item menu
Image toolbarmenu

Mapping toolbar items

In the Object Mapping Mode , a toolbar item to be mapped looks like this:

Figure 5.35: Mapping toolbar items
Image maptoolbar

Synopsis:

New Actions
Name Type Parameters
Check Enablement of Entry by Indexpath e

String:Indexpath
Boolean:Enabled

SWT_ToolItem_VerifyEnabledByIndexpath
Check Enablement of Entry by Textpath e

String:Menupath
String:Operator
Boolean:Enabled

SWT_ToolItem_VerifyEnabledByTextpath
Check Existence of Entry by Indexpath e

String:Indexpath
Boolean:Exists

SWT_ToolItem_VerifyExistsByIndexpath
Check Existence of Entry by Textpath e

String:Menupath
String:Operator
Boolean:Exists

SWT_ToolItem_VerifyExistsByTextpath
Check Selection of Entry by Indexpath e

String:Indexpath
Boolean:Selected

SWT_ToolItem_VerifySelectedByIndexpath
Check Selection of Entry by Textpath e

String:Menupath
String:Operator
Boolean:Selected

SWT_ToolItem_VerifySelectedByTextpath
Select Menu Entry by Indexpath e

String:Indexpath

SWT_ToolItem_SelectMenuItemByIndexpath
Select Menu Entry by Textpath e

String:Menupath
String:Operator

SWT_ToolItem_SelectMenuItem

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

Boolean:Has Focus

Graphics Component (abstract)
Check Property c

String:Property Name
String:Property Value
String:Operator

Graphics Component (abstract)
Check Selection c

Boolean:Selected

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

String:Text
String:Operator

Component with Text (abstract)
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)
Drag e

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

Graphics Component (abstract)
Drop e

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

Graphics Component (abstract)
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)
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 Value e

Variable:Variable Name

Component with Text (abstract)
Wait for Component e

Integer:Timeout in ms
Integer:Delay after Visibility

Graphics Component (abstract)


Check Enablement of Entry by Indexpath (Toolbar Item)

Parameters
Name Data Type Values Default
Indexpath String - none

Use this parameter to specify the menupath to the item you want to check. Make sure you give the whole menupath (start from the very beginning of the menu).

Name Data Type Values Default
Enabled Boolean true
false
true


Check Enablement of Entry by Textpath (Toolbar Item)

Parameters
Name Data Type Values Default
Menupath String - none

Use this parameter to specify the menupath to the item you want to check. Make sure you enter the whole path.

\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
Operator String equals
not equals
matches
simple match
equals

Name Data Type Values Default
Enabled Boolean true
false
true


Check Existence of Entry by Indexpath (Toolbar Item)

Parameters
Name Data Type Values Default
Indexpath String - none

Use this parameter to specify the menupath to the item you want to check. Make sure you give the whole menupath (start from the very beginning of the menu).

Name Data Type Values Default
Exists Boolean true
false
true


Check Existence of Entry by Textpath (Toolbar Item)

Parameters
Name Data Type Values Default
Menupath String - none

Use this parameter to specify the menupath to the item you want to check. Make sure you enter the whole path.

\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
Operator String equals
not equals
matches
simple match
equals

Name Data Type Values Default
Exists Boolean true
false
true


Check Selection of Entry by Indexpath (Toolbar Item)

Parameters
Name Data Type Values Default
Indexpath String - none

Use this parameter to specify the menupath to the item you want to check. Make sure you give the whole menupath (start from the very beginning of the menu).

Name Data Type Values Default
Selected Boolean true
false
true


Check Selection of Entry by Textpath (Toolbar Item)

Parameters
Name Data Type Values Default
Menupath String - none

Use this parameter to specify the menupath to the item you want to check. Make sure you enter the whole path.

\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
Operator String equals
not equals
matches
simple match
equals

Name Data Type Values Default
Selected Boolean true
false
true


Select Menu Entry by Indexpath (Toolbar Item)

Parameters
Name Data Type Values Default
Indexpath String - none

Use this parameter to specify the menupath to the item you want to select. Make sure you give the whole menupath (start from the very beginning of the menu).


Select Menu Entry by Textpath (Toolbar Item)

Parameters
Name Data Type Values Default
Menupath String - none

Use this parameter to specify the menupath to the item you want to select. Make sure you enter the whole path.

\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
Operator String equals
not equals
matches
simple match
equals



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