Package org.vaadin.firitin.layouts
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.HasThemeVariant<com.vaadin.flow.component.tabs.TabSheetVariant>,Serializable
public class VTabSheet extends com.vaadin.flow.component.tabs.TabSheetA 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVTabSheet.ScrollEventstatic classVTabSheet.ScrollToEndEvent
-
Constructor Summary
Constructors Constructor Description VTabSheet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.vaadin.flow.shared.RegistrationaddScrollListener(com.vaadin.flow.component.ComponentEventListener<VTabSheet.ScrollEvent> listener)com.vaadin.flow.shared.RegistrationaddScrollToEndListener(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.TabaddTab(String caption, com.vaadin.flow.component.Component component)protected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent)voidremoveTab(com.vaadin.flow.component.tabs.Tab tab)voidscrollIntoView(com.vaadin.flow.component.Component c)voidscrollToBottom()voidscrollToTop()voidsetScrollLeft(int pixelsFromLeft)voidsetScrollTop(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
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:
onAttachin classcom.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
Registrationyou 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)
-
-