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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

    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

    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

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

    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.shared.HasPrefix

    getPrefixComponent, setPrefixComponent

    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.shared.HasSuffix

    getSuffixComponent, setSuffixComponent

    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 Details

    • VTabSheet

      public VTabSheet()
  • Method Details

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