Rich UI Image

A Rich UI image widget presents a graphic.

The following properties are supported:
  • src, which holds the web address for the graphic
  • text, which holds the text shown in browsers that cannot display the graphic or when the mouse hovers over the image

Other supported properties and functions are described in Widget properties and functions.

The following example renders a graphic or the word "Gears":
Handler GridDemo type RUIHandler {initialUI = [myImage]}

   myImage Image
   {
      src = 
      "http://www.ibm.com/developerworks/i/spaces/feature/d-aw-s-alphaworks.jpg",
      text = "Gears"
   };

end
Use of this widget requires the following statement:
import com.ibm.egl.rui.widgets.Image;