dojo/dnd/TimedMoveable.js

  • Provides:

    • dojo.dnd.TimedMoveable
  • dojo.dnd.__TimedMoveableArgs

    • type
      Function
    • chains:
      • dojo.dnd.__MoveableArgs: (prototype)
      • dojo.dnd.__MoveableArgs: (call)
    • summary
  • dojo.dnd.__TimedMoveableArgs.timeout

    • type
      Number
    • summary
      delay move by this number of ms,
      accumulating position changes during the timeout
  • dojo.dnd.TimedMoveable

    • type
      Function
    • chains:
      • dojo.dnd.Moveable: (prototype)
      • dojo.dnd.Moveable: (call)
    • summary
      an object that makes a node moveable with a timer
    • parameters:
      • node: (typeof Node||String)
        a node (or node's id) to be moved
      • params: (typeof dojo.dnd.__TimedMoveableArgs)
        object with additional parameters.
        
        sanitize parameters
    • source: [view]
         if(!params){ params = {}; }
         if(params.timeout && typeof params.timeout == "number" && params.timeout >= 0){
          this.timeout = params.timeout;
         }
  • dojo.dnd.TimedMoveable.timeout

    • summary
  • dojo.dnd.TimedMoveable.markupFactory

    • type
      Function
    • parameters:
      • params: (typeof )
      • node: (typeof )
    • source: [view]
         return new dojo.dnd.TimedMoveable(node, params);
    • summary
  • dojo.dnd.TimedMoveable.onMoveStop

    • type
      Function
    • parameters:
      • mover: (typeof dojo.dnd.Mover)
    • source: [view]
         if(mover._timer){
          // stop timer
          clearTimeout(mover._timer)
          // reflect the last received position
          oldOnMove.call(this, mover, mover._leftTop)
         }
         dojo.dnd.Moveable.prototype.onMoveStop.apply(this, arguments);
    • chains:
      • oldOnMove: (call)
      • dojo.dnd.Moveable.prototype.onMoveStop: (call)
    • summary
  • dojo.dnd.TimedMoveable.onMove

    • type
      Function
    • parameters:
      • mover: (typeof dojo.dnd.Mover)
      • leftTop: (typeof Object)
    • source: [view]
         mover._leftTop = leftTop;
         if(!mover._timer){
          var _t = this; // to avoid using dojo.hitch()
          mover._timer = setTimeout(function(){
           // we don't have any pending requests
           mover._timer = null;
           // reflect the last received position
           oldOnMove.call(_t, mover, mover._leftTop);
          }, this.timeout);
         }
    • chains:
      • oldOnMove: (call)
    • summary
  • params

    • type
      Object
    • summary
  • dojo.dnd

    • type
      Object
    • summary
  • dojo

    • type
      Object
    • summary