int |
borderWidth
The border width of the frame.
|
boolean |
centerFrame
By default the frame is positioned exactly where the drag element is, so
we use the cursor offset provided by YAHOO.util.DD.
|
boolean |
resizeFrame
By default we resize the drag frame to be the same size as the element
we want to drag (this is to get the frame effect).
|
String |
dragElId
the drag frame div id
|
HTMLElement |
frameDiv
A reference to the one proxy div element we create for all instances of this
class
|
Class YAHOO.util.DDProxy
Object | +--YAHOO.util.DragDrop | +--YAHOO.util.DD | +--YAHOO.util.DDProxy
class
YAHOO.util.DDProxy
Field Summary [top]
Fields inherited from class YAHOO.util.DD [top]
Fields inherited from class YAHOO.util.DragDrop [top]
Constructor Summary [top]
YAHOO.util.DDProxy
A DragDrop implementation that inserts an empty, bordered div into
the document that follows the cursor during drag operations.
Method Summary [top]
void |
b4MouseDown
(e)
Event that fires prior to the onMouseDown event.
|
void |
endDrag
(<Event> e)
Fired when we are done dragging the object
|
void |
initFrame
()
Initialization for the drag frame element.
|
void |
createFrame
()
Create the drag frame if needed
|
Methods inherited from class YAHOO.util.DD
Methods inherited from class YAHOO.util.DragDrop
lock, unlock, startDrag, onDrag, onDragEnter, onDragOver, onDragOut, onDragDrop, onMouseDown, onMouseUp, getEl, getDragEl, init, initTarget, setPadding, setInitPosition, addToGroup, setDragElId, setHandleElId, setOuterHandleElId, unreg, isLocked, addInvalidHandleType, removeInvalidHandleType, isValidHandleChild, setXConstraint, setYConstraint, resetConstraints, toString
Field Detail [top]
borderWidth
int
borderWidth
The border width of the frame. This is used when we resize the frame to
the size of the linked element. We substract the border width to make
the div the correct size.
centerFrame
boolean
centerFrame
By default the frame is positioned exactly where the drag element is, so
we use the cursor offset provided by YAHOO.util.DD. Another option that works only if
you do not have constraints on the obj is to have the drag frame centered
around the cursor. Set centerFrame to true for this effect. Ex:
ygDDMy2
resizeFrame
boolean
resizeFrame
By default we resize the drag frame to be the same size as the element
we want to drag (this is to get the frame effect). We can turn it off
if we want a different behavior (ex: ygDDMy2)
dragElId
String
dragElId
the drag frame div id
frameDiv
HTMLElement
frameDiv
A reference to the one proxy div element we create for all instances of this
class
Constructor Detail [top]
YAHOO.util.DDProxy
YAHOO.util.DDProxy
()
A DragDrop implementation that inserts an empty, bordered div into
the document that follows the cursor during drag operations. At the time of
the click, the frame div is resized to the dimensions of the linked html
element, and moved to the exact location of the linked element.
References to the "frame" element refer to the single proxy element that
was created to be dragged in place of all DDProxy elements on the
page.
- Parameters:
-
id
- the id of the linked html element -
sGroup
- the group of related DragDrop objects
Method Detail [top]
b4MouseDown
void
b4MouseDown
(e)
Event that fires prior to the onMouseDown event. Overrides
YAHOO.util.DragDrop.
endDrag
void
endDrag
(<Event> e)
Fired when we are done dragging the object
- Parameters:
-
e
-
initFrame
void
initFrame
()
Initialization for the drag frame element. Must be called in the
constructor of all subclasses
createFrame
void
createFrame
()
Create the drag frame if needed