Class JmixManagedTabSheet

java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractComponentContainer
com.vaadin.ui.AbstractLayout
com.vaadin.ui.CssLayout
io.jmix.ui.widget.JmixTabSheetCssLayout
io.jmix.ui.widget.JmixManagedTabSheet
All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier, com.vaadin.event.LayoutEvents.LayoutClickNotifier, com.vaadin.event.MethodEventSource, com.vaadin.server.ClientConnector, com.vaadin.server.Sizeable, com.vaadin.shared.Connector, com.vaadin.ui.Component, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.ComponentContainer, com.vaadin.ui.HasComponents, com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.Layout, com.vaadin.v7.event.FieldEvents.BlurNotifier, com.vaadin.v7.event.FieldEvents.FocusNotifier, HasTabSheetBehaviour, Serializable, Iterable<com.vaadin.ui.Component>

public class JmixManagedTabSheet extends JmixTabSheetCssLayout implements com.vaadin.ui.Component.Focusable, com.vaadin.v7.event.FieldEvents.FocusNotifier, com.vaadin.v7.event.FieldEvents.BlurNotifier, HasTabSheetBehaviour
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
    static enum 
     
    static class 
     
    static interface 
     
    static interface 
     
    static class 
     
    protected static class 
     

    Nested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnector

    com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler

    Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector

    com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener

    Nested classes/interfaces inherited from interface com.vaadin.ui.Component

    com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener

    Nested classes/interfaces inherited from interface com.vaadin.ui.Component.HasContextHelp

    com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickEvent, com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickListener

    Nested classes/interfaces inherited from interface com.vaadin.ui.HasComponents

    com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener

    Nested classes/interfaces inherited from interface com.vaadin.ui.Layout

    com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandler

    Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable

    com.vaadin.server.Sizeable.Unit
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final TabSheetBehaviour
     
     
    protected static final String
     
    protected static final String
     
    protected com.vaadin.ui.Component
     
    protected static final Method
     
    protected final JmixMainTabSheet
     
    protected final List<com.vaadin.ui.Component>
     
     
    protected final Map<com.vaadin.ui.Component,JmixManagedTabSheet.Tab>
     
     
    protected final com.google.common.collect.BiMap<com.vaadin.ui.Component,com.vaadin.ui.Component>
     
    protected static final String
     

    Fields inherited from class com.vaadin.ui.CssLayout

    components

    Fields inherited from class com.vaadin.ui.AbstractComponent

    componentErrorProvider, DESIGN_ATTR_PLAIN_TEXT, requiredError

    Fields inherited from interface com.vaadin.server.Sizeable

    SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    _closeTab(com.vaadin.ui.Component tabContent)
     
    void
    addActionHandler(com.vaadin.event.Action.Handler actionHandler)
     
    void
    addBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
     
    void
    addFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
     
    void
    Deprecated.
    void
     
    addTab(com.vaadin.ui.Component c, String caption, com.vaadin.server.Resource icon)
     
    addTab(com.vaadin.ui.Component tabComponent, String caption, com.vaadin.server.Resource icon, int position)
     
    void
     
    void
    closeOtherTabs(com.vaadin.ui.Component currentTab)
     
    void
    closeTab(com.vaadin.ui.Component tab)
     
    protected void
    fireSelectedTabChange(boolean userOriginated)
     
    void
     
    Consumer<com.vaadin.ui.ComponentContainer>
     
    Consumer<com.vaadin.ui.ComponentContainer>
     
    getContentTab(com.vaadin.ui.Component tabContent)
     
     
    protected com.vaadin.ui.Component
    getTabComponent(com.vaadin.ui.Component contentComponent)
     
    int
     
     
    protected void
    hideTabContent(com.vaadin.ui.Component component)
     
    protected void
    loadTabContent(com.vaadin.ui.Component component)
     
    void
    removeBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
     
    void
    removeComponent(com.vaadin.ui.Component c)
     
    void
    removeFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
     
    void
    Deprecated.
    void
     
    void
    replaceComponent(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent)
     
    protected void
    selectTab(com.vaadin.ui.Component component)
     
    void
    setCloseAllTabsHandler(Consumer<com.vaadin.ui.ComponentContainer> closeAllTabsHandler)
     
    void
    setCloseOthersHandler(Consumer<com.vaadin.ui.ComponentContainer> closeOthersHandler)
     
    void
     
    void
    setDropHandler(com.vaadin.event.dd.DropHandler dropHandler)
     
    void
     
    protected void
    setSelected(com.vaadin.ui.Component component)
     
    void
     
    void
     
    void
    setTabIndex(int tabIndex)
     
    protected void
    showTabContent(com.vaadin.ui.Component component)
     
    protected void
    unloadTabContent(com.vaadin.ui.Component component)
     
    protected void
    unselectTab(com.vaadin.ui.Component component)
     

    Methods inherited from class com.vaadin.ui.CssLayout

    addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, getState, iterator, readDesign, removeLayoutClickListener, writeDesign

    Methods inherited from class com.vaadin.ui.AbstractLayout

    isRequiredIndicatorVisible, readMargin, setRequiredIndicatorVisible, writeMargin

    Methods inherited from class com.vaadin.ui.AbstractComponentContainer

    addComponentAttachListener, addComponentDetachListener, addComponents, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, setHeight, setWidth

    Methods inherited from class com.vaadin.ui.AbstractComponent

    addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, attach, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setVisible, setWidth, setWidthFull, setWidthUndefined

    Methods inherited from class com.vaadin.server.AbstractClientConnector

    addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.server.ClientConnector

    addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler

    Methods inherited from interface com.vaadin.ui.Component

    addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign

    Methods inherited from interface com.vaadin.ui.ComponentContainer

    addComponents, getComponentIterator, moveComponentsFrom, removeAllComponents

    Methods inherited from interface com.vaadin.shared.Connector

    getConnectorId

    Methods inherited from interface com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier

    addComponentAttachListener, addComponentDetachListener, removeComponentAttachListener, removeComponentDetachListener

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator

    Methods inherited from interface com.vaadin.server.Sizeable

    getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
  • Field Details

  • Constructor Details

    • JmixManagedTabSheet

      public JmixManagedTabSheet()
  • Method Details

    • getMode

      public JmixManagedTabSheet.Mode getMode()
    • setMode

      public void setMode(JmixManagedTabSheet.Mode tabSheetMode)
    • removeComponent

      public void removeComponent(com.vaadin.ui.Component c)
      Specified by:
      removeComponent in interface com.vaadin.ui.ComponentContainer
      Overrides:
      removeComponent in class com.vaadin.ui.CssLayout
    • getContentTab

      @Nullable protected JmixManagedTabSheet.TabImpl getContentTab(com.vaadin.ui.Component tabContent)
    • getTabComponent

      protected com.vaadin.ui.Component getTabComponent(com.vaadin.ui.Component contentComponent)
    • _closeTab

      protected void _closeTab(com.vaadin.ui.Component tabContent)
    • getTabSheetBehaviour

      public TabSheetBehaviour getTabSheetBehaviour()
      Specified by:
      getTabSheetBehaviour in interface HasTabSheetBehaviour
    • addTab

      public JmixManagedTabSheet.Tab addTab(com.vaadin.ui.Component c, @Nullable String caption, @Nullable com.vaadin.server.Resource icon)
    • addTab

      public JmixManagedTabSheet.Tab addTab(com.vaadin.ui.Component tabComponent, @Nullable String caption, @Nullable com.vaadin.server.Resource icon, int position)
    • setSelected

      protected void setSelected(@Nullable com.vaadin.ui.Component component)
    • unselectTab

      protected void unselectTab(com.vaadin.ui.Component component)
    • unloadTabContent

      protected void unloadTabContent(com.vaadin.ui.Component component)
    • hideTabContent

      protected void hideTabContent(com.vaadin.ui.Component component)
    • selectTab

      protected void selectTab(com.vaadin.ui.Component component)
    • loadTabContent

      protected void loadTabContent(com.vaadin.ui.Component component)
    • showTabContent

      protected void showTabContent(com.vaadin.ui.Component component)
    • setSelectedTab

      public void setSelectedTab(@Nullable JmixManagedTabSheet.Tab tab)
    • replaceComponent

      public void replaceComponent(com.vaadin.ui.Component oldComponent, com.vaadin.ui.Component newComponent)
      Specified by:
      replaceComponent in interface com.vaadin.ui.ComponentContainer
      Overrides:
      replaceComponent in class com.vaadin.ui.CssLayout
    • closeTab

      public void closeTab(com.vaadin.ui.Component tab)
    • getCloseOthersHandler

      public Consumer<com.vaadin.ui.ComponentContainer> getCloseOthersHandler()
    • setCloseOthersHandler

      public void setCloseOthersHandler(Consumer<com.vaadin.ui.ComponentContainer> closeOthersHandler)
    • getCloseAllTabsHandler

      public Consumer<com.vaadin.ui.ComponentContainer> getCloseAllTabsHandler()
    • setCloseAllTabsHandler

      public void setCloseAllTabsHandler(Consumer<com.vaadin.ui.ComponentContainer> closeAllTabsHandler)
    • closeOtherTabs

      public void closeOtherTabs(com.vaadin.ui.Component currentTab)
    • closeAllTabs

      public void closeAllTabs()
    • setStyleName

      public void setStyleName(String style)
      Specified by:
      setStyleName in interface com.vaadin.ui.Component
      Overrides:
      setStyleName in class com.vaadin.ui.AbstractComponent
    • setDragMode

      public void setDragMode(LayoutDragMode mode)
    • setDropHandler

      public void setDropHandler(com.vaadin.event.dd.DropHandler dropHandler)
    • addActionHandler

      public void addActionHandler(com.vaadin.event.Action.Handler actionHandler)
    • addSelectedTabChangeListener

      public void addSelectedTabChangeListener(JmixManagedTabSheet.SelectedTabChangeListener listener)
    • addListener

      @Deprecated public void addListener(JmixManagedTabSheet.SelectedTabChangeListener listener)
      Deprecated.
    • removeSelectedTabChangeListener

      public void removeSelectedTabChangeListener(JmixManagedTabSheet.SelectedTabChangeListener listener)
    • removeListener

      @Deprecated public void removeListener(JmixManagedTabSheet.SelectedTabChangeListener listener)
      Deprecated.
    • fireSelectedTabChange

      protected void fireSelectedTabChange(boolean userOriginated)
    • addBlurListener

      public void addBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
      Specified by:
      addBlurListener in interface com.vaadin.v7.event.FieldEvents.BlurNotifier
    • removeBlurListener

      public void removeBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
      Specified by:
      removeBlurListener in interface com.vaadin.v7.event.FieldEvents.BlurNotifier
    • addFocusListener

      public void addFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
      Specified by:
      addFocusListener in interface com.vaadin.v7.event.FieldEvents.FocusNotifier
    • removeFocusListener

      public void removeFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
      Specified by:
      removeFocusListener in interface com.vaadin.v7.event.FieldEvents.FocusNotifier
    • focus

      public void focus()
      Specified by:
      focus in interface com.vaadin.ui.Component.Focusable
      Overrides:
      focus in class com.vaadin.ui.AbstractComponent
    • getTabIndex

      public int getTabIndex()
      Specified by:
      getTabIndex in interface com.vaadin.ui.Component.Focusable
    • setTabIndex

      public void setTabIndex(int tabIndex)
      Specified by:
      setTabIndex in interface com.vaadin.ui.Component.Focusable