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:
Serializable
public class AttachEvent extends AbstractAttachDetachEvent
Event fired after aComponent
is attached to the UI.When a hierarchy of components is being attached, this event is fired child-first.
- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description AttachEvent(Component source, boolean initialAttach)
Creates a new attach event with the given component as source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isInitialAttach()
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 Detail
-
AttachEvent
public AttachEvent(Component source, boolean initialAttach)
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
-
-