Class AppHeadroom.PinnedChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<AppHeadroom>
org.vaadin.addons.joelpop.appheadroom.ui.component.AppHeadroom.PinnedChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
AppHeadroom
@DomEvent("pinned-changed")
public static class AppHeadroom.PinnedChangeEvent
extends com.vaadin.flow.component.ComponentEvent<AppHeadroom>
Fired whenever the chrome's pinned/unpinned state changes, whether
driven by scrolling on the client or by a server-initiated reset (e.g.
detaching this instance via
AppHeadroom.remove()).- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPinnedChangeEvent(AppHeadroom source, boolean fromClient, boolean pinned) Constructed by Flow when the client firespinned-changed, or directly byAppHeadroomitself for a server-initiated reset; not meant to be constructed by application code. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPinned()Same value asAppHeadroom.isPinned()at the time this event fired.Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class EventObject
toString
-
Constructor Details
-
PinnedChangeEvent
public PinnedChangeEvent(AppHeadroom source, boolean fromClient, @EventData("event.detail.pinned") boolean pinned) Constructed by Flow when the client firespinned-changed, or directly byAppHeadroomitself for a server-initiated reset; not meant to be constructed by application code.
-
-
Method Details
-
isPinned
public boolean isPinned()Same value asAppHeadroom.isPinned()at the time this event fired.
-