We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.internal.
Class AbstractAttachDetachEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Component>
-
- com.vaadin.flow.component.internal.AbstractAttachDetachEvent
-
All Implemented Interfaces:
Direct Known Subclasses:
public abstract class AbstractAttachDetachEvent extends ComponentEvent<Component>
Internal helper for
AttachEvent
andDetachEvent
.Since:
1.0
Author:
Vaadin Ltd
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description AbstractAttachDetachEvent(Component source)
Creates a new event with the given component as source.
-
Method Summary
All Methods Modifier and Type Method and Description VaadinSession
getSession()
Gets the session the component is attached to.
UI
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 Detail
-
AbstractAttachDetachEvent
public AbstractAttachDetachEvent(Component source)
Creates a new event with the given component as source.
Parameters:
source
- the component that was attached or detached
-
-
Method Detail
-
getUI
public UI getUI()
Gets the UI the component is attached to.
Returns:
the UI this component is attached to
-
getSession
public VaadinSession getSession()
Gets the session the component is attached to.
Returns:
the session this component is attached to
-
-