Class VTabSheet

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, Serializable

    public class VTabSheet
    extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.FlexLayout>
    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
    • Constructor Summary

      Constructors 
      Constructor Description
      VTabSheet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.vaadin.flow.shared.Registration addSelectedChangeListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent> listener)  
      com.vaadin.flow.component.tabs.Tab addTab​(String caption, com.vaadin.flow.component.Component component)  
      com.vaadin.flow.component.tabs.Tabs.Orientation getOrientation()  
      int getSelectedIndex()  
      com.vaadin.flow.component.tabs.Tab getSelectedTab()  
      void removeTab​(com.vaadin.flow.component.tabs.Tab tab)  
      void setFlexGrowForEnclosedTabs​(double flexGrow)  
      void setOrientation​(com.vaadin.flow.component.tabs.Tabs.Orientation orientation)  
      void setSelectedIndex​(int selectedIndex)  
      void setSelectedTab​(com.vaadin.flow.component.tabs.Tab selectedTab)  
      • Methods inherited from class com.vaadin.flow.component.Composite

        getChildren, getContent, getElement, initContent
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
      • Methods inherited from interface com.vaadin.flow.component.AttachNotifier

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

        addDetachListener
    • Constructor Detail

      • VTabSheet

        public VTabSheet()
    • Method Detail

      • addSelectedChangeListener

        public com.vaadin.flow.shared.Registration addSelectedChangeListener​(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent> listener)
      • getSelectedIndex

        public int getSelectedIndex()
      • setSelectedIndex

        public void setSelectedIndex​(int selectedIndex)
      • getSelectedTab

        public com.vaadin.flow.component.tabs.Tab getSelectedTab()
      • setSelectedTab

        public void setSelectedTab​(com.vaadin.flow.component.tabs.Tab selectedTab)
      • 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)
      • getOrientation

        public com.vaadin.flow.component.tabs.Tabs.Orientation getOrientation()
      • setOrientation

        public void setOrientation​(com.vaadin.flow.component.tabs.Tabs.Orientation orientation)
      • setFlexGrowForEnclosedTabs

        public void setFlexGrowForEnclosedTabs​(double flexGrow)