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.
属性
-
方法
-
事件
公共属性
此类没有公共属性。
公共方法
|
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 |
Resgister a drag drop element |
|
unregister(String/HTMLElement) element ) : void |
Registry |
Unregister a drag drop element |
公共事件
此类没有公共事件。
方法详情
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
参数:
返回:
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
参数:
返回:
Object
data The custom data
This method is defined by Registry.
register
public function register(String/HTMLElement) element
, [Object data
])
Resgister 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.