Class DwtDraggable
Object
|
+--DwtDraggable
- class
DwtDraggable
This static class enables entities (e.g. DwtDialogs) to be dragged around within an app window.
The code is basically the same as in dom-drag.js from www.youngpup.net
Defined in DwtDraggable.js
Author: Ross Dargahi
Field Summary |
<static> Object |
_dragEl
|
Method Summary |
<static> Object
|
_drag(e)
|
<static> void
|
_end()
|
<static> Object
|
_fixE(e)
|
<static> Object
|
_start(e)
|
<static> void
|
init(dragEl, rootEl, minX, maxX, minY, maxY, dragStartCB, dragCB, dragEndCB, swapHorizRef, swapVertRef, fXMapper, fYMapper)
|
<static> void
|
setDragBoundaries(dragEl ,minX, maxX, minY, maxY)
|
_dragEl
<static> Object _dragEl
DwtDraggable
DwtDraggable()
_drag
<static> Object _drag(e)
_end
<static> void _end()
_fixE
<static> Object _fixE(e)
_start
<static> Object _start(e)
init
<static> void init(dragEl, rootEl, minX, maxX, minY, maxY, dragStartCB, dragCB, dragEndCB, swapHorizRef, swapVertRef, fXMapper, fYMapper)
Parameters:
dragEl
- Element being dragged, can also be a handle e.g. the title bar in a dialog
rootEl
- The actual element that will be moved. This will be a parent element of dragEl (optional)
minX
- Minimum x coord to which we can drag (optional)
maxX
- Maximum x coord to which we can drag (optional)
minY
- Minimum y coord to which we can drag (optional)
maxY
- Maximum x coord to which we can drag (optional)
dragStartCB
- AjxCallback that is called when dragging is started
dragCB
- AjxCallback that is called when dragging
dragEndCB
- AjxCallback that is called when dragging is ended
swapHorizRef
- If true, then mouse motion to the right will move element left (optional)
swapVertRef
- If true, then mouse motion to the bottom will move element up (optional)
fXMapper
- function that overides this classes x coordinate transformations (optional)
fYMapper
- function that overides this classes y coordinate transformations (optional)
setDragBoundaries
<static> void setDragBoundaries(dragEl ,minX, maxX, minY, maxY)
Documentation generated by
JSDoc on Thu Apr 27 13:54:33 2006