Java com.vaadin.ui Label fields, constructors, methods, implement or subclass

Example usage for Java com.vaadin.ui Label fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.vaadin.ui Label.

The text is from its open source code.

Subclass

com.vaadin.ui.Label has subclasses.
Click this link to see all its subclasses.

Constructor

Label(String text)
Creates a new instance with text content mode and the given text.
Label()
Creates an empty Label.
Label(String text, ContentMode contentMode)
Creates a new instance with the given text and content mode.

Method

voidaddStyleName(String style)
booleanequals(Object obj)
StringgetCaption()
ContentModegetContentMode()
Gets the content mode of the label.
ObjectgetData()
Gets the application specific data.
StringgetDescription()
StringgetStyleName()
UIgetUI()
Finds a UI ancestor of this connector.
StringgetValue()
Gets the text shown in the label.
floatgetWidth()
UnitgetWidthUnits()
booleanisEnabled()
booleanisReadOnly()
Returns the read-only status from the state of this AbstractComponent .
booleanisVisible()
voidremoveShortcutListener(ShortcutListener shortcut)
voidremoveStyleName(String style)
voidrequestRepaint()
voidsetCaption(String caption)
voidsetCaptionAsHtml(boolean captionAsHtml)
Sets whether the caption is rendered as HTML.
voidsetComponentError(ErrorMessage componentError)
Sets the component's error message.
voidsetContentMode(ContentMode contentMode)
Sets the content mode of the label.
voidsetData(Object data)
Sets the data object, that can be used for any application specific data.
voidsetDescription(String description)
Sets the component's description.
voidsetEnabled(boolean enabled)
voidsetHeight(String height)
voidsetHeight(float height, Unit unit)
voidsetHeightUndefined()
voidsetIcon(Resource icon)
Sets the component's icon.
voidsetId(String id)
voidsetPrimaryStyleName(String style)
voidsetReadOnly(boolean readOnly)
Sets the read-only status in the state of this AbstractComponent .
voidsetResponsive(boolean responsive)
Toggles responsiveness of this component.
voidsetSizeFull()
voidsetSizeUndefined()
voidsetStyleName(String style)
voidsetValue(String value)
Sets the text to be shown in the label.
voidsetVisible(boolean visible)
voidsetWidth(String width)
voidsetWidth(float width, Unit unit)
voidsetWidthUndefined()