Zimlet JavaScript API Reference - DwtDragSource

Class DwtDragSource


A drag source is registered with a control to indicate that the control is draggable. The drag source is the mechanism by which the DnD framework provides the binding between the UI components and the application.

Application developers instantiate DwtDragSource and register it with the control which is to be draggable (via DwtControl.setDragSource). The application should then register a listener with the DwtDragSource. This way when drag events occur the application will be notified and may act on them accordingly



Defined in: DwtDragSource.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
DwtDragSource(supportedOps)
Method Summary
Method Attributes Method Name and Description
 
addDragListener(dragSourceListener)
Registers a listener for DwtDragEvent events.
 
removeDragListener(dragSourceListener)
Removes a registered event listener.
 
Returns a string representation of this object.
Class Detail
DwtDragSource(supportedOps)

Author: Ross Dargahi.
Parameters:
{number} supportedOps
the supported operations. This is an arithmetic OR'ing of the operations supported by the drag source. Supported values are:
See:
DwtDragEvent
DwtControl
DwtControl#setDragSource
Method Detail
addDragListener(dragSourceListener)
Registers a listener for DwtDragEvent events.
Parameters:
{AjxListener} dragSourceListener
Listener to be registered
See:
DwtDragEvent
AjxListener
#removeDragListener

removeDragListener(dragSourceListener)
Removes a registered event listener.
Parameters:
{AjxListener} dragSourceListener
Listener to be removed
See:
AjxListener
#addDragListener

{string} toString()
Returns a string representation of this object.
Returns:
{string} a string representation of this object

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:26 GMT-0400 (EDT)