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.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 ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.vaadin.flow.component.tabs.TabSheet
com.vaadin.flow.component.tabs.TabSheet.SelectedChangeEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.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.Tabprotected voidonAttach(com.vaadin.flow.component.AttachEvent attachEvent) voidremoveTab(com.vaadin.flow.component.tabs.Tab tab) voidscrollIntoView(com.vaadin.flow.component.Component c) voidvoidvoidsetScrollLeft(int pixelsFromLeft) voidsetScrollTop(int pixelsFromTop) Methods inherited from class com.vaadin.flow.component.tabs.TabSheet
add, add, add, add, addSelectedChangeListener, getComponent, getIndexOf, getSelectedIndex, getSelectedTab, getTab, getTabAt, getTabCount, remove, remove, remove, setSelectedIndex, setSelectedTabMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.shared.HasPrefix
getPrefixComponent, setPrefixComponentMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.shared.HasSuffix
getSuffixComponent, setSuffixComponentMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods 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:
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)
-