Spiderscript Home
Class Index | File Index

Classes




Spiderscript Home
Class Index | File Index

Classes




Class SS.control.dropzone

Drop Zone. Areas on a page that moveable objects can be dropped into
Defined in: SS.control.dropzone.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
id
Identifier of the dropzone control.
 
Contains the item that is in focus
 
Contains the last item dropped in the drop zone
 
Next Sibling to the move that is currently being moved.
 
Parent node that the element was previously attached to
 
Function called or evaluated {String} whenever the component leaves the drop zone.
 
Function called or evaluated {String} whenever a component is dropped / released in the drop zone.
 
Function called or evaluated {String} whenever the drop zone is in focus.
 
Function called or evaluated {String} whenever a component leaves the drop zone.
Method Summary
Method Attributes Method Name and Description
 
Function called to cancel the dropping of an element and return it to its original position in the document tree.
 
DragBlur(e, c)
Function called when a control is dragged out of focus from the drop zone.
 
DragDrop(e, c)
Function called when a control is dropped in the drop zone.
 
DragFocus(e, c)
Function called when a control is dragged into the focus of the drop zone.
 
DragLeave(e, c)
Function called when a control is removed from the drop zone.
 
Registers the drop zone control on the page so that it can receive events.
Class Detail
SS.control.dropzone()
Field Detail
id
Identifier of the dropzone control.

inFoucs
Contains the item that is in focus

lastDropped
Contains the last item dropped in the drop zone

lastNextSibling
Next Sibling to the move that is currently being moved.

lastParent
Parent node that the element was previously attached to

onblur
Function called or evaluated {String} whenever the component leaves the drop zone.

ondrop
Function called or evaluated {String} whenever a component is dropped / released in the drop zone.

onfocus
Function called or evaluated {String} whenever the drop zone is in focus. This occurs when a moveable object has is dragged over the drop zone.

onleave
Function called or evaluated {String} whenever a component leaves the drop zone.
Method Detail
cancelDrop()
Function called to cancel the dropping of an element and return it to its original position in the document tree.
Returns:
null

DragBlur(e, c)
Function called when a control is dragged out of focus from the drop zone. This handles the calling of the function SS.control.dropzone.onblur.
Parameters:
{Event} e
Event.
{HTMLElement} c
Element that has been dragged into the drop zone.
Returns:
null

DragDrop(e, c)
Function called when a control is dropped in the drop zone. This handles the calling of the function SS.control.dropzone.ondrop.
Parameters:
{Event} e
Event.
{HTMLElement} c
Element that has been dragged into the drop zone.
Returns:
null

DragFocus(e, c)
Function called when a control is dragged into the focus of the drop zone. This handles the calling of the function SS.control.dropzone.onfocus.
Parameters:
{Event} e
Event.
{HTMLElement} c
Element that has been dragged into the drop zone.
Returns:
null

DragLeave(e, c)
Function called when a control is removed from the drop zone. This handles the calling of the function SS.control.dropzone.onleave.
Parameters:
{Event} e
Event.
{HTMLElement} c
Element that has left the drop zone.
Returns:
null

render()
Registers the drop zone control on the page so that it can receive events.

Documentation generated by JsDoc Toolkit 2.1.0 on Wed Sep 30 2009 09:31:09 GMT+0100 (BST)