{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"id":"B40A95D6-7BFA-4052-B9A3-4EDE8FDD477C","shape":{"__isSmartRef__":true,"id":1},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"monospace","registeredForMouseEvents":true,"_MaxTextWidth":760.695652,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":11,"name":"TextWithVisitLink","partsBinMetaInfo":{"__isSmartRef__":true,"id":2},"textChunks":[{"__isSmartRef__":true,"id":20}],"charsReplaced":"thesis://excerpts/enyojs.xhtml","lastFindLoc":41,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":22},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","5848BD12-8F39-45F4-958F-07FC46FFCFCE","8F94DAED-EB2B-482B-9AEF-6F98F3E1A5F0"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":760.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"#startLetters":"inc","previousSelection":[40,40],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","_Padding","distanceToDragEvent"],"_WordBreak":"break-all","priorSelectionRange":[0,50],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(5,5,0,0)","distanceToDragEvent":"lively.pt(329.0,-15.0)"},"1":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__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(546.7,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(4,2,0,0)"},"2":{"partsSpaceName":"PartsBin/Jens","migrationLevel":4,"comment":"a text morph with a link button that hovers","partName":"TextWithVisitLink","changes":[{"__isSmartRef__":true,"id":3},{"__isSmartRef__":true,"id":5},{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":9},{"__isSmartRef__":true,"id":11},{"__isSmartRef__":true,"id":13},{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":17}],"revisionOnLoad":192844,"lastModifiedDate":{"__isSmartRef__":true,"id":19},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"3":{"date":{"__isSmartRef__":true,"id":4},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"4":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"5":{"date":{"__isSmartRef__":true,"id":6},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)).  This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"6":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"7":{"date":{"__isSmartRef__":true,"id":8},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"8":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"9":{"date":{"__isSmartRef__":true,"id":10},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"10":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"11":{"date":{"__isSmartRef__":true,"id":12},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"12":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"13":{"date":{"__isSmartRef__":true,"id":14},"author":"jenslincke","message":"no comment","id":"8490A2C9-98DF-46E3-9094-D30CFDAED571"},"14":{"isSerializedDate":true,"string":"Tue Feb 26 2013 11:50:51 GMT+0100 (CET)"},"15":{"date":{"__isSmartRef__":true,"id":16},"author":"jenslincke","message":"added preview button","id":"E49ED5BF-A172-4D25-9557-FB2BD073127F"},"16":{"isSerializedDate":true,"string":"Tue Feb 26 2013 14:56:07 GMT+0100 (CET)"},"17":{"date":{"__isSmartRef__":true,"id":18},"author":"jenslincke","message":"no comment","id":"7A5B0BA9-65BE-4894-B4A2-E32BF191FB05"},"18":{"isSerializedDate":true,"string":"Tue Feb 26 2013 14:59:20 GMT+0100 (CET)"},"19":{"isSerializedDate":true,"string":"Tue Feb 26 2013 14:53:48 GMT+0100 (CET)"},"20":{"style":{"__isSmartRef__":true,"id":21},"morph":{"__isSmartRef__":true,"id":0},"chunkOwner":{"__isSmartRef__":true,"id":0},"storedString":"thesis://examples/ContextJS_CiteLayerExample.xhtml","_id":"_65","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"22":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"23":{"onMouseOver":{"__isSmartRef__":true,"id":24},"onMouseOut":{"__isSmartRef__":true,"id":28},"showLink":{"__isSmartRef__":true,"id":36},"hideLink":{"__isSmartRef__":true,"id":40},"followLink":{"__isSmartRef__":true,"id":44},"previewLink":{"__isSmartRef__":true,"id":48}},"24":{"varMapping":{"__isSmartRef__":true,"id":25},"source":"function onMouseOver() {\n    this.showLink()\n}","funcProperties":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25":{"this":{"__isSmartRef__":true,"id":0}},"26":{"timestamp":{"__isSmartRef__":true,"id":27},"user":"jenslincke","tags":[]},"27":{"isSerializedDate":true,"string":"Tue Feb 26 2013 11:35:18 GMT+0100 (CET)"},"28":{"varMapping":{"__isSmartRef__":true,"id":29},"source":"function onMouseOut() {\n    var self = this;\n    var hideIfMouseChanged = function() {\n        if (! self.innerBoundsContainsWorldPoint(self.world().firstHand().getPosition())) {\n            self.hideLink()\n        }\n    };\n    hideIfMouseChanged.delay(2)\n}","funcProperties":{"__isSmartRef__":true,"id":34},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"29":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":30}},"30":{"$super":{"__isSmartRef__":true,"id":31}},"31":{"varMapping":{"__isSmartRef__":true,"id":32},"source":"function () {\n                    try {\n                        return obj.constructor.prototype[name].apply(obj, arguments)\n                    } catch (e) {\n                        if ($world)\n                            $world.logError(e, 'Error in $super call')\n                        else\n                            alert('Error in $super call: ' + e + '\\n' + e.stack);\n                        return null;\n                    }\n                }","funcProperties":{"__isSmartRef__":true,"id":33},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"32":{"obj":{"__isSmartRef__":true,"id":0},"name":"onMouseOut"},"33":{},"34":{"timestamp":{"__isSmartRef__":true,"id":35},"user":"jenslincke","tags":[]},"35":{"isSerializedDate":true,"string":"Tue Feb 26 2013 11:42:04 GMT+0100 (CET)"},"36":{"varMapping":{"__isSmartRef__":true,"id":37},"source":"function showLink() {\n    this.hideLink()\n    this.linkButton = new lively.morphic.Button(new Rectangle(0,0,40,20),\"visit\");\n    this.linkButton.isEpiMorph = true;\n    lively.bindings.connect(this.linkButton, \"fire\", this, \"followLink\")\n    this.world().addMorph(this.linkButton)\n    this.linkButton.align(\n        this.linkButton.bounds().bottomRight(), \n        this.bounds().topRight())\n\n\n    this.previewButton = new lively.morphic.Button(new Rectangle(0,0,60,20),\"preview\");\n    this.previewButton.isEpiMorph = true;\n    lively.bindings.connect(this.previewButton, \"fire\", this, \"previewLink\")\n    this.world().addMorph(this.previewButton)\n    this.previewButton.align(\n        this.previewButton.bounds().topRight(), \n        this.linkButton.bounds().topLeft())\n\n\n}","funcProperties":{"__isSmartRef__":true,"id":38},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"37":{"this":{"__isSmartRef__":true,"id":0}},"38":{"timestamp":{"__isSmartRef__":true,"id":39},"user":"jenslincke","tags":[]},"39":{"isSerializedDate":true,"string":"Tue Feb 26 2013 14:55:35 GMT+0100 (CET)"},"40":{"varMapping":{"__isSmartRef__":true,"id":41},"source":"function hideLink() {\n      if (this.linkButton) this.linkButton.remove();\n      if (this.previewButton) this.previewButton.remove();\n}","funcProperties":{"__isSmartRef__":true,"id":42},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"41":{"this":{"__isSmartRef__":true,"id":0}},"42":{"timestamp":{"__isSmartRef__":true,"id":43},"user":"jenslincke","tags":[]},"43":{"isSerializedDate":true,"string":"Tue Feb 26 2013 13:42:04 GMT+0100 (CET)"},"44":{"varMapping":{"__isSmartRef__":true,"id":45},"source":"function followLink() {\n    var link = this.textString;\n    link = link.replace(\"thesis://\",\"http://lively-kernel.org/repository/webwerkstatt/users/jenslincke/thesis/\")\n    alertOK(\"follow \" + link)\n    window.open(link)\n    \n}","funcProperties":{"__isSmartRef__":true,"id":46},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"45":{"this":{"__isSmartRef__":true,"id":0}},"46":{"timestamp":{"__isSmartRef__":true,"id":47},"user":"jenslincke","tags":[]},"47":{"isSerializedDate":true,"string":"Tue Feb 26 2013 11:50:04 GMT+0100 (CET)"},"48":{"varMapping":{"__isSmartRef__":true,"id":49},"source":"function previewLink() {\n    var link = this.textString;\n    link = link.replace(\"thesis://\",\"http://lively-kernel.org/repository/webwerkstatt/users/jenslincke/thesis/\")\n\n    var worldLoader = this.world().openPartItem(\"WorldLoaderPane\", \"PartsBin/Jens\")\n    worldLoader.get('WorldLoaderPane').navigateTo(new URL(link));\n}","funcProperties":{"__isSmartRef__":true,"id":50},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"49":{"this":{"__isSmartRef__":true,"id":0}},"50":{"timestamp":{"__isSmartRef__":true,"id":51},"user":"jenslincke","tags":[]},"51":{"isSerializedDate":true,"string":"Tue Feb 26 2013 14:52:22 GMT+0100 (CET)"},"isSimplifiedRegistry":true}}