Name

basedragimage

Synopsis

LZX: basedragimage
JavaScript: lz.basedragimage
Type: Class
Access: public
Topic: Incubator.Components
Declared in: lps/components/incubator/draglib.lzx

Description

the visual representation of an object being dragged. See checkdragstate for usage details

Superclass Chain

node (LzNode) » view (LzView) » basedragimage

Known Subclasses

Details

Properties (8)

dropgroup
<attribute name="dropgroup" type="string" value="droptarget" />
public var dropgroup : String;
the group that drop targets will register with
dropped
<attribute name="dropped" value="false" />
private var dropped;
_onstopdel
<attribute name="_onstopdel" value="null" />
private var _onstopdel;
source
<attribute name="source" value="null" />
public var source;
the view where the drag was initiated (read-only)
startx
<attribute name="startx" type="number" value="0" />
private var startx : Number;
starty
<attribute name="starty" type="number" value="0" />
private var starty : Number;
xdoffset
<attribute name="xdoffset" value="null" />
private var xdoffset;
ydoffset
<attribute name="ydoffset" value="null" />
private var ydoffset;

Methods (4)

dropcomplete()
<method name="dropcomplete" args="source" />
private function dropcomplete(source);
hideme()
<method name="hideme" />
private function hideme();
startdrag()
<method name="startdrag" args="src, xoffset, yoffset" />
public function startdrag(src, xoffset, yoffset);
called to start the drag action, called by checkdrag
stopdrag()
<method name="stopdrag" />
public function stopdrag();
called to stop the drag action, called by checkdrag. If this is not over a drop target, it animates back to its origin (failed drop). Otherwise it disappears (successful drop).

LZX Synopsis

<class name="lz.basedragimage" extends=" LzView ">
  <attribute name=" dropgroup " type="string" value="droptarget" />
  <attribute name=" dropped " value="false" />
  <attribute name=" _onstopdel " value="null" />
  <attribute name=" source " value="null" />
  <attribute name=" startx " type="number" value="0" />
  <attribute name=" starty " type="number" value="0" />
  <attribute name=" xdoffset " value="null" />
  <attribute name=" ydoffset " value="null" />
  <method name=" dropcomplete " args="source" />
  <method name=" hideme " />
  <method name=" startdrag " args="src, xoffset, yoffset" />
  <method name=" stopdrag " />
</class>

JavaScript Synopsis

public lz.basedragimage extends  LzView  {
  public var dropgroup  : String;
  private var dropped ;
  private var _onstopdel ;
  public var source ;
  private var startx  : Number;
  private var starty  : Number;
  private var xdoffset ;
  private var ydoffset ;
  prototype private function dropcomplete (source);
  prototype private function hideme ();
  prototype public function startdrag (src, xoffset, yoffset);
  prototype public function stopdrag ();
}