Class EventTargetImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.dom.nodeimpl.event.EventTargetImpl
- All Implemented Interfaces:
EventTarget
,ScriptableDelegate
- Direct Known Subclasses:
NodeImpl
,WindowEventHandlersImpl
,XMLHttpRequestEventTargetImpl
EventTargetImpl class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEventListener
(String type, Function listener) addEventListener.void
addEventListener
(String type, Function listener, boolean useCapture) addEventListener.boolean
dispatchEvent
(Event evt) dispatchEvent.boolean
dispatchEvent
(Node element, Event evt) dispatchEvent.getFunction
(Object obj, String type) void
removeEventListener
(String type, Function listener) removeEventListener.void
removeEventListener
(String type, Function listener, boolean useCapture) removeEventListener.Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
-
Constructor Details
-
EventTargetImpl
public EventTargetImpl()
-
-
Method Details
-
addEventListener
Description copied from interface:EventTarget
addEventListener.
- Specified by:
addEventListener
in interfaceEventTarget
- Parameters:
type
- aString
object.listener
- aFunction
object.
-
addEventListener
Description copied from interface:EventTarget
addEventListener.
- Specified by:
addEventListener
in interfaceEventTarget
- Parameters:
type
- aString
object.listener
- aFunction
object.useCapture
- a boolean.
-
removeEventListener
Description copied from interface:EventTarget
removeEventListener.
- Specified by:
removeEventListener
in interfaceEventTarget
- Parameters:
type
- aString
object.listener
- aFunction
object.
-
removeEventListener
Description copied from interface:EventTarget
removeEventListener.
- Specified by:
removeEventListener
in interfaceEventTarget
- Parameters:
type
- aString
object.listener
- aFunction
object.useCapture
- a boolean.
-
dispatchEvent
Description copied from interface:EventTarget
dispatchEvent.
- Specified by:
dispatchEvent
in interfaceEventTarget
- Parameters:
element
- aNode
object.evt
- aEvent
object.- Returns:
- a boolean.
-
dispatchEvent
Description copied from interface:EventTarget
dispatchEvent.
- Specified by:
dispatchEvent
in interfaceEventTarget
- Parameters:
evt
- aEvent
object.- Returns:
- a boolean.
- Throws:
EventException
- if any.
-
getFunction
-