Class ViewFrame

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable

    @CssImport("styles/components/view-frame.css")
    public class ViewFrame
    extends com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
    implements com.vaadin.flow.component.HasStyle
    A view frame that establishes app design guidelines. It consists of three parts:
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewFrame()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)  
      void setViewContent​(com.vaadin.flow.component.Component... components)
      Sets the content slot's components.
      void setViewFooter​(com.vaadin.flow.component.Component... components)
      Sets the footer slot's components.
      void setViewHeader​(com.vaadin.flow.component.Component... components)
      Sets the header slot's components.
      • Methods inherited from class com.vaadin.flow.component.Composite

        getChildren, getContent, getElement, initContent
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
      • 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.HasElement

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

        addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
    • Constructor Detail

      • ViewFrame

        public ViewFrame()
    • Method Detail

      • setViewHeader

        public void setViewHeader​(com.vaadin.flow.component.Component... components)
        Sets the header slot's components.
      • setViewContent

        public void setViewContent​(com.vaadin.flow.component.Component... components)
        Sets the content slot's components.
      • setViewFooter

        public void setViewFooter​(com.vaadin.flow.component.Component... components)
        Sets the footer slot's components.
      • onAttach

        protected void onAttach​(com.vaadin.flow.component.AttachEvent attachEvent)
        Overrides:
        onAttach in class com.vaadin.flow.component.Component