Class AppHeadroom.CollapseChangeEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<AppHeadroom>
org.vaadin.addons.joelpop.appheadroom.ui.component.AppHeadroom.CollapseChangeEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
AppHeadroom
@DomEvent("pinned-changed")
public static class AppHeadroom.CollapseChangeEvent
extends com.vaadin.flow.component.ComponentEvent<AppHeadroom>
Fired whenever the chrome's expanded/collapsed 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
ConstructorsConstructorDescriptionCollapseChangeEvent(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 TypeMethodDescriptionbooleanSame value asAppHeadroom.isCollapsed()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
-
CollapseChangeEvent
public CollapseChangeEvent(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. Note the inversion: the wire event's ownpinneddetail means "shown," the opposite ofcollapsed.
-
-
Method Details
-
isCollapsed
public boolean isCollapsed()Same value asAppHeadroom.isCollapsed()at the time this event fired.
-