WUI : API


org.westofj.wui
Class WSpacer

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

public class WSpacer
extends Widget

Adds space to the display.

Version:
$Revision: 1.3 $, $Date: 2004/03/14 21:27:46 $
Author:
bill

Constructor Summary
WSpacer()
          Constructs a spacer widget.
WSpacer(int width, int height)
          Constructs a spacer widget with the specified width and height.
 
Method Summary
 int getHeight()
          Returns the height of the spacer.
 int getWidth()
          Returns the width of the spacer.
 void render(WRunner runner, WRenderContext context, PrintWriter out)
          Renders the widget to the display.
 void setHeight(int height)
          Sets the height of the spacer.
 void setWidth(int width)
          Sets the width of the spacer.
 
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

WSpacer

public WSpacer()
Constructs a spacer widget.


WSpacer

public WSpacer(int width,
               int height)
Constructs a spacer widget with the specified width and height.

Parameters:
width - the width of the spacer.
height - the height of the spacer.
Method Detail

getHeight

public int getHeight()
Returns the height of the spacer.

Returns:
int the height of the spacer.

getWidth

public int getWidth()
Returns the width of the spacer.

Returns:
int the width of the spacer.

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

setHeight

public void setHeight(int height)
Sets the height of the spacer.

Parameters:
height - the height of the spacer.

setWidth

public void setWidth(int width)
Sets the width of the spacer.

Parameters:
width - the width of the spacer.

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