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 Classes
    Modifier and Type
    Class
    Description
    static class 
    JmixViewTab.BeforeCloseEvent<C extends com.vaadin.flow.component.Component>
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final String
     
    protected boolean
     
    protected com.vaadin.flow.component.Component
     
    protected com.vaadin.flow.component.HasText
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    JmixViewTab(com.vaadin.flow.component.Component... components)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.shared.Registration
    addBeforeCloseListener(com.vaadin.flow.component.ComponentEventListener<JmixViewTab.BeforeCloseEvent<JmixViewTab>> listener)
     
    protected com.vaadin.flow.component.Component
     
     
    boolean
     
    protected void
    onCloseButtonClicked(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
     
    void
    setClosable(boolean closable)
     
    void
    Sets the label of this tab.

    Methods inherited from class com.vaadin.flow.component.tabs.Tab

    getFlexGrow, getLabel, isSelected, setFlexGrow, setLabel, setSelected, toString

    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, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

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

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasAriaLabel

    getAriaLabel, getAriaLabelledBy, setAriaLabel, setAriaLabelledBy

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName

    Methods inherited from interface com.vaadin.flow.component.HasTheme

    addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName

    Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant

    addThemeVariants, removeThemeVariants

    Methods inherited from interface com.vaadin.flow.component.shared.HasTooltip

    getTooltip, setTooltipText
  • Field Details

    • BASE_CLASS_NAME

      protected static final String 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

      public JmixViewTab(String text)
    • JmixViewTab

      public JmixViewTab(com.vaadin.flow.component.Component... components)
  • Method Details

    • getText

      @Nullable public String getText()
    • setText

      public void setText(@Nullable String text)
      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)