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:
  • Constructor Details

    • CollapseChangeEvent

      public CollapseChangeEvent(AppHeadroom source, boolean fromClient, @EventData("event.detail.pinned") boolean pinned)
      Constructed by Flow when the client fires pinned-changed, or directly by AppHeadroom itself for a server-initiated reset; not meant to be constructed by application code. Note the inversion: the wire event's own pinned detail means "shown," the opposite of collapsed.
  • Method Details