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.
|
toStringpublic DomEvent(Element source, String eventType, elemental.json.JsonObject eventData)
source - the element on which the listener has been attached, not
nulleventType - the type of the event, not nulleventData - additional data related to the event, not nullElement.addEventListener(String, DomEventListener),
DomEventListenerpublic Element getSource()
getSource in class EventObjectElement.addEventListener(String, DomEventListener),
Element.addEventListener(String, DomEventListener, String...)public String getType()
public elemental.json.JsonObject getEventData()
nullDomListenerRegistration.addEventData(String)public DebouncePhase getPhase()
Copyright © 2000–2021 Vaadin Ltd. All rights reserved.