Package org.vaadin.firitin.layouts
Class VTabSheet
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.Composite<com.vaadin.flow.component.orderedlayout.FlexLayout>
-
- org.vaadin.firitin.layouts.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 ofTabswhich handles component change onTabclicks 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.RegistrationaddSelectedChangeListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.tabs.Tabs.SelectedChangeEvent> listener)com.vaadin.flow.component.tabs.TabaddTab(String caption, com.vaadin.flow.component.Component component)com.vaadin.flow.component.tabs.Tabs.OrientationgetOrientation()intgetSelectedIndex()com.vaadin.flow.component.tabs.TabgetSelectedTab()voidremoveTab(com.vaadin.flow.component.tabs.Tab tab)voidsetFlexGrowForEnclosedTabs(double flexGrow)voidsetOrientation(com.vaadin.flow.component.tabs.Tabs.Orientation orientation)voidsetSelectedIndex(int selectedIndex)voidsetSelectedTab(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
-
-
-
-
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)
-
-