Skip to content

JavaSwingPopupMenu

Java Swing Popup Menu.

UI element class: javax.swing.JPopupMenu

Extends JavaObject

Extends SeSSimulatedObject

Behavior Pattern: JavaObjectPopupSelectableBehavior

Property Summary

Property Description Getter Setter
ItemCount Number of items. GetItemCount
ItemIndexByName Returns item index by its name. GetItemIndexByName
ItemNameByIndex Returns item name by its index. GetItemNameByIndex

Action Summary

Action Description
DoSelectItem Selects an item of this object.

Property Detail

ItemCount

Number of items.

Type: number

Accessors: GetItemCount

value = SeS('SomeJavaSwingPopupMenu').GetItemCount()

ItemIndexByName

Returns item index by its name. 'false' if name is not found.

Getter Parameters:

Name Type Description
name string

Type: number|boolean

Accessors: GetItemIndexByName

value = SeS('SomeJavaSwingPopupMenu').GetItemIndexByName(name)

ItemNameByIndex

Returns item name by its index.'false' if name is not found.

Getter Parameters:

Name Type Description
index number Index of the item

Type: string|boolean

Accessors: GetItemNameByIndex

value = SeS('SomeJavaSwingPopupMenu').GetItemNameByIndex(index)

Action Detail

DoSelectItem

Selects an item of this object.

SeS('SomeJavaSwingPopupMenu').DoSelectItem(item)

Parameters:

Name Type Description
item string | number Item index or text value to select.

Returns:

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