Extras
ContextMenu
Class Hierarchy:

ContextMenu component. May not contain child components.

Class Field Summary
Public ACTIVATION_MODE_CLICK
Value for activationMode property, indicating that the context menu should be activated whenever the contents are (normal/left) clicked.
Public ACTIVATION_MODE_CONTEXT_CLICK
Value for activationMode property, indicating that the context menu should be activated whenever the contents are context (right) clicked.

Instance Method Summary
Public doAction()
Processes the user selection an item.

Methods inherited from class Echo.Component
getFocusComponent, add, addListener, fireEvent, get, getComponent, getComponentCount, getIndex, getLayoutDirection, getLocale, getLocalStyleData, getRenderLayoutDirection, getRenderLocale, getStyle, getStyleName, indexOf, isActive, isAncestorOf, isEnabled, isRenderEnabled, register, render, renderIndex, remove, removeAll, removeListener, set, setEnabled, setIndex, setLayoutDirection, setLocale, setStyle, setStyleName, toString

Style Properties
backgroundImage FillImage (String or Object) the background image that will be displayed within menus
border Border (String or Object) the border that will be displayed around the menus
disabledBackground Color (String) the background color used to render disabled menu items
disabledBackgroundImage FillImage (String or Object) the background image used to render disabled menu items
disabledForeground Color (String) the foreground color used to render disabled menu items
menuExpandIcon ImageReference (String or Object) the icon used to expand child menus
selectionBackground Color (String) the background color used to highlight the currently selected menu item
selectionBackgroundImage FillImage (String or Object) the background image used to highlight the currently selected menu item
selectionForeground Color (String) the foreground color used to highlight the currently selected menu item
activationMode Number a flag indicating how the context menu may be activated, one or more of the following values ORed together:
  • ACTIVATION_MODE_CLICK: activate menu when contents are clicked.
  • ACTIVATION_MODE_CONTEXT_CLICK: (the default) activate menu when contents are context-clicked.

Instance Method Detail
doAction
Processes the user selection an item.
Parameters:
itemModel (Extras.ItemModel) - the selected item