C - Concrete configurator typepublic interface HasLabelConfigurator<C extends HasLabelConfigurator<C>>
HasLabel type components.| Modifier and Type | Interface and Description |
|---|---|
static interface |
HasLabelConfigurator.BaseHasLabelConfigurator
Base
HasLabelConfigurator. |
| Modifier and Type | Method and Description |
|---|---|
static <C extends com.vaadin.flow.component.HasElement> |
create(C component,
Consumer<String> setLabelOperation)
Create a new
HasLabelConfigurator.BaseHasLabelConfigurator. |
static <C extends com.vaadin.flow.component.HasElement> |
create(C component,
Consumer<String> setLabelOperation,
HasDeferrableLocalization deferrableLocalization)
Create a new
HasLabelConfigurator.BaseHasLabelConfigurator. |
C |
label(com.holonplatform.core.i18n.Localizable label)
Sets the label text using a
Localizable message. |
default C |
label(String label)
Sets the label text, replacing any previous content.
|
default C |
label(String defaultLabel,
String messageCode,
Object... arguments)
Sets the label text using a localizable
messageCode. |
C label(com.holonplatform.core.i18n.Localizable label)
Localizable message.
The text value is interpred as plain text and the HTML markup is not supported.
A null value is interpreted as an empty text.
label - Localizable label text message (may be null)LocalizationProviderdefault C label(String label)
The text value is interpred as plain text and the HTML markup is not supported.
A null text value is interpreted as an empty text.
label - The label text to setdefault C label(String defaultLabel, String messageCode, Object... arguments)
messageCode.
The text value is interpred as plain text and the HTML markup is not supported.
defaultLabel - Default label text if no translation is available for given messageCodemessageCode - Label text translation message keyarguments - Optional translation argumentsLocalizationProviderstatic <C extends com.vaadin.flow.component.HasElement> HasLabelConfigurator.BaseHasLabelConfigurator create(C component, Consumer<String> setLabelOperation)
HasLabelConfigurator.BaseHasLabelConfigurator.C - Component typesetLabelOperation - Operation to use to set the component label (not null)component - Component to configure (not null)HasLabelConfigurator.BaseHasLabelConfiguratorstatic <C extends com.vaadin.flow.component.HasElement> HasLabelConfigurator.BaseHasLabelConfigurator create(C component, Consumer<String> setLabelOperation, HasDeferrableLocalization deferrableLocalization)
HasLabelConfigurator.BaseHasLabelConfigurator.C - Component typesetLabelOperation - Operation to use to set the component label (not null)component - Component to configure (not null)deferrableLocalization - Optional HasDeferrableLocalization referenceHasLabelConfigurator.BaseHasLabelConfiguratorCopyright © 2020 The Holon Platform. All rights reserved.