A Rich UI image widget presents a graphic.
The image widget supports these properties:
- src, which holds the Web address for
the graphic
- text, which holds the text that is shown
in browsers that cannot display the graphic or when the mouse hovers
over the image
For more information about other supported properties and functions,
see "Widget properties and functions."
The following example renders either a graphic or the word "Gears":
Handler GridDemo type RUIHandler {children = [myImage]}
myImage Image
{
src =
"http://www.ibm.com/developerworks/i/spaces/feature/d-aw-s-alphaworks.jpg",
text = "Gears"
};
end
If you use this widget, you must use the following statement:
import com.ibm.egl.rui.widgets.Image;