Class TabWindowImpl

java.lang.Object
io.jmix.ui.component.impl.WindowImpl
io.jmix.ui.component.impl.TabWindowImpl
All Implemented Interfaces:
ActionsHolder, Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper, ComponentContainer, ExpandingLayout, Frame, HasComponents, HasMargin, HasSpacing, HasSubParts, FrameImplementation, WindowImplementation, OrderedContainer, SecuredActionsHolder, SupportsExpandRatio, TabWindow, Window

public class TabWindowImpl extends WindowImpl implements TabWindow
  • Field Details

    • contentSwitchMode

      protected Window.ContentSwitchMode contentSwitchMode
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • TabWindowImpl

      public TabWindowImpl()
  • Method Details

    • setApplicationContext

      @Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
    • setIcon

      public void setIcon(@Nullable String icon)
      Description copied from interface: Component.HasIcon
      Set an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.
      Specified by:
      setIcon in interface Component.HasIcon
      Overrides:
      setIcon in class WindowImpl
    • setCloseable

      public void setCloseable(boolean closeable)
      Description copied from interface: Window
      Sets the closable status for the window.
      Specified by:
      setCloseable in interface Window
      Overrides:
      setCloseable in class WindowImpl
      Parameters:
      closeable - closeable flag
    • setCaption

      public void setCaption(@Nullable String caption)
      Description copied from interface: Component.HasCaption
      Sets the component's caption.
      Specified by:
      setCaption in interface Component.HasCaption
      Overrides:
      setCaption in class WindowImpl
      Parameters:
      caption - the new component's caption
    • setDescription

      public void setDescription(@Nullable String description)
      Description copied from interface: Component.HasDescription
      Sets the component's description.
      Specified by:
      setDescription in interface Component.HasDescription
      Overrides:
      setDescription in class WindowImpl
      Parameters:
      description - the new description to set
    • updateCaptionAndDescription

      protected void updateCaptionAndDescription()
    • asTabWindow

      @Nullable protected com.vaadin.ui.TabSheet.Tab asTabWindow()
    • asSingleWindow

      @Nullable protected com.vaadin.ui.Layout asSingleWindow()
    • findTab

      @Nullable protected com.vaadin.ui.TabSheet.Tab findTab()
    • formatTabCaption

      public String formatTabCaption()
      Specified by:
      formatTabCaption in interface TabWindow
      Returns:
      formatted tab caption
    • formatTabDescription

      public String formatTabDescription()
      Specified by:
      formatTabDescription in interface TabWindow
      Returns:
      formatted tab tooltip text
    • getContentSwitchMode

      public Window.ContentSwitchMode getContentSwitchMode()
      Description copied from interface: TabWindow
      Returns how the managed main TabSheet switches a tab with this window: hides or unloads its content.
      Specified by:
      getContentSwitchMode in interface TabWindow
      Returns:
      one of the Window.ContentSwitchMode enum values
    • setContentSwitchMode

      public void setContentSwitchMode(Window.ContentSwitchMode mode)
      Description copied from interface: TabWindow
      Sets how the managed main TabSheet switches a tab with this window: hides or unloads its content.

      Note that: a method invocation will take effect only if jmix.ui.component.mainTabSheetMode property is set to 'MANAGED'.

      Specified by:
      setContentSwitchMode in interface TabWindow
      Parameters:
      mode - one of the Window.ContentSwitchMode enum values