Class VScroller

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VScroller.ScrollEvent  
      static class  VScroller.ScrollToEndEvent  
      • Nested classes/interfaces inherited from class com.vaadin.flow.component.orderedlayout.Scroller

        com.vaadin.flow.component.orderedlayout.Scroller.ScrollDirection
    • Constructor Summary

      Constructors 
      Constructor Description
      VScroller()  
      VScroller​(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)  
    • Constructor Detail

      • 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 Detail

      • onAttach

        protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)
        Overrides:
        onAttach in class com.vaadin.flow.component.Component
      • onDetach

        protected void onDetach​(com.vaadin.flow.component.DetachEvent detachEvent)
        Overrides:
        onDetach in class com.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 Registration you 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()
      • scrollToBottom

        public void scrollToBottom()
      • setScrollTop

        public void setScrollTop​(int pixelsFromTop)
      • setScrollLeft

        public void setScrollLeft​(int pixelsFromLeft)
      • scrollIntoView

        public void scrollIntoView​(com.vaadin.flow.component.Component c)