Class VTabSheet

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.tabs.TabSheet
org.vaadin.firitin.layouts.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.HasPrefix, com.vaadin.flow.component.shared.HasSuffix, 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:
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class com.vaadin.flow.component.tabs.TabSheet Link icon

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

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    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
     
    void
     
    void
    setScrollLeft(int pixelsFromLeft)
     
    void
    setScrollTop(int pixelsFromTop)
     

    Methods inherited from class com.vaadin.flow.component.tabs.TabSheet Link icon

    add, add, add, add, addSelectedChangeListener, getComponent, getIndexOf, getSelectedIndex, getSelectedTab, getTab, getTabAt, remove, remove, remove, setSelectedIndex, setSelectedTab

    Methods inherited from class com.vaadin.flow.component.Component Link icon

    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, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier Link icon

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier Link icon

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasElement Link icon

    getElement

    Methods inherited from interface com.vaadin.flow.component.shared.HasPrefix Link icon

    getPrefixComponent, setPrefixComponent

    Methods inherited from interface com.vaadin.flow.component.HasSize Link icon

    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 Link icon

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.shared.HasSuffix Link icon

    getSuffixComponent, setSuffixComponent

    Methods inherited from interface com.vaadin.flow.component.HasTheme Link icon

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant Link icon

    addThemeVariants, removeThemeVariants
  • Constructor Details Link icon

    • VTabSheet Link icon

      public VTabSheet()
  • Method Details Link icon

    • addTab Link icon

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

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

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

      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 Link icon

      public com.vaadin.flow.shared.Registration addScrollListener(com.vaadin.flow.component.ComponentEventListener<VTabSheet.ScrollEvent> listener)
    • scrollToTop Link icon

      public void scrollToTop()
    • scrollToBottom Link icon

      public void scrollToBottom()
    • setScrollTop Link icon

      public void setScrollTop(int pixelsFromTop)
    • setScrollLeft Link icon

      public void setScrollLeft(int pixelsFromLeft)
    • scrollIntoView Link icon

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