Class Ext.dd.Registry
Package: | Ext.dd |
Defined In: | Registry.js |
Class: | Registry |
Extends: | Object |
*
Provides easy access to all drag drop components that are registered on a page. Items can be retrieved either
directly by DOM node id, or by passing in the drag drop event that occurred and looking up the event target.
This class is a singleton and cannot be created directly.
Public Properties
This class has no public properties.
Public Methods
|
getHandle( String/HTMLElement id ) : Object
Returns the handle registered for a DOM Node by id
Returns the handle registered for a DOM Node by id
|
Registry |
|
getHandleFromEvent( Event e ) : Object
Returns the handle that is registered for the DOM node that is the target of the event
Returns the handle that is registered for the DOM node that is the target of the event
|
Registry |
|
getTarget( String/HTMLElement id ) : Object
Returns a custom data object that is registered for a DOM node by id
Returns a custom data object that is registered for a DOM node by id
Parameters:
Returns:
Object data The custom data
|
Registry |
|
getTargetFromEvent( Event e ) : Object
Returns a custom data object that is registered for the DOM node that is the target of the event
Returns a custom data object that is registered for the DOM node that is the target of the event
Parameters:
Returns:
Object data The custom data
|
Registry |
|
register( String/HTMLElement) element , [Object data ] ) : void
Resgister a drag drop element
Resgister a drag drop element
|
Registry |
|
unregister( String/HTMLElement) element ) : void
Unregister a drag drop element
Unregister a drag drop element
|
Registry |
Public Events
This class has no public events.