123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- define("dojox/mdnd/DropIndicator", ["dojo/_base/kernel","dojo/_base/declare","dojo/_base/html","./AreaManager"],function(dojo){
- var di = dojo.declare(
- "dojox.mdnd.DropIndicator",
- null,
- {
-
-
-
-
-
- node : null,
-
- constructor: function(){
-
- var dropIndicator = document.createElement("div");
- var subDropIndicator = document.createElement("div");
- dropIndicator.appendChild(subDropIndicator);
- dojo.addClass(dropIndicator, "dropIndicator");
- this.node = dropIndicator;
- },
-
- place: function(/*Node*/area, /*Node*/nodeRef, /*Object*/size){
-
-
-
-
-
-
-
-
-
-
-
-
- if(size){
- this.node.style.height = size.h + "px";
- }
- try{
- if(nodeRef){
- area.insertBefore(this.node, nodeRef);
- }
- else{
-
- area.appendChild(this.node);
- }
- return this.node;
- }catch(e){
- return null;
- }
- },
-
- remove: function(){
-
-
-
-
- if(this.node){
-
- this.node.style.height = "";
- if(this.node.parentNode){
- this.node.parentNode.removeChild(this.node);
- }
- }
- },
-
- destroy: function(){
-
-
-
-
- if(this.node){
- if(this.node.parentNode){
- this.node.parentNode.removeChild(this.node);
- }
- dojo._destroyElement(this.node);
- delete this.node;
- }
- }
- });
- dojox.mdnd.areaManager()._dropIndicator = new dojox.mdnd.DropIndicator();
-
- return di;
- });
|