R - Root layout of the component. Obtainable from Composite.getContent().H - Header layout. Obtainable from getHeader().B - Body layout.F - Footer layout. Obtainable from getFooter().public 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> extends com.vaadin.flow.component.Composite<R> implements com.vaadin.flow.component.HasComponents, Iterable<com.vaadin.flow.component.Component>, WithHeaderComponentsMixin<H,HeaderFooterLayoutWrapper<R,H,B,F>>, WithIdMixin<HeaderFooterLayoutWrapper<R,H,B,F>>, WithFooterComponentsMixin<F,HeaderFooterLayoutWrapper<R,H,B,F>>, HasReadOnly
HasComponents to the body. In other words, it allows using predefined layouts.
This component is Iterable over the Components contained in the body.
Similarly, getComponents() ()} returns Components things put in the body.| Constructor and Description |
|---|
HeaderFooterLayoutWrapper(Supplier<R> rootSupplier,
H header,
B body,
F footer)
Creates the layout.
|
| Modifier and Type | Method and 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.
|
getChildren, getContent, getElementaddListener, fireEvent, from, get, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorwithHeaderComponentswithIdwithFooterComponentssetReadOnlyprotected R initContent()
initContent in class com.vaadin.flow.component.Composite<R extends com.vaadin.flow.component.Component & com.vaadin.flow.component.HasComponents>public void add(com.vaadin.flow.component.Component... components)
add in interface com.vaadin.flow.component.HasComponentspublic void addComponentAtIndex(int index,
com.vaadin.flow.component.Component component)
addComponentAtIndex in interface com.vaadin.flow.component.HasComponentspublic void removeAll()
removeAll in interface com.vaadin.flow.component.HasComponentspublic void remove(com.vaadin.flow.component.Component... components)
remove in interface com.vaadin.flow.component.HasComponentspublic Optional<H> getHeader()
HasHeaderpublic Optional<F> getFooter()
HasFooterpublic Iterator<com.vaadin.flow.component.Component> iterator()
public B getBody()
public Stream<com.vaadin.flow.component.Component> getComponents()
Stream with components contained in the body.iterator(),
Composite.getChildren()public void setReadOnly(boolean readOnly)
HasReadOnlysetReadOnly in interface HasReadOnlyreadOnly - Whether the object should be in read-only mode.public boolean isReadOnly()
HasReadOnlyisReadOnly in interface HasReadOnlyCopyright © 2023 Miki. All rights reserved.