{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"id":"4D4DF45F-6FEB-41F5-9855-C3D0152FED86","shape":{"__isSmartRef__":true,"id":1},"droppingEnabled":true,"halosEnabled":true,"_ClipMode":"auto","eventHandler":{"__isSmartRef__":true,"id":2},"itemList":["Example","item 1",2,"item 3",4],"selectOnMove":false,"showsHalos":false,"name":"ActionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":3},"derivationIds":[6545,"9CE40D45-F249-461A-9C31-2DDA97BCFCC6","EF6E2453-040B-4BFF-9CA1-7AE6B1BC6BDE","8E3300F7-9235-496D-B9D0-187DC7EB9302","37C32B2C-FAD2-4B92-B8FF-12D19CC97EA6","A161982B-489C-4A05-BF4A-16A1672A2B78","EC1E9BD9-C789-4B6A-9DE6-C64533B41A0C","7AE46EEF-F966-4FE2-A19C-F7FB5958DD07","EA073B98-BCF6-4F55-A3AD-924BC340E225","9D7F93D6-0DDE-4ACF-AC54-3EFD7040F4EE"],"selectedLineNo":0,"_ToolTip":"Go to slide by title topic","changeTriggered":true,"selection":"Example","attributeConnections":[{"__isSmartRef__":true,"id":6}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"hasTitle":true,"title":"Example","__serializedExpressions__":["_Position","distanceToDragEvent"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8},"__LivelyClassName__":"lively.morphic.DropDownList","__SourceModuleName__":"Global.lively.morphic.Lists","_Position":"lively.pt(0.0,0.0)","distanceToDragEvent":"lively.pt(77.0,-17.0)"},"1":{"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(107.0,25.0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(243,243,243)","_Padding":"lively.rect(0,0,0,0)"},"2":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3":{"requiredModules":[],"migrationLevel":9,"partsSpaceName":"PartsBin/Inputs/","comment":"A self-contained list with only one programmer-required call: init","partName":"ActionList","changes":[{"__isSmartRef__":true,"id":4},{"__isSmartRef__":true,"id":5}],"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Dec 04 2014 08:59:51 GMT-0800 (PST)\")"},"4":{"author":"rick","message":"no comment","id":"2B56CB12-87D9-4948-B146-4F1100ADB940","__serializedExpressions__":["date"],"date":"new Date(\"Thu Dec 04 2014 08:59:50 GMT-0800 (PST)\")"},"5":{"__serializedExpressions__":["date"],"author":"rick","message":"no comment","id":"15491428-7F4A-420A-9268-3A21AF21397B","date":"new Date(\"Thu Dec 04 2014 10:03:10 GMT-0800 (PST)\")"},"6":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"onSelection","varMapping":{"__isSmartRef__":true,"id":7},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"7":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"8":{"onSelection":{"__isSmartRef__":true,"id":9},"init":{"__isSmartRef__":true,"id":12},"readMe":{"__isSmartRef__":true,"id":15},"example":{"__isSmartRef__":true,"id":18}},"9":{"varMapping":{"__isSmartRef__":true,"id":10},"source":"function onSelection(aSelection) {\n    if (!aSelection) return;\n    if (this.hasTitle && aSelection == this.title) return;\n    this.action(aSelection)\n    if(this.hasTitle) {\n        this.setSelection(this.title)\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":11},"__LivelyClassName__":"lively.Closure"},"10":{"this":{"__isSmartRef__":true,"id":0}},"11":{"user":"rick","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 04 2014 08:56:18 GMT-0800 (PST)\")"},"12":{"varMapping":{"__isSmartRef__":true,"id":13},"source":"function init(aListObject) {\n    if (aListObject.title) {\n        this.hasTitle = true;\n        this.title = aListObject.title;\n    } else {\n        this.hasTitle = false;\n    }\n    if (aListObject.items) {\n        if (this.hasTitle) {\n            if (aListObject.items.indexOf(this.title) != -1) {\n                alert(\"Error: title \" + this.title + \" should not be an item in the list\" +\n                \" \" + this.title + \" being treated as an ordinary, selectable item\")\n                this.hasTitle = false;\n                this.setList(aListObject.items)\n            } else {\n                var items = aListObject.items.slice(0)\n                items.pushAt(this.title, 0)\n                this.setList(items)\n            }\n        } else {\n            this.setList(aListObject.items)\n        }\n    } else {\n        alert(\"Error! aListObject must have an item list\")\n        this.action = function(aSelection) {return;}\n    }\n    if (aListObject.hasOwnProperty(\"action\")) {\n        this.action = aListObject.action\n    } else {\n        alert(\"Error! aListObject must have an action\")\n        this.action = function(aSelection) {return;}\n    }\n    \n}","funcProperties":{"__isSmartRef__":true,"id":14},"__LivelyClassName__":"lively.Closure"},"13":{"this":{"__isSmartRef__":true,"id":0}},"14":{"__serializedExpressions__":["timestamp"],"user":"rick","timestamp":"new Date(\"Thu Dec 04 2014 10:01:50 GMT-0800 (PST)\")"},"15":{"varMapping":{"__isSmartRef__":true,"id":16},"source":"function readMe() {\n    return \"A self-contained list.  The programmer should only call a single \" +\n    \"method, init(aListObject) which sets up the list.  AListObject is of the \" +\n    \"form {title: aString, items:aListOfStrings, action:function(aString)} \" +\n    \"on selection, aListObject.action(selection) will be called.  title is \" +\n    \"optional.  When it is present, it is always the first item in the list, \" +\n    \"and selecting it results in no action.  Also, when present, the list will \" +\n    \"always show the title .  See this.example() for an example use\"\n    \n}","funcProperties":{"__isSmartRef__":true,"id":17},"__LivelyClassName__":"lively.Closure"},"16":{"this":{"__isSmartRef__":true,"id":0}},"17":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 04 2014 08:41:48 GMT-0800 (PST)\")"},"18":{"varMapping":{"__isSmartRef__":true,"id":19},"source":"function example() {\n    this.init({title:\"Example\", items:[\"item 1\", 2, \"item 3\", 4],\n    action:function(anItem) {alert(anItem)}})\n    \n}","funcProperties":{"__isSmartRef__":true,"id":20},"__LivelyClassName__":"lively.Closure"},"19":{"this":{"__isSmartRef__":true,"id":0}},"20":{"user":"rick","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Dec 04 2014 08:58:39 GMT-0800 (PST)\")"},"isSimplifiedRegistry":true}}