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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

Image(String caption, Resource source)
Creates a new Image whose contents is loaded from given resource.
Image()
Creates a new empty Image.
Image(String caption)
Creates a new empty Image with caption.

Method

RegistrationaddClickListener(ClickListener listener)
Add a click listener to the component.
voidaddStyleName(String style)
StringgetCaption()
ObjectgetData()
Gets the application specific data.
StringgetDescription()
floatgetHeight()
StringgetId()
ResourcegetSource()
Get the object source resource.
floatgetWidth()
voidmarkAsDirty()
voidremoveStyleName(String style)
voidsetAlternateText(String altText)
Sets this component's alternate text that can be presented instead of the component's normal content for accessibility purposes.
voidsetCaption(String caption)
voidsetData(Object data)
Sets the data object, that can be used for any application specific data.
voidsetDescription(String description)
Sets the component's description.
voidsetHeight(float height, Unit unit)
voidsetHeight(String height)
voidsetIcon(Resource icon)
Sets the component's icon.
voidsetId(String id)
voidsetSizeFull()
voidsetSizeUndefined()
voidsetSource(Resource source)
Sets the object source resource.
voidsetStyleName(String style)
voidsetVisible(boolean visible)
voidsetWidth(String width)
voidsetWidth(float width, Unit unit)
voidsetWidthUndefined()