Package com.vaadin.client.ui
Class ImageIcon
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.vaadin.client.ui.Icon
-
- com.vaadin.client.ui.ImageIcon
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.HasVisibility
public class ImageIcon extends Icon
A image based implementation ofIcon.The image is loaded from the given URL (
setUri(String)) and displayed in full.- Author:
- Vaadin Ltd
-
-
Constructor Summary
Constructors Constructor Description ImageIcon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetUri()Gets the current URI for this icon.voidsetAlternateText(String alternateText)Sets the alternate text for the icon.voidsetUri(String imageUrl)Sets the URI for the icon.-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, sinkEvents, toString, unsinkEvents
-
-
-
-
Field Detail
-
CLASSNAME
public static final String CLASSNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setUri
public void setUri(String imageUrl)
Description copied from class:IconSets the URI for the icon. The URI should be run troughApplicationConnection.translateVaadinUri(String)before setting.This might be a URL referencing a image (e.g
ImageIcon) or a custom URI (e.gFontIcon).
-
setAlternateText
public void setAlternateText(String alternateText)
Description copied from class:IconSets the alternate text for the icon.- Specified by:
setAlternateTextin classIcon- Parameters:
alternateText- with the alternate text.
-
-