Class AbstractAttachDetachEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Component>
com.vaadin.flow.component.internal.AbstractAttachDetachEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AttachEvent
,DetachEvent
Internal helper for
AttachEvent
and DetachEvent
.- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractAttachDetachEvent
(Component source) Creates a new event with the given component as source. -
Method Summary
Modifier and TypeMethodDescriptionGets the session the component is attached to.getUI()
Gets the UI the component is attached to.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AbstractAttachDetachEvent
Creates a new event with the given component as source.- Parameters:
source
- the component that was attached or detached
-
-
Method Details
-
getUI
Gets the UI the component is attached to.- Returns:
- the UI this component is attached to
-
getSession
Gets the session the component is attached to.- Returns:
- the session this component is attached to
-