JavaSwingMenuBar

Top  Previous  Next

 

Java Swing Menu Bar. Extends JavaObject. Extends SeSSimulatedObject.

 

Behavior Pattern: JavaSwingObjectMenuBarBehavior

 

Action Summary

 

Action

Description

DoFullText

Returns text representation of the menu or saves it to a file.

DoGetSubmenuCount

Gets the number of submenu items for a given menu path.

DoGetSubmenuProperty

Gets submenu property.

DoGetSubmenuText

Gets submenu text.

DoMenu

Performs click on the menu item.

 

Action Detail

 

DoFullText(separator, filePath, append, includeSeparators)

Returns text representation of the menu or saves it to a file.

 

Parameters:

 

Name

Type

Description

separator

string

Separator
Optional, Default: ;.

filePath

string

Name of a file that should hold text representation of the menu.

append

boolean

If 'false' then file should be overwritten, if 'true' then data should be appended.
Optional, Default: false.

includeSeparators

boolean

If 'true' then menu separators are included to the result.
Optional, Default: false.

 

Returns:

 

Text representation of the menu, 'true' if the file was successfully written, 'false' otherwise.

 

DoGetSubmenuCount(path, separator)

Gets the number of submenu items for a given menu path.

 

Parameters:

 

Name

Type

Description

path

string

Path of the menu item to select.

separator

string

Separator
Optional, Default: ;.

 

Returns:

 

Number of submenu items, 'false' otherwise.

 

DoGetSubmenuProperty(path, index, property, separator)

Gets submenu property.

 

Parameters:

 

Name

Type

Description

path

string

Path of the menu item to select.

index

number

Index of the submenu.

property

string

Name of a property. Available properties can be seen in Java Spy.

separator

string

Separator
Optional, Default: ;.

 

Returns:

 

Submenu property, 'false' otherwise.

 

DoGetSubmenuText(path, index, separator)

Gets submenu text.

 

Parameters:

 

Name

Type

Description

path

string

Path of the menu item to select.

index

number

Index of the submenu.

separator

string

Separator
Optional, Default: ;.

 

Returns:

 

Submenu text, 'false' otherwise.

 

DoMenu(path, separator)

Performs click on the menu item.

 

Parameters:

 

Name

Type

Description

path

string

Path of the menu item to select.

separator

string

Separator
Optional, Default: ;.

 

Returns:

 

'true' if success, 'false' otherwise.