{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"id":2101,"shape":{"__isSmartRef__":true,"id":1},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Verdana","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7},"_MaxTextWidth":157,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":4},"showsHalos":true,"_FontSize":16,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"FixedLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":8},"textChunks":[{"__isSmartRef__":true,"id":9}],"charsReplaced":"Cool","lastFindLoc":-4,"_TextColor":{"__isSmartRef__":true,"id":11},"_Padding":{"__isSmartRef__":true,"id":12},"renderContextTable":{"__isSmartRef__":true,"id":13},"eventHandler":{"__isSmartRef__":true,"id":14},"priorExtent":{"__isSmartRef__":true,"id":15},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorSelectionRange":[0,0],"_WhiteSpaceHandling":"pre-wrap","isBeingDragged":false,"layout":{"__isSmartRef__":true,"id":16},"_Align":"center","scriptAnnotations":{"__isSmartRef__":true,"id":17},"isFixed":true,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20},"__LivelyClassName__":"lively.morphic.Text"},"1":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2},"_Extent":{"__isSmartRef__":true,"id":3},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4},"_Fill":{"__isSmartRef__":true,"id":5},"_BorderRadius":50,"renderContextTable":{"__isSmartRef__":true,"id":6},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"3":{"x":157,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"5":{"r":0,"g":0.8,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"6":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"7":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"8":{"partsSpaceName":"PartsBin/Text/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"FixedLabel","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"9":{"style":{"__isSmartRef__":true,"id":10},"chunkOwner":{"__isSmartRef__":true,"id":0},"storedString":"FIXED","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10":{"fontWeight":"bold","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"12":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"13":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"14":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15":{"x":157,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"16":{},"17":{"onMouseDown":{"__isSmartRef__":true,"id":18}},"18":{"time":{"__isSmartRef__":true,"id":19},"user":"robertkrahn"},"19":{"isSerializedDate":true,"string":"Fri Aug 05 2011 12:03:05 GMT+0200 (CEST)"},"20":{"onMouseDown":{"__isSmartRef__":true,"id":21}},"21":{"varMapping":{"__isSmartRef__":true,"id":22},"source":"function onMouseDown(evt) {\n    var r = $super(evt);\n    if (evt.isCommandKey()) return r;\n    this.isFixed = !this.isFixed;\n    if (this.isFixed) {\n        this.applyStyle({fill: Color.green})\n        this.setTextString('FIXED')\n        this.emphasizeAll({fontWeight: 'bold'})\n    } else {\n        this.applyStyle({fill: Color.red})\n        this.setTextString('NOT FIXED')\n        this.emphasizeAll({fontWeight: 'bold'})\n    }\n    evt.stop();    \n}","funcProperties":{"__isSmartRef__":true,"id":27},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"22":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23}},"23":{"$super":{"__isSmartRef__":true,"id":24}},"24":{"varMapping":{"__isSmartRef__":true,"id":25},"source":"function () {\n                try {\n                    return obj.constructor.prototype[name].apply(obj, arguments)\n                } catch(e) {\n                    alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"25":{"obj":{"__isSmartRef__":true,"id":0},"name":"onMouseDown"},"26":{},"27":{},"isSimplifiedRegistry":true}}