Class ImageIcon

  • All Implemented Interfaces:
    com.google.gwt.user.client.ui.HasVisibility

    public class ImageIcon
    extends Icon
    A image based implementation of Icon.

    The image is loaded from the given URL ( setUri(String)) and displayed in full.

    Author:
    Vaadin Ltd
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String CLASSNAME  
      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageIcon()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getUri()
      Gets the current URI for this icon.
      void setAlternateText​(String alternateText)
      Sets the alternate text for the icon.
      void setUri​(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
    • Constructor Detail

      • ImageIcon

        public ImageIcon()
    • Method Detail

      • setAlternateText

        public void setAlternateText​(String alternateText)
        Description copied from class: Icon
        Sets the alternate text for the icon.
        Specified by:
        setAlternateText in class Icon
        Parameters:
        alternateText - with the alternate text.
      • getUri

        public String getUri()
        Description copied from class: Icon
        Gets the current URI for this icon.
        Specified by:
        getUri in class Icon
        Returns:
        URI in use