|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.Widget
org.westofj.wui.WImage
Renders a graphical image to the display.
Constructor Summary | |
WImage()
Constructs an image. |
|
WImage(String image)
Constructs an image with the specified url. |
Method Summary | |
WDisplayable |
getAlt()
Returns the alternate text of the image. |
String |
getImage()
Returns the target url of the image. |
WDisplayable |
getTitle()
Returns the title of the image. |
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setAlt(String alt)
Sets the alternate text of the image. |
void |
setAlt(WDisplayable alt)
Sets the alternate text of the image. |
void |
setImage(String image)
Sets the target url of the image. |
void |
setTitle(String title)
Sets the title of the image. |
void |
setTitle(WDisplayable title)
Sets the title of the image. |
Methods inherited from class org.westofj.wui.Widget |
addChangeListener, getRunner, handleNoParams, handleParams, hasChangeListeners, removeChangeListener, stateChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WImage()
public WImage(String image)
image
- the url of the target image.Method Detail |
public WDisplayable getAlt()
public String getImage()
public WDisplayable getTitle()
public void render(WRunner runner, WRenderContext context, PrintWriter out) throws WRenderException
Widget
render
in class Widget
runner
- the current runner context.out
- the output for the display.
WRenderException
public void setAlt(String alt)
alt
- the alternate text of the image.public void setAlt(WDisplayable alt)
alt
- the alternate text of the image.public void setImage(String image)
image
- the target url of the image.public void setTitle(String title)
title
- the title of the image.public void setTitle(WDisplayable title)
title
- the title of the image.
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |