Class VTabSheet

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, 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.tabs.TabSheetVariant>, Serializable

    public class VTabSheet
    extends com.vaadin.flow.component.tabs.TabSheet
    A TabSheet component that behaves in the same way as the familiar Vaadin 7,8. It provides a layer on top of Tabs which handles component change on Tab clicks automatically.
    Author:
    mmerruko
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  VTabSheet.ScrollEvent  
      static class  VTabSheet.ScrollToEndEvent  
      • Nested classes/interfaces inherited from class com.vaadin.flow.component.tabs.TabSheet

        com.vaadin.flow.component.tabs.TabSheet.SelectedChangeEvent
    • Constructor Summary

      Constructors 
      Constructor Description
      VTabSheet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.flow.shared.Registration addScrollListener​(com.vaadin.flow.component.ComponentEventListener<VTabSheet.ScrollEvent> listener)  
      com.vaadin.flow.shared.Registration addScrollToEndListener​(com.vaadin.flow.component.ComponentEventListener<VTabSheet.ScrollToEndEvent> listener)
      Adds a listener that is called when a users scrolls the component to the end of its scrollable area.
      com.vaadin.flow.component.tabs.Tab addTab​(String caption, com.vaadin.flow.component.Component component)  
      protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)  
      void removeTab​(com.vaadin.flow.component.tabs.Tab tab)  
      void scrollIntoView​(com.vaadin.flow.component.Component c)  
      void scrollToBottom()  
      void scrollToTop()  
      void setScrollLeft​(int pixelsFromLeft)  
      void setScrollTop​(int pixelsFromTop)  
      • Methods inherited from class com.vaadin.flow.component.tabs.TabSheet

        add, add, add, add, addSelectedChangeListener, getIndexOf, getPrefixComponent, getSelectedIndex, getSelectedTab, getSuffixComponent, getTabAt, remove, remove, remove, setPrefixComponent, setSelectedIndex, setSelectedTab, setSuffixComponent
      • Methods 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, onDetach, onEnabledStateChanged, scrollIntoView, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

        addAttachListener
      • Methods inherited from interface com.vaadin.flow.component.DetachNotifier

        addDetachListener
      • Methods inherited from interface com.vaadin.flow.component.HasElement

        getElement
      • Methods 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, setWidthFull
      • Methods inherited from interface com.vaadin.flow.component.HasStyle

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
      • Methods inherited from interface com.vaadin.flow.component.HasTheme

        addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
      • Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant

        addThemeVariants, removeThemeVariants
    • Constructor Detail

      • VTabSheet

        public VTabSheet()
    • Method Detail

      • addTab

        public com.vaadin.flow.component.tabs.Tab addTab​(String caption,
                                                         com.vaadin.flow.component.Component component)
      • removeTab

        public void removeTab​(com.vaadin.flow.component.tabs.Tab tab)
      • onAttach

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

        public com.vaadin.flow.shared.Registration addScrollToEndListener​(com.vaadin.flow.component.ComponentEventListener<VTabSheet.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<VTabSheet.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)