public interface LabelBuilder extends ComponentBuilder<com.vaadin.ui.Label,LabelBuilder>
Label instances.
Note that, differently from default Label constructor, the width is not setted to 100% by default, but it is
leaved undefined.
ComponentConfigurator.BaseComponentConfigurator| Modifier and Type | Method and Description |
|---|---|
LabelBuilder |
content(com.holonplatform.core.i18n.Localizable content)
Sets the label content using a
Localizable message. |
LabelBuilder |
content(String content)
Sets the label content
|
LabelBuilder |
content(String defaultContent,
String messageCode,
Object... arguments)
Sets the label content using a localizable
messageCode. |
LabelBuilder |
contentMode(com.vaadin.shared.ui.label.ContentMode contentMode)
Sets the content mode of the Label.
|
LabelBuilder |
html()
A shortcut to set the content mode to
ContentMode.HTML |
build, deferLocalizationcaption, caption, caption, captionAsHtml, description, description, description, disabled, errorHandler, fullHeight, fullSize, fullWidth, height, height, heightUndefined, hidden, icon, id, immediate, notVisible, primaryStyleName, replaceStyleName, responsive, sizeUndefined, styleName, width, width, widthUndefined, withAttachListener, withContextClickListener, withData, withDetachListener, withShortcutListenerLabelBuilder content(String content)
content - The content to setLabelBuilder content(String defaultContent, String messageCode, Object... arguments)
messageCode.
For content localization, a LocalizationContext must be available and localized as Context
resource when component is built or when component is displayed if ComponentBuilder.deferLocalization() is
true.
defaultContent - Default content if no translation is available for given messageCode for
current Locale.messageCode - Content translation message keyarguments - Optional translation argumentsLabelBuilder content(com.holonplatform.core.i18n.Localizable content)
Localizable message.
For content localization, a LocalizationContext must be available and localized as Context
resource when component is built or when component is displayed if ComponentBuilder.deferLocalization() is
true.
content - Localizable content messageLabelBuilder contentMode(com.vaadin.shared.ui.label.ContentMode contentMode)
contentMode - The content mode to setLabelBuilder html()
ContentMode.HTMLCopyright © 2019 The Holon Platform. All rights reserved.