<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxGenericChangeCodec"></a>mxGenericChangeCodec</h1><divclass=CBody><p>Codec for <ahref="../model/mxGraphModel-js.html#mxValueChange"class=LClassid=link9onMouseOver="ShowTip(event, 'tt1', 'link9')"onMouseOut="HideTip('tt1')">mxValueChange</a>s, <ahref="../model/mxGraphModel-js.html#mxStyleChange"class=LClassid=link10onMouseOver="ShowTip(event, 'tt2', 'link10')"onMouseOut="HideTip('tt2')">mxStyleChange</a>s, <ahref="../model/mxGraphModel-js.html#mxGeometryChange"class=LClassid=link11onMouseOver="ShowTip(event, 'tt3', 'link11')"onMouseOut="HideTip('tt3')">mxGeometryChange</a>s, <ahref="../model/mxGraphModel-js.html#mxCollapseChange"class=LClassid=link12onMouseOver="ShowTip(event, 'tt4', 'link12')"onMouseOut="HideTip('tt4')">mxCollapseChange</a>s and <ahref="../model/mxGraphModel-js.html#mxVisibleChange"class=LClassid=link13onMouseOver="ShowTip(event, 'tt5', 'link13')"onMouseOut="HideTip('tt5')">mxVisibleChange</a>s. This class is created and registered dynamically at load time and used implicitely via <ahref="mxCodec-js.html#mxCodec"class=LClassid=link14onMouseOver="ShowTip(event, 'tt9', 'link14')"onMouseOut="HideTip('tt9')">mxCodec</a> and the <ahref="mxCodecRegistry-js.html#mxCodecRegistry"class=LClassid=link15onMouseOver="ShowTip(event, 'tt10', 'link15')"onMouseOut="HideTip('tt10')">mxCodecRegistry</a>.</p><h4class=CHeading>Transient Fields</h4><ul><li>model</li><li>previous</li></ul><h4class=CHeading>Reference Fields</h4><ul><li>cell</li></ul><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxGenericChangeCodec">mxGenericChangeCodec</a></td><tdclass=SDescription>Codec for <ahref="../model/mxGraphModel-js.html#mxValueChange"class=LClassid=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">mxValueChange</a>s, <ahref="../model/mxGraphModel-js.html#mxStyleChange"class=LClassid=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">mxStyleChange</a>s, <ahref="../model/mxGraphModel-js.html#mxGeometryChange"class=LClassid=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">mxGeometryChange</a>s, <ahref="../model/mxGraphModel-js.html#mxCollapseChange"class=LClassid=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">mxCollapseChange</a>s and <ahref="../model/mxGraphModel-js.html#mxVisibleChange"class=LClassid=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">mxVisibleChange</a>s. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxGenericChangeCodec.Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#mxGenericChangeCodec.mxGenericChangeCodec"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">mxGenericChangeCodec</a></td><tdclass=SDescription>Factory function that creates a <ahref="mxObjectCodec-js.html#mxObjectCodec"class=LClassid=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">mxObjectCodec</a> for the specified change and fieldname.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#mxGenericChangeCodec.afterDecode"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">afterDecode</a></td><tdclass=SDescription>Restores the state by assigning the previous value.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGenericChangeCodec.mxGenericChangeCodec"></a>mxGenericChangeCodec</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>var mxGenericChangeCodec = function(</td><tdclass=PParameternowrap>obj,</td></tr><tr><td></td><tdclass=PParameternowrap>variable</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Factory function that creates a <ahref="mxObjectCodec-js.html#mxObjectCodec"class=LClassid=link16onMouseOver="ShowTip(event, 'tt7', 'link16')"onMouseOut="HideTip('tt7')">mxObjectCodec</a> for the specified change and fieldname.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>obj</td><tdclass=CDLDescription>An instance of the change object.</td></tr><tr><tdclass=CDLEntry>variable</td><tdclass=CDLDescription>The fieldname for the change data.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxGenericChangeCodec.afterDecode"></a>afterDecode</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>codec.afterDecode = function(</td><tdclass=PParameternowrap>dec,</td></tr><tr><td></td><tdclass=PParameternowrap>node,</td></tr><tr><td></td><tdclass=PParameternowrap>obj</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Restores the state by assigning the previous value.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CClass>Action to change a user object in a model.</div></div><divclass=CToolTipid="tt2"><divclass=CClass>Action to change a cell’s style in a model.</div></div><divclass=CToolTipid="tt3"><divclass=CClass>Action to change a cell’s geometry in a model.</div></div><divclass=CToolTipid="tt4"><divclass=CClass>Action to change a cell’s collapsed state in a model.</div></div><divclass=CToolTipid="tt5"><divclass=CClass>Action to change a cell’s visible state in a model.</div></div><divclass=CToolTipid="tt6"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>var mxGenericChangeCodec = function(</td><tdclass=PParameternowrap>obj,</td></tr><tr><td></td><tdclass=PParameternowrap>variable</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Factory function that creates a mxObjectCodec for the specified change and fieldname.</div></div><divclass=CToolTipid="tt7"><divclass=CClass>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.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>codec.afterDecode = function(</td><tdclass=PParameternowrap>dec,</td></tr><tr><td></td><tdclass=PParameternowrap>node,</td></tr><tr><td></td><tdclass=PParameternowrap>obj</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Restores the state by assigning the previous value.</div></div><divclass=CToolTipid="tt9"><divclass=CClass>XML codec for JavaScript object graphs. </div></div><divclass=CToolTipid="tt10"><divclass=CClass>Singleton class that acts as a global registry for codecs.</div></div><!--END_ND_TOOLTIPS-->