Class VScroller
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.orderedlayout.Scroller
org.vaadin.firitin.components.orderedlayout.VScroller
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.orderedlayout.Scroller>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.orderedlayout.Scroller>,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.orderedlayout.Scroller>,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.orderedlayout.ScrollerVariant>,Serializable,FluentAttachNotifier<VScroller>,FluentComponent<VScroller>,FluentDetachNotifier<VScroller>,FluentHasSize<VScroller>,FluentHasStyle<VScroller>
public class VScroller
extends com.vaadin.flow.component.orderedlayout.Scroller
implements FluentComponent<VScroller>, FluentHasStyle<VScroller>, FluentHasSize<VScroller>
Extended version of the official Scroller component, with some actual
scrolling related methods.
- Author:
- mstahv
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.vaadin.flow.component.orderedlayout.Scroller
com.vaadin.flow.component.orderedlayout.Scroller.ScrollDirectionNested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component> -
Constructor Summary
ConstructorsConstructorDescriptionVScroller(com.vaadin.flow.component.Component content) VScroller(com.vaadin.flow.component.Component content, com.vaadin.flow.component.orderedlayout.Scroller.ScrollDirection scrollDirection) VScroller(com.vaadin.flow.component.orderedlayout.Scroller.ScrollDirection scrollDirection) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddScrollListener(com.vaadin.flow.component.ComponentEventListener<VScroller.ScrollEvent> listener) com.vaadin.flow.shared.RegistrationaddScrollToEndListener(com.vaadin.flow.component.ComponentEventListener<VScroller.ScrollToEndEvent> listener) Adds a listener that is called when a users scrolls the component to the end of its scrollable area.protected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) protected voidonDetach(com.vaadin.flow.component.DetachEvent detachEvent) voidscrollIntoView(com.vaadin.flow.component.Component c) voidvoidvoidsetScrollLeft(int pixelsFromLeft) voidsetScrollTop(int pixelsFromTop) Methods inherited from class com.vaadin.flow.component.orderedlayout.Scroller
getContent, getScrollDirection, setContent, setScrollDirectionMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentAttachNotifier
withAttachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentComponent
navigate, setId, setVisible, withId, withVisibleMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentDetachNotifier
withDetachListenerMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasSize
addResizeListener, withFullHeight, withFullWidth, withHeight, withMaxHeight, withMaxSize, withMaxWidth, withMinHeight, withMinSize, withMinWidth, withSize, withSizeFull, withSizeUndefined, withWidthMethods inherited from interface org.vaadin.firitin.fluency.ui.FluentHasStyle
withAddedClassName, withClassName, withStyleMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants
-
Constructor Details
-
VScroller
public VScroller() -
VScroller
public VScroller(com.vaadin.flow.component.Component content) -
VScroller
public VScroller(com.vaadin.flow.component.Component content, com.vaadin.flow.component.orderedlayout.Scroller.ScrollDirection scrollDirection) -
VScroller
public VScroller(com.vaadin.flow.component.orderedlayout.Scroller.ScrollDirection scrollDirection)
-
-
Method Details
-
onAttach
protected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent) - Overrides:
onAttachin classcom.vaadin.flow.component.Component
-
onDetach
protected void onDetach(com.vaadin.flow.component.DetachEvent detachEvent) - Overrides:
onDetachin classcom.vaadin.flow.component.Component
-
addScrollToEndListener
public com.vaadin.flow.shared.Registration addScrollToEndListener(com.vaadin.flow.component.ComponentEventListener<VScroller.ScrollToEndEvent> listener) Adds a listener that is called when a users scrolls the component to the end of its scrollable area.- Parameters:
listener- the listener- Returns:
- the
Registrationyou can use to remove this listener.
-
addScrollListener
public com.vaadin.flow.shared.Registration addScrollListener(com.vaadin.flow.component.ComponentEventListener<VScroller.ScrollEvent> listener) -
scrollToTop
public void scrollToTop()- Overrides:
scrollToTopin classcom.vaadin.flow.component.orderedlayout.Scroller
-
scrollToBottom
public void scrollToBottom()- Overrides:
scrollToBottomin classcom.vaadin.flow.component.orderedlayout.Scroller
-
setScrollTop
public void setScrollTop(int pixelsFromTop) -
setScrollLeft
public void setScrollLeft(int pixelsFromLeft) -
scrollIntoView
public void scrollIntoView(com.vaadin.flow.component.Component c)
-