mxDefaultPopupMenuCodec

Custom codec for configuring mxDefaultPopupMenus.  This class is created and registered dynamically at load time and used implicitly via mxCodec and the mxCodecRegistry.  This codec only reads configuration data for existing popup menus, it does not encode or create menus.  Note that this codec only passes the configuration node to the popup menu, which uses the config to dynamically create menus.  See mxDefaultPopupMenu.createMenu.

Summary
mxDefaultPopupMenuCodecCustom codec for configuring mxDefaultPopupMenus.
Functions
encodeReturns null.
decodeUses the given node as the config for mxDefaultPopupMenu.

Functions

encode

codec.encode = function(enc,
obj)

Returns null.

decode

codec.decode = function(dec,
node,
into)

Uses the given node as the config for mxDefaultPopupMenu.

Creates popupmenus for mouse events.
codec.encode = function(enc,
obj)
Returns null.
codec.decode = function(dec,
node,
into)
Uses the given node as the config for mxDefaultPopupMenu.
XML codec for JavaScript object graphs.
Singleton class that acts as a global registry for codecs.
mxDefaultPopupMenu.prototype.createMenu = function(editor,
menu,
cell,
evt)
This function is called from mxEditor to add items to the given menu based on config.
Close