mxGenericChangeCodec

Codec for mxValueChanges, mxStyleChanges, mxGeometryChanges, mxCollapseChanges and mxVisibleChanges.  This class is created and registered dynamically at load time and used implicitly via mxCodec and the mxCodecRegistry.

Transient Fields

  • model
  • previous

Reference Fields

  • cell
Summary
mxGenericChangeCodecCodec for mxValueChanges, mxStyleChanges, mxGeometryChanges, mxCollapseChanges and mxVisibleChanges.
Functions
mxGenericChangeCodecFactory function that creates a mxObjectCodec for the specified change and fieldname.
afterDecodeRestores the state by assigning the previous value.

Functions

mxGenericChangeCodec

var mxGenericChangeCodec = function(obj,
variable)

Factory function that creates a mxObjectCodec for the specified change and fieldname.

Parameters

objAn instance of the change object.
variableThe fieldname for the change data.

afterDecode

codec.afterDecode = function(dec,
node,
obj)

Restores the state by assigning the previous value.

Action to change a user object in a model.
Action to change a cell’s style in a model.
Action to change a cell’s geometry in a model.
Action to change a cell’s collapsed state in a model.
Action to change a cell’s visible state in a model.
var mxGenericChangeCodec = function(obj,
variable)
Factory function that creates a mxObjectCodec for the specified change and fieldname.
Generic codec for JavaScript objects that implements a mapping between JavaScript objects and XML nodes that maps each field or element to an attribute or child node, and vice versa.
codec.afterDecode = function(dec,
node,
obj)
Restores the state by assigning the previous value.
XML codec for JavaScript object graphs.
Singleton class that acts as a global registry for codecs.
Close