Creates popupmenus for mouse events. This object holds an XML node which is a description of the popup menu to be created. In createMenu, the configuration is applied to the context and the resulting menu items are added to the menu dynamically. See createMenu for a description of the configuration format. This class does not create the DOM nodes required for the popup menu, it only parses an XML description to invoke the respective methods on an mxPopupMenu each time the menu is displayed.
Constructs a new popupmenu-factory based on given configuration.
XML node that contains the configuration data.
XML node used as the description of new menu items. This node is used in createMenu to dynamically create the menu items if their respective conditions evaluate to true for the given arguments.
Base path for all icon attributes in the config. Default is null.
Helper method to bind an action to a new menu item.
mxPopupMenu that is used for adding items and separators.
Enclosing mxEditor instance.
String that represents the label of the menu item.
DOM node that represents the parent menu item.
Optional URL that represents the icon of the menu item.
Optional name of the action to execute in the given editor.
Optional mxCell to use as an argument for the action.
Optional CSS class for the menu icon.
Optional boolean that specifies if the menu item is enabled. Default is true.
Recursively adds the given items and all of its children into the given menu.
Enclosing mxEditor instance.
mxPopupMenu that is used for adding items and separators.
Array of names boolean conditions.
XML node that represents the current menu item.
DOM node that represents the parent menu item.
Optional mxCell which is under the mousepointer.
Optional mouse event which triggered the menu.
Enclosing mxEditor instance.
mxPopupMenu that is used for adding items and separators.
Optional mxCell which is under the mousepointer.
Optional mouse event which triggered the menu.
Generated using TypeDoc
Creates popupmenus for mouse events. This object holds an XML node which is a description of the popup menu to be created. In createMenu, the configuration is applied to the context and the resulting menu items are added to the menu dynamically. See createMenu for a description of the configuration format. This class does not create the DOM nodes required for the popup menu, it only parses an XML description to invoke the respective methods on an mxPopupMenu each time the menu is displayed.
This class uses the {@link mxDefaultPopupMenuCodec} to read configuration data into an existing instance, however, the actual parsing is done by this class during program execution, so the format is described below.