com.vaadin.client.ui
Class Icon

java.lang.Object
  extended by UIObject
      extended by com.vaadin.client.ui.Icon
Direct Known Subclasses:
FontIcon, ImageIcon

public abstract class Icon
extends UIObject

An abstract representation of an icon.

Since:
7.2
Author:
Vaadin Ltd

Field Summary
static java.lang.String CLASSNAME
           
 
Constructor Summary
Icon()
           
 
Method Summary
abstract  java.lang.String getUri()
          Gets the current URI for this icon.
abstract  void setAlternateText(java.lang.String alternateText)
          Sets the alternate text for the icon.
abstract  void setUri(java.lang.String uri)
          Sets the URI for the icon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values
Constructor Detail

Icon

public Icon()
Method Detail

setUri

public abstract void setUri(java.lang.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.g FontIcon).

Parameters:
uri - the URI for this icon

getUri

public abstract java.lang.String getUri()
Gets the current URI for this icon.

Returns:
URI in use

setAlternateText

public abstract void setAlternateText(java.lang.String alternateText)
Sets the alternate text for the icon.

Parameters:
alternateText - with the alternate text.


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.