IlvPopupMenu
IlvObject
|
+--IlvAbstractPopupMenu
|
+--IlvPopupMenu
- Category:
-
Graphics Framework component
- JavaScript File:
-
IlvPopupMenu.js
- Description:
-
This class defines a contextual popup menu intended to be set on a view.
The menu will be displayed this menu on a right click on the view
This contextual could be static or dynamic.
- static: The menu and menu items are defined programmatically
and the setMenu(menu) method is called with the root menu.
Example:
var root = new IlvMenu("root", true);
var item1 = new IlvMenuItem("MenuItem1", true, myAction);
....
root.add(item1);
IlvPopupMenu popupMenu = new IlvPopupMenu();
popupMenu.setMenu(root);
var view = new IlvView(...);
view.setPopupMenu(popupMenu);
- dynamic: The menu is contextual and then generated by the server
and is depending on the server side graphic object selected and
the current interactor set on the view through its
menuModelId property.
Example:
IlvPopupMenu popupMenu = new IlvPopupMenu();
var view = new IlvView(...);
view.setPopupMenu(popupMenu);
Please refer to the user manual to configure the server side.
|
Method Summary |
createRequestURL(view, event, modelId)
Returns the request URL to query a dynamic popup menu (used by the factory). |
IlvPopupMenu
IlvPopupMenu()
- Creates an instance of IlvPopupMenu.
createRequestURL
createRequestURL(view, event, modelId)
-
Returns the request URL to query a dynamic popup menu (used by the factory).
| Inherited Methods from IlvAbstractPopupMenu |
createRequestURL, displayPopupMenu, getItemDisabledStyleClass, getItemHighlightedStyleClass, getItemStyleClass, getMenu, getSubMenuIcon, hidePopupMenu, internalDisplayPopupMenu, isDynamic, isPopupTrigger, performServerAction, setDynamic, setItemDisabledStyleClass, setItemHighlightedStyleClass, setItemStyleClass, setMenu, setSubmenuIcon| Inherited Methods from IlvObject |
callDispose, dispose, getClassName, hashCode, inherits, instanceOf, invoke, registerDispose, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility