{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"id":"C7471A60-5441-4A89-B927-73179FABB694","shape":{"__isSmartRef__":true,"id":1},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":180.8018403394826,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":10,"name":"NameLabel","partsBinMetaInfo":{"__isSmartRef__":true,"id":2},"textChunks":[{"__isSmartRef__":true,"id":4}],"charsReplaced":"Grr","lastFindLoc":-3,"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":6},{"__isSmartRef__":true,"id":7}],"doNotSerialize":["$$owner","$$savedTextString"],"doNotCopyProperties":["$$owner","$$savedTextString"],"isInputLine":true,"savedTextString":"TopLeft","eventHandler":{"__isSmartRef__":true,"id":8},"derivationIds":[7027,"DFD9E769-4B0A-4884-B59C-E283103F1B51"],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"_Rotation":0,"_Scale":0.9999999999999997,"_InputAllowed":false,"_HandStyle":"default","allowInput":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(39.0,-10.0)"},"1":{"fill":null,"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(56.0,15.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2":{"partsSpaceName":"PartsBin/Widgets/","migrationLevel":8,"comment":"Label that shows the name of a morph. Updates automatically.","partName":"NameLabel","changes":[{"__isSmartRef__":true,"id":3}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3":{"__serializedExpressions__":["date"],"author":"robertkrahn","message":"no comment","id":"B616FDF9-E7D9-4B4B-AB44-E202D09685F0","date":"new Date(\"Sat May 10 2014 23:46:50 GMT-0700 (PDT)\")"},"4":{"style":{"__isSmartRef__":true,"id":5},"chunkOwner":{"__isSmartRef__":true,"id":0},"_id":"_2345","storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"5":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"6":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"owner","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"updateLabel","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"7":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"renameOwner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"8":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"9":{"updateLabel":{"__isSmartRef__":true,"id":10},"renameOwner":{"__isSmartRef__":true,"id":13}},"10":{"varMapping":{"__isSmartRef__":true,"id":11},"source":"function updateLabel() {\n\t// observe name changes in owner\n\tif (this.owner !== this.oldOwner) {\n\t\tif (this.oldOwner)\n\t\t\tdisconnect(this.oldOwner, 'name', this, 'updateLabel')\n\t\tif (this.owner)\n\t\t\tconnect(this.owner, 'name', this, 'updateLabel')\n\t\tthis.oldOwner = this.owner\n\t}\n\tvar name = (this.owner ? this.owner.name : \"no owner\")\n\tif (this.textString != name)\n\tthis.setTextString(name)\n}","funcProperties":{"__isSmartRef__":true,"id":12},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"11":{"this":{"__isSmartRef__":true,"id":0}},"12":{},"13":{"varMapping":{"__isSmartRef__":true,"id":14},"source":"function renameOwner(name) {\n\tif (this.owner && this.owner.name != name) {\n\t\talertOK(\"renamed \" + this.owner + \" to \" + name)\n\t\tthis.owner.setName(name);\n\t}\n}","funcProperties":{"__isSmartRef__":true,"id":15},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"14":{"this":{"__isSmartRef__":true,"id":0}},"15":{},"isSimplifiedRegistry":true}}