Package com.vaadin.client.ui
Class Icon
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.vaadin.client.ui.Icon
-
-
Constructor Summary
Constructors Constructor Description Icon()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract String
getUri()
Gets the current URI for this icon.abstract void
setAlternateText(String alternateText)
Sets the alternate text for the icon.abstract void
setUri(String uri)
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 abstract void setUri(String uri)
Sets 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
).- Parameters:
uri
- the URI for this icon
-
getUri
public abstract String getUri()
Gets the current URI for this icon.- Returns:
- URI in use
-
setAlternateText
public abstract void setAlternateText(String alternateText)
Sets the alternate text for the icon.- Parameters:
alternateText
- with the alternate text.
-
-