Class IlvPopupMenu
IlvObject
|
+--IlvAbstractPopupMenu
|
+--IlvPopupMenu
- Category:
- Graphics Framework component
- JavaScript File:
-
IlvPopupMenu.js
- Description:
- This class defines a contextual pop-up 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.
Constructor Summary
Constructor Attributes |
Constructor Name and Description |
|
|
Method Summary
Method Attributes |
Method Name and Description |
|
Returns the request URL to query a dynamic pop-up menu (used by the factory).
|
Methods inherited from class IlvAbstractPopupMenudisplayPopupMenu, getItemDisabledStyleClass, getItemHighlightedStyleClass, getItemStyleClass, getMenu, getSubMenuIcon, hidePopupMenu, internalDisplayPopupMenu, isDynamic, isPopupTrigger, performServerAction, setDynamic, setItemDisabledStyleClass, setItemHighlightedStyleClass, setItemStyleClass, setMenu, setSubmenuIcon |
Methods inherited from class IlvObjectdispose, getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
Constructor Detail
IlvPopupMenu
IlvPopupMenu()
Method Detail
createRequestURL
createRequestURL(view, event, modelId)
Returns the request URL to query a dynamic pop-up menu (used by the factory).
- Parameters:
-
view
-
event
-
modelId
©Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.