We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
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 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:
-
-
Method Detail
-
setUri
public abstract void setUri(String uri)
Sets the URI for the icon. The URI should be run trough
ApplicationConnection.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.
-
-