WUI : API


org.westofj.wui
Class WImage

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WImage

public class WImage
extends Widget

Renders a graphical image to the display.

Version:
$Revision: 1.4 $, $Date: 2004/03/22 00:34:01 $
Author:
bill

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

WImage

public WImage()
Constructs an image.


WImage

public WImage(String image)
Constructs an image with the specified url.

Parameters:
image - the url of the target image.
Method Detail

getAlt

public WDisplayable getAlt()
Returns the alternate text of the image.

Returns:
WDisplayable the alternate text of the image.

getImage

public String getImage()
Returns the target url of the image.

Returns:
String the target url of the image.

getTitle

public WDisplayable getTitle()
Returns the title of the image.

Returns:
WDisplayable the title of the image.

render

public void render(WRunner runner,
                   WRenderContext context,
                   PrintWriter out)
            throws WRenderException
Description copied from class: Widget
Renders the widget to the display.

Specified by:
render in class Widget
Parameters:
runner - the current runner context.
out - the output for the display.
Throws:
WRenderException

setAlt

public void setAlt(String alt)
Sets the alternate text of the image.

Parameters:
alt - the alternate text of the image.

setAlt

public void setAlt(WDisplayable alt)
Sets the alternate text of the image.

Parameters:
alt - the alternate text of the image.

setImage

public void setImage(String image)
Sets the target url of the image.

Parameters:
image - the target url of the image.

setTitle

public void setTitle(String title)
Sets the title of the image.

Parameters:
title - the title of the image.

setTitle

public void setTitle(WDisplayable title)
Sets the title of the image.

Parameters:
title - the title of the image.

Copyright (c) 2003 West of J - All rights reserved.