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

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

Introduction

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

The text is from its open source code.

Subclass

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

Implementation

com.vaadin.ui.Component has the following implementations.
Click this link to see all its implementation.

Method

RegistrationaddAttachListener(AttachListener listener)
Add a listener for connector attach events.
RegistrationaddListener(Component.Listener listener)
Registers a new (generic) component event listener for the component.
voidaddStyleName(String style)
Adds one or more style names to this component.
voiddetach()
Notifies the connector that it is detached from its VaadinSession.
StringgetCaption()
Gets the caption of the component.
StringgetConnectorId()
Returns the id for this connector.
StringgetDescription()

Gets the components description, used in tooltips and can be displayed directly in certain other components such as forms.

CollectiongetExtensions()
Get a read-only collection of all extensions attached to this connector.
floatgetHeight()
Gets the height of the object.
UnitgetHeightUnits()
Gets the height property units.
StringgetId()
Gets currently set debug identifier.
LocalegetLocale()
Gets the locale of the component.
HasComponentsgetParent()
Gets the parent component of the component.
StringgetStyleName()
Gets all user-defined CSS style names of a component.
UIgetUI()
Gets the UI the component is attached to.
floatgetWidth()
Gets the width of the object.
UnitgetWidthUnits()
Gets the width property units.
booleanisAttached()
Checks if the connector is attached to a VaadinSession.
booleanisEnabled()
Tests whether the component is enabled or not.
booleanisVisible()
Tests the visibility property of the component.
voidmarkAsDirty()
Marks that this connector's state might have changed.
voidremoveListener(Component.Listener listener)
Removes a previously registered component event listener from this component.
voidremoveStyleName(String style)
Removes one or more style names from component.
voidsetCaption(String caption)
Sets the caption of the component.
voidsetEnabled(boolean enabled)
Enables or disables the component.
voidsetHeight(float height, Unit unit)
Sets the height of the object.
voidsetHeight(String height)
Sets the height of the component using String presentation.
voidsetIcon(Resource icon)
Sets the icon of the component.
voidsetId(String id)
Adds an unique id for component that is used in the client-side for testing purposes.
voidsetParent(HasComponents parent)
Sets the parent connector of the component.
voidsetPrimaryStyleName(String style)
Changes the primary style name of the component.
voidsetSizeFull()
Sets the size to 100% x 100%.
voidsetSizeUndefined()
Clears any size settings.
voidsetStyleName(String style)
Sets one or more user-defined style names of the component, replacing any previous user-defined styles.
voidsetVisible(boolean visible)
Sets the visibility of the component.
voidsetWidth(String width)
Sets the width of the component using String presentation.
voidsetWidth(float width, Unit unit)
Sets the width of the object.
voidsetWidthUndefined()
Clears any defined width.