public class DomEvent extends EventObject
source
Constructor and Description |
---|
DomEvent(Element source,
String eventType,
elemental.json.JsonObject eventData)
Creates a new DOM event.
|
Modifier and Type | Method and Description |
---|---|
elemental.json.JsonObject |
getEventData()
Gets additional data related to the event.
|
DebouncePhase |
getPhase()
Gets the debounce phase for which this event is fired.
|
Element |
getSource()
Returns the element on which the listener has been attached.
|
String |
getType()
Gets the type of the event.
|
toString
public DomEvent(Element source, String eventType, elemental.json.JsonObject eventData)
source
- the element on which the listener has been attached, not
null
eventType
- the type of the event, not null
eventData
- additional data related to the event, not null
Element.addEventListener(String, DomEventListener)
,
DomEventListener
public Element getSource()
getSource
in class EventObject
Element.addEventListener(String, DomEventListener)
,
Element.addEventListener(String, DomEventListener, String...)
public String getType()
public elemental.json.JsonObject getEventData()
null
DomListenerRegistration.addEventData(String)
public DebouncePhase getPhase()
Copyright © 2020. All rights reserved.