Class RootContainer

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.featurepack.desktop.AbstractContainer
com.vaadin.featurepack.desktop.RootContainer
All Implemented Interfaces:
HasLayout, com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.BlurNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.Focusable, com.vaadin.flow.component.FocusNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

@Tag("div") @StyleSheet("context://vfp-root-container.css") public class RootContainer extends AbstractContainer
RootContainer is a container component that provides space for content and a menu bar (optional).

It is used as the root component of a Window.

Author:
Vaadin Ltd
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    RootContainerLayout is a dummy layout for the root container.

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier

    com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.Focusable

    com.vaadin.flow.component.Focusable.FocusJs

    Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier

    com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.vaadin.flow.component.Component
    Gets the content container for this root container.
    com.vaadin.flow.component.Component
    Gets the menu bar for this root container.
    void
    setContentContainer(com.vaadin.flow.component.Component contentContainer)
    Sets the content container for this root container.
    void
    setMenuBar(com.vaadin.flow.component.Component menuBar)
    Sets the menu bar for this root container.

    Methods inherited from class com.vaadin.featurepack.desktop.AbstractContainer

    add, getComponent, getComponentCount, getInsets, getLayout, remove, removeAll, setLayout

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, getUIOrThrow, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttached

    Methods inherited from class java.lang.Object

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

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

    addAttachListener

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

    addBlurListener

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

    addDetachListener

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

    addFocusShortcut, blur, focus, focus, getTabIndex, setTabIndex

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

    addFocusListener

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

    add

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

    add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, indexOf, remove, replace

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

    getElement

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

    bindEnabled, isEnabled, setEnabled

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

    bindHeight, bindWidth, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

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

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • RootContainer

      public RootContainer()
  • Method Details

    • setMenuBar

      public void setMenuBar(com.vaadin.flow.component.Component menuBar)
      Sets the menu bar for this root container.
      Parameters:
      menuBar - the menu bar, or null to unset the previous menu bar
    • getMenuBar

      public com.vaadin.flow.component.Component getMenuBar()
      Gets the menu bar for this root container.
      Returns:
      the menu bar, or null if no menu bar is set
    • setContentContainer

      public void setContentContainer(com.vaadin.flow.component.Component contentContainer)
      Sets the content container for this root container.
      Parameters:
      contentContainer - the root container, not null
    • getContentContainer

      public com.vaadin.flow.component.Component getContentContainer()
      Gets the content container for this root container.
      Returns:
      the content container, not null