JavaSwingPopupMenu

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

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

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

Action Detail

DoSelectItem(item)

Selects an item of this object.

Parameters:

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

Returns:

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