Codec for mxChildChanges. This class is created and registered dynamically at load time and used implicitely via mxCodec and the mxCodecRegistry.
mxChildChangeCodec | Codec for mxChildChanges. |
Functions | |
isReference | Returns true for the child attribute if the child cell had a previous parent or if we’re reading the child as an attribute rather than a child node, in which case it’s always a reference. |
isExcluded | Excludes references to parent or previous if not in the model. |
afterEncode | Encodes the child recusively and adds the result to the given node. |
beforeDecode | Decodes the any child nodes as using the respective codec from the registry. |
afterDecode | Restores object state in the child change. |
Returns true for the child attribute if the child cell had a previous parent or if we’re reading the child as an attribute rather than a child node, in which case it’s always a reference.
codec.isReference = function( obj, attr, value, isWrite )
Excludes references to parent or previous if not in the model.
codec.isExcluded = function( obj, attr, value, write )
Encodes the child recusively and adds the result to the given node.
codec.afterEncode = function( enc, obj, node )
Decodes the any child nodes as using the respective codec from the registry.
codec.beforeDecode = function( dec, node, obj )
Restores object state in the child change.
codec.afterDecode = function( dec, node, obj )