Class JmixViewTab
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.tabs.Tab
io.jmix.tabbedmode.component.tabsheet.JmixViewTab
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasAriaLabel,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasLabel,com.vaadin.flow.component.HasStyle,com.vaadin.flow.component.HasTheme,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.tabs.TabVariant>,com.vaadin.flow.component.shared.HasTooltip,Serializable
@Tag("jmix-view-tab")
@JsModule("./src/tabsheet/jmix-view-tab.js")
public class JmixViewTab
extends com.vaadin.flow.component.tabs.Tab
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classJmixViewTab.BeforeCloseEvent<C extends com.vaadin.flow.component.Component> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected booleanprotected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.HasText -
Constructor Summary
ConstructorsConstructorDescriptionJmixViewTab(com.vaadin.flow.component.Component... components) JmixViewTab(String text) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddBeforeCloseListener(com.vaadin.flow.component.ComponentEventListener<JmixViewTab.BeforeCloseEvent<JmixViewTab>> listener) protected com.vaadin.flow.component.ComponentgetText()booleanprotected voidonCloseButtonClicked(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidsetClosable(boolean closable) voidSets the label of this tab.Methods inherited from class com.vaadin.flow.component.tabs.Tab
getFlexGrow, getLabel, isSelected, setFlexGrow, setLabel, setSelected, toStringMethods 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, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.HasAriaLabel
getAriaLabel, getAriaLabelledBy, setAriaLabel, setAriaLabelledByMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods 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.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariantsMethods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipText
-
Field Details
-
BASE_CLASS_NAME
- See Also:
-
textElement
protected com.vaadin.flow.component.HasText textElement -
closeButton
protected com.vaadin.flow.component.Component closeButton -
closable
protected boolean closable
-
-
Constructor Details
-
JmixViewTab
public JmixViewTab() -
JmixViewTab
-
JmixViewTab
public JmixViewTab(com.vaadin.flow.component.Component... components)
-
-
Method Details
-
getText
-
setText
Sets the label of this tab.- Parameters:
text- the label to display
-
isClosable
public boolean isClosable() -
setClosable
public void setClosable(boolean closable) -
createCloseButton
protected com.vaadin.flow.component.Component createCloseButton() -
onCloseButtonClicked
protected void onCloseButtonClicked(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
addBeforeCloseListener
public com.vaadin.flow.shared.Registration addBeforeCloseListener(com.vaadin.flow.component.ComponentEventListener<JmixViewTab.BeforeCloseEvent<JmixViewTab>> listener)
-