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.
Package com.vaadin.flow.component
Class AttachEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Component>
com.vaadin.flow.component.internal.AbstractAttachDetachEvent
com.vaadin.flow.component.AttachEvent
All Implemented Interfaces:
Event fired after a Component
is attached to the UI.
When a hierarchy of components is being attached, this event is fired child-first.
Since:
1.0
See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionAttachEvent
(Component source, boolean initialAttach) Creates a new attach event with the given component as source.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether this is the first time the component has been attached.
Methods inherited from class com.vaadin.flow.component.internal.AbstractAttachDetachEvent
getSession, getUI
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AttachEvent
Creates a new attach event with the given component as source.
Parameters:
source
- the component that was attachedinitialAttach
- indicates whether this is the first time the component (element) has been attached
-
-
Method Details
-
isInitialAttach
public boolean isInitialAttach()Checks whether this is the first time the component has been attached.
Returns:
true
if this it the first time the component has been attached,false
otherwise
-