Package com.vaadin.featurepack.desktop
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 ClassesModifier and TypeClassDescriptionstatic classRootContainerLayoutis 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.FocusJsNested 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 -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentGets the content container for this root container.com.vaadin.flow.component.ComponentGets the menu bar for this root container.voidsetContentContainer(com.vaadin.flow.component.Component contentContainer) Sets the content container for this root container.voidsetMenuBar(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, setLayoutMethods 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, whenAttachedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
addMethods inherited from interface com.vaadin.flow.component.HasComponentsOfType
add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, indexOf, remove, replaceMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabled, setEnabledMethods 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, setWidthFullMethods 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, ornullto 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
nullif 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, notnull
-
getContentContainer
public com.vaadin.flow.component.Component getContentContainer()Gets the content container for this root container.- Returns:
- the content container, not
null
-