Class ZmActionMenu
Extends
ZmPopupMenu.
This class represents an action menu, which is a popup menu with a few added features.
It can be easily created using a set of standard operations, and/or custom menu items
can be provided. This class is designed for use with items (ZmItem), so it can for
example contain a tab submenu. See also ZmButtonToolBar.
Defined in: ZmActionMenu.js.
Class Summary
Constructor Attributes |
Constructor Name and Description |
|
Creates an action menu with the given menu items.
|
Method Summary
Method Attributes |
Method Name and Description |
|
Gets the menu item with the given ID.
|
|
Gets the menu tag sub-menu (if any).
|
- Methods borrowed from class ZmPopupMenu:
- addSelectionListener, createMenuItem, createSeparator, enable, enableAll, getMenuItem, getMenuItems, getSearchMenu, removeSelectionListener, setItemVisible
- Methods borrowed from class DwtMenu:
- addPopdownListener, addPopupListener, checkItem, getItem, getItemById, getItemCount, getItems, isPoppedUp, removePopdownListener, removePopupListener, scrollToItem, setSelectedItem
- Methods borrowed from class DwtComposite:
- addChild, cleanupSeparators, clear, dispose, getChild, getChildren, getNumChildren, getTabGroupMember, removeChild, removeChildren
- Methods borrowed from class DwtControl:
- addClassName, addControlListener, addDisposeListener, addListener, appendElement, blur, clearContent, clearHandler, condClassName, delClassName, focus, getBounds, getClassName, getContent, getCursor, getData, getDragBox, getDragSource, getDropTarget, getEnabled, getFocusElement, getH, getHtmlElement, getHTMLElId, getInsetBounds, getInsets, getLocation, getMargins, getOpacity, getOuterSize, getPosition, getScrollContainer, getScrollStyle, getSize, getTooltipBase, getToolTipContent, getVisibility, getVisible, getW, getX, getXW, getY, getYH, getZIndex, hasFocus, isAlertShown, isDisposed, isInitialized, isListenerRegistered, notifyListeners, preventContextMenu, preventSelection, removeAllListeners, removeControlListener, removeDisposeListener, removeListener, reparent, reparentHtmlElement, replaceElement, setBounds, setClassName, setContent, setCursor, setData, setDisplay, setDisplayState, setDragBox, setDragSource, setDropTarget, setEnabled, setEventPropagation, setFocusElement, setHandler, setHtmlElementId, setLocation, setOpacity, setPosition, setScrollStyle, setSize, setToolTipContent, setVisibility, setVisible, setZIndex, showAlert, zShow
Class Detail
ZmActionMenu(params)
Creates an action menu with the given menu items.
Author: Conrad Damon.
- Parameters:
-
{hash} params
- a hash of parameters
-
{DwtComposite} params.parent
- the containing widget
-
{ZmController} params.controller
- the owning controller
-
{array} params.menuItems
- a list of operation IDs
-
{hash} params.overrides
- a hash of overrides by op ID
-
{string} params.context
- the context (used to create ID)
-
{constant} params.menuType
- the menu type (used to generate menu item IDs)
Method Detail
Gets the menu item with the given ID.
- Parameters:
-
{constant} id
- an operation ID
- Returns:
- {DwtMenuItem} the menu item
- See:
- ZmOperation
Gets the menu tag sub-menu (if any).
- Returns:
- {DwtMenu} the menu
|