Zimlet JavaScript API Reference - DwtDragBox

Class DwtDragBox


A drag box is registered with a control to indicate that the control supports the presence of an elastic box created by clicking and dragging, and typically used to select visual objects within a space.

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



Defined in: DwtDragBox.js.

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

Author: Conrad Damon.
See:
DwtDragEvent
DwtControl
DwtControl#setDragBox
Method Detail
addDragListener(dragBoxListener)
Registers a listener for DwtDragEvent events.
Parameters:
{AjxListener} dragBoxListener
Listener to be registered
See:
DwtDragEvent
AjxListener
#removeDragListener

removeDragListener(dragBoxListener)
Removes a registered event listener.
Parameters:
{AjxListener} dragBoxListener
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:25 GMT-0400 (EDT)