Class Ext.dd.Registry
Package: | Ext.dd |
Class: | Registry |
Extends: | Object |
Defined In: | Registry.js |
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.
Properties
-
Methods
-
Events
Public Properties
This class has no public properties.
Public Methods
|
getHandle( String/HTMLElement id ) : Object |
Registry |
Returns the handle registered for a DOM Node by id |
|
getHandleFromEvent( Event e ) : Object |
Registry |
Returns the handle that is registered for the DOM node that is the target of the event |
|
getTarget( String/HTMLElement id ) : Object |
Registry |
Returns a custom data object that is registered for a DOM node by id |
|
getTargetFromEvent( Event e ) : Object |
Registry |
Returns a custom data object that is registered for the DOM node that is the target of the event |
|
register( String/HTMLElement) element , [Object data ] ) : void |
Registry |
Register a drag drop element |
|
unregister( String/HTMLElement) element ) : void |
Registry |
Unregister a drag drop element |
Public Events
This class has no public events.
Method Details
getHandle
public function getHandle( String/HTMLElement id
)
Returns the handle registered for a DOM Node by id
This method is defined by Registry.
getHandleFromEvent
public function getHandleFromEvent( Event e
)
Returns the handle that is registered for the DOM node that is the target of the event
This method is defined by Registry.
getTarget
public function getTarget( String/HTMLElement id
)
Returns a custom data object that is registered for a DOM node by id
Parameters:
Returns:
Object
data The custom data
This method is defined by Registry.
getTargetFromEvent
public function getTargetFromEvent( Event e
)
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
This method is defined by Registry.
register
public function register( String/HTMLElement) element
, [Object data
] )
Register a drag drop element
This method is defined by Registry.
unregister
public function unregister( String/HTMLElement) element
)
Unregister a drag drop element
This method is defined by Registry.