Uses of Class
org.vaadin.addons.joelpop.appheadroom.ui.component.AppHeadroom
-
Uses of AppHeadroom in org.vaadin.addons.joelpop.appheadroom.ui.component
Subclasses with type arguments of type AppHeadroom in org.vaadin.addons.joelpop.appheadroom.ui.componentModifier and TypeClassDescriptionstatic classFired 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 viaAppHeadroom.remove()).static classDeprecated.Methods in org.vaadin.addons.joelpop.appheadroom.ui.component that return AppHeadroomModifier and TypeMethodDescriptionstatic AppHeadroomAppHeadroom.applyTo(com.vaadin.flow.component.applayout.AppLayout layout) Applies headroom scroll-hide/show behavior to the given AppLayout and returns the component for optional further configuration.AppHeadroom.setActivationPredicate(com.vaadin.flow.function.SerializableBiPredicate<AppHeadroom.DeviceType, AppHeadroom.Orientation> predicate) Sets the predicate that decides whether the headroom effect should be active, evaluated against this session's detectedAppHeadroom.DeviceTypeand currentAppHeadroom.Orientation.AppHeadroom.setBottomBarCollapsible(boolean collapsible) Same asAppHeadroom.setTopBarCollapsible(boolean), for the bottom bar.AppHeadroom.setBottomBarPinned(boolean pinned) Deprecated.UseAppHeadroom.setBottomBarCollapsible(boolean)instead — seeAppHeadroom.setTopBarPinned(boolean)for the argument-inversion note.AppHeadroom.setHideTolerance(int px) Sets how far, in pixels, the user must scroll down past the last shown-position high-water mark before the chrome hides (default30).AppHeadroom.setShowTolerance(int px) Sets how far, in pixels, the user must scroll up past the last hidden-position low-water mark before the chrome is restored (default30).AppHeadroom.setTabletMinShortSidePx(int px) Overrides the physical-screen-shorter-side threshold, in CSS pixels, used to distinguishAppHeadroom.DeviceType.TABLETfromAppHeadroom.DeviceType.PHONEamong touch devices (default768, matchingvaadin-flow-app-nav-layout's equivalent device detection).AppHeadroom.setTopBarCollapsible(boolean collapsible) Explicitly overrides whether the top bar can ever collapse (hide) at all, regardless of the automatic position/shape inference.AppHeadroom.setTopBarPinned(boolean pinned) Deprecated.UseAppHeadroom.setTopBarCollapsible(boolean)instead — note the inverted argument:setTopBarPinned(true)(never collapse) is equivalent tosetTopBarCollapsible(false).AppHeadroom.setTopOffset(int px) Sets the distance from the top of the page, in pixels, within which the chrome is always shown (default100).AppHeadroom.setTransitionDuration(int ms) Sets how long, in milliseconds, the show/hide slide and padding transitions take (default600).Constructors in org.vaadin.addons.joelpop.appheadroom.ui.component with parameters of type AppHeadroomModifierConstructorDescriptionCollapseChangeEvent(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.PinnedChangeEvent(AppHeadroom source, boolean fromClient, boolean pinned) Deprecated.Constructed by Flow when the client firespinned-changed, or directly byAppHeadroomitself for a server-initiated reset; not meant to be constructed by application code.
AppHeadroom.CollapseChangeEventinstead.