Allow communication between an item of dojox D&D area to a target dojo.
Check if the coordinates of the mouse is in a dojo target.
Parameter | Type | Description |
---|---|---|
coords | Object | Coordinates of the mouse. |
Check if a dojo area is registered.
Parameter | Type | Description |
---|---|---|
area | DOMNode | A node corresponding to the target dojo. |
The index of area if it's registered else -1.
Initialize the coordinates of the target dojo.
Parameter | Type | Description |
---|---|---|
area | DOMNode | A registered DOM node. |
An object which contains coordinates : {x:0,y:,x1:0,y1:0}
Return true if the dragged node is accepted. This method has to be overwritten according to registered target.
Parameter | Type | Description |
---|---|---|
draggedNode | DOMNode | |
target | Object |
Refresh the coordinates of all registered dojo target.
Refresh the coordinates of registered dojo target with a specific type.
Parameter | Type | Description |
---|---|---|
type | String | A String to identify dojo targets. |
Register a target dojo. The target is represented by an object containing :
Parameter | Type | Description |
---|---|---|
area | DOMNode | The DOM node which has to be registered. |
type | String | A String to identify the node. |
dojoTarget | Boolean | True if the dojo D&D have to be enable when mouse is hover the registered target dojo. |
Unregister a target dojo.
Parameter | Type | Description |
---|---|---|
area | DOMNode | The DOM node of target dojo. |
Unregister several targets dojo having the same type passing in parameter.
Parameter | Type | Description |
---|---|---|
type | String | A String to identify dojo targets. |
Call when the mouse enters in a registered dojo target.
Parameter | Type | Description |
---|---|---|
e | DOMEvent | The current Javascript Event. |
Call when the mouse exit of a registered dojo target.
Parameter | Type | Description |
---|---|---|
e | DOMEvent | current javscript event |
Called when an onmouseup event is loaded on a registered target dojo.
Parameter | Type | Description |
---|---|---|
e | DOMEvent | Event object. |
Call when the mouse moving after an onStartDrag of AreaManger. Check if the coordinates of the mouse is in a dojo target.
Parameter | Type | Description |
---|---|---|
e | DOMEvent | Event object. |