C - Concrete configurator typepublic interface ComponentConfigurator<C extends ComponentConfigurator<C>> extends HasElementConfigurator<C>
Component.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ComponentConfigurator.BaseComponentConfigurator
Base component configurator.
|
| Modifier and Type | Method and Description |
|---|---|
C |
elementConfiguration(Consumer<com.vaadin.flow.dom.Element> element)
Configure the component
Element. |
default C |
hidden()
Set the component as not visible.
|
C |
id(String id)
Sets the id of the root element of this component.
|
C |
visible(boolean visible)
Sets the component visibility.
|
C |
withAttachListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.AttachEvent> listener)
Add an
AttachEvent ComponentEventListener to the component, called after the component is
attached to the application. |
C |
withDetachListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.DetachEvent> listener)
Add an
DetachEvent ComponentEventListener to the component, called before the component is
detached from the application. |
withEventListener, withEventListener, withThemeNameC id(String id)
id - the id to set, or null to remove any previously set idC visible(boolean visible)
When a component is set as invisible, all the updates of the component from the server to the client are blocked until the component is set as visible again.
Invisible components don't receive any updates from the client-side.
visible - Whether the component is visibledefault C hidden()
When a component is set as invisible, all the updates of the component from the server to the client are blocked until the component is set as visible again.
Invisible components don't receive any updates from the client-side.
visible(boolean)C elementConfiguration(Consumer<com.vaadin.flow.dom.Element> element)
Element.element - The consumer to use to configure the component Element (not null)C withAttachListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.AttachEvent> listener)
AttachEvent ComponentEventListener to the component, called after the component is
attached to the application.listener - Listener to addC withDetachListener(com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.DetachEvent> listener)
DetachEvent ComponentEventListener to the component, called before the component is
detached from the application.listener - Listener to addCopyright © 2019 The Holon Platform. All rights reserved.