Class HeaderFooterLayoutWrapper<R extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents,​H extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents,​B extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents,​F extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(com.vaadin.flow.component.Component... components)  
      void addComponentAtIndex​(int index, com.vaadin.flow.component.Component component)  
      B getBody()
      Returns the body of this component.
      Stream<com.vaadin.flow.component.Component> getComponents()
      Returns components contained in the body.
      Optional<F> getFooter()
      Gets the current footer.
      Optional<H> getHeader()
      Gets the current header.
      protected R initContent()  
      boolean isReadOnly()
      Checks whether this object is in read-only mode.
      Iterator<com.vaadin.flow.component.Component> iterator()  
      void remove​(com.vaadin.flow.component.Component... components)  
      void removeAll()  
      void setReadOnly​(boolean readOnly)
      Sets the new read-only state.
      • Methods inherited from class com.vaadin.flow.component.Composite

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

        addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, scrollIntoView, 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.HasComponents

        add, add, addComponentAsFirst, remove
      • Methods inherited from interface com.vaadin.flow.component.HasElement

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

        isEnabled, setEnabled
    • Constructor Detail

      • HeaderFooterLayoutWrapper

        public HeaderFooterLayoutWrapper​(Supplier<R> rootSupplier,
                                         H header,
                                         B body,
                                         F footer)
        Creates the layout.
        Parameters:
        rootSupplier - Callback to create root layout. header, body, and footer will all be added to it.
        header - Header.
        body - Body.
        footer - Footer.
    • Method Detail

      • initContent

        protected R initContent()
        Overrides:
        initContent in class com.vaadin.flow.component.Composite<R extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
      • add

        public void add​(com.vaadin.flow.component.Component... components)
        Specified by:
        add in interface com.vaadin.flow.component.HasComponents
      • addComponentAtIndex

        public void addComponentAtIndex​(int index,
                                        com.vaadin.flow.component.Component component)
        Specified by:
        addComponentAtIndex in interface com.vaadin.flow.component.HasComponents
      • removeAll

        public void removeAll()
        Specified by:
        removeAll in interface com.vaadin.flow.component.HasComponents
      • remove

        public void remove​(com.vaadin.flow.component.Component... components)
        Specified by:
        remove in interface com.vaadin.flow.component.HasComponents
      • getHeader

        public Optional<H> getHeader()
        Description copied from interface: HasHeader
        Gets the current header.
        Specified by:
        getHeader in interface HasHeader<R extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
        Returns:
        Perhaps the current header.
      • getFooter

        public Optional<F> getFooter()
        Description copied from interface: HasFooter
        Gets the current footer.
        Specified by:
        getFooter in interface HasFooter<R extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
        Returns:
        Perhaps the current footer.
      • iterator

        public Iterator<com.vaadin.flow.component.Component> iterator()
        Specified by:
        iterator in interface Iterable<R extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>
      • getBody

        public B getBody()
        Returns the body of this component.
        Returns:
        Body.
      • getComponents

        public Stream<com.vaadin.flow.component.Component> getComponents()
        Returns components contained in the body.
        Returns:
        A Stream with components contained in the body.
        See Also:
        iterator(), Composite.getChildren()
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
        Description copied from interface: HasReadOnly
        Sets the new read-only state.
        Specified by:
        setReadOnly in interface HasReadOnly
        Parameters:
        readOnly - Whether the object should be in read-only mode.
      • isReadOnly

        public boolean isReadOnly()
        Description copied from interface: HasReadOnly
        Checks whether this object is in read-only mode.
        Specified by:
        isReadOnly in interface HasReadOnly
        Returns:
        Whether the object is in read-only mode.