a:13:{s:9:"#provides";s:23:"dojox.layout.dnd.Avatar";s:9:"#resource";s:20:"layout/dnd/Avatar.js";s:9:"#requires";a:1:{i:0;a:3:{i:0;s:6:"common";i:1;s:15:"dojo.dnd.common";i:2;s:4:"dojo";}}s:23:"dojox.layout.dnd.Avatar";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"manager";a:1:{s:4:"type";s:0:"";}s:7:"opacity";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:50:" this.manager = manager; this.construct(opacity);";s:7:"summary";s:69:"An Object, which represents the object being moved in a GridContainer";s:9:"classlike";b:1;}s:31:"dojox.layout.dnd.Avatar.manager";a:2:{s:8:"instance";s:23:"dojox.layout.dnd.Avatar";s:7:"summary";s:0:"";}s:33:"dojox.layout.dnd.Avatar.construct";a:5:{s:9:"prototype";s:23:"dojox.layout.dnd.Avatar";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"opacity";a:1:{s:4:"type";s:3:"int";}}s:6:"source";s:581:" var source = this.manager.source; var node = (source.creator)? // create an avatar representation of the node source._normalizedCreator(source.getItem(this.manager.nodes[0].id).data, "avatar").node : // or just clone the node and hope it works this.manager.nodes[0].cloneNode(true); node.id = dojo.dnd.getUniqueId(); dojo.addClass(node, "dojoDndAvatar"); node.style.position = "absolute"; node.style.zIndex = 1999; node.style.margin = "0px"; node.style.width = dojo.marginBox(source.node).w + "px"; dojo.style(node,"opacity",opacity); this.node = node;";s:7:"summary";s:94:"A constructor function. it is separate so it can be (dynamically) overwritten in case of need.";}s:28:"dojox.layout.dnd.Avatar.node";a:2:{s:8:"instance";s:23:"dojox.layout.dnd.Avatar";s:7:"summary";s:0:"";}s:31:"dojox.layout.dnd.Avatar.destroy";a:4:{s:9:"prototype";s:23:"dojox.layout.dnd.Avatar";s:4:"type";s:8:"Function";s:6:"source";s:47:" dojo.destroy(this.node); this.node = false;";s:7:"summary";s:28:"Destroy this avatar instance";}s:30:"dojox.layout.dnd.Avatar.update";a:4:{s:9:"prototype";s:23:"dojox.layout.dnd.Avatar";s:4:"type";s:8:"Function";s:6:"source";s:99:" dojo[(this.manager.canDropFlag ? "add" : "remove") + "Class"](this.node, "dojoDndAvatarCanDrop");";s:7:"summary";s:0:"";}s:37:"dojox.layout.dnd.Avatar._generateText";a:5:{s:9:"prototype";s:23:"dojox.layout.dnd.Avatar";s:4:"type";s:8:"Function";s:6:"source";s:1462:"dojo.provide("dojox.layout.dnd.Avatar"); dojo.require("dojo.dnd.common"); dojox.layout.dnd.Avatar = function(manager,opacity){ // summary: // An Object, which represents the object being moved in a GridContainer this.manager = manager; this.construct(opacity); }; dojo.extend(dojox.layout.dnd.Avatar, { construct: function(/*int*/ opacity){ // summary: // A constructor function. it is separate so it can be (dynamically) // overwritten in case of need. var source = this.manager.source; var node = (source.creator)? // create an avatar representation of the node source._normalizedCreator(source.getItem(this.manager.nodes[0].id).data, "avatar").node : // or just clone the node and hope it works this.manager.nodes[0].cloneNode(true); node.id = dojo.dnd.getUniqueId(); dojo.addClass(node, "dojoDndAvatar"); node.style.position = "absolute"; node.style.zIndex = 1999; node.style.margin = "0px"; node.style.width = dojo.marginBox(source.node).w + "px"; dojo.style(node,"opacity",opacity); this.node = node; }, destroy: function(){ // summary: Destroy this avatar instance dojo.destroy(this.node); this.node = false; }, /*Function: update Updates the avatar to reflect the current DnD state.*/ update: function(){ dojo[(this.manager.canDropFlag ? "add" : "remove") + "Class"](this.node, "dojoDndAvatarCanDrop"); }, /*Function: _generateText*/ _generateText: function(){ //Nothing to do";s:7:"private";b:1;s:7:"summary";s:0:"";}s:16:"dojox.layout.dnd";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:12:"dojox.layout";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}