WUI : API


org.westofj.wui
Class WRadioList

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WList
          extended byorg.westofj.wui.WRadioList

public class WRadioList
extends WList

Presents the user a selection of values as a set of radio buttons. A single value may be selected.

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

Constructor Summary
WRadioList()
          Constructs an empty radio list.
WRadioList(List options)
          Constructs a radio list with the specified options.
WRadioList(Object[] options)
          Constructs a radio list with the specified options.
 
Method Summary
 Color getBackgroundColor()
          Returns the background color.
 int getBorder()
          Returns the border scalar value.
 Color getBorderColor()
          Returns the border color.
 WBorderStyle getBorderStyle()
          Returns the border style.
 WLengthUnit getBorderUnit()
          Returns the border unit type.
 Color getColor()
          Returns the color.
 WFont getFont()
          Returns the font.
protected  void handleParams(WRunner runner, String[] values)
           
 void render(WRunner runner, WRenderContext context, PrintWriter out)
          Renders the widget to the display.
 void setBackgroundColor(Color backgroundColor)
          Sets the background color.
 void setBorder(int border)
          Sets the border scalar value.
 void setBorder(int border, WLengthUnit borderUnit)
          Sets the border.
 void setBorder(int border, WLengthUnit borderUnit, Color borderColor, WBorderStyle borderStyle)
          Sets the border.
 void setBorderColor(Color borderColor)
          Sets the border color.
 void setBorderStyle(WBorderStyle borderStyle)
          Sets the border style.
 void setBorderUnit(WLengthUnit borderUnit)
          Sets the border unit type.
 void setColor(Color color)
          Sets the color.
 void setFont(WFont font)
          Sets the font.
 
Methods inherited from class org.westofj.wui.WList
clearSelection, getOptions, getSelectedIndex, getSelectedValue, isSelectedIndex, setOptions, setOptions, setSelectedIndex, setSelectedValue
 
Methods inherited from class org.westofj.wui.Widget
addChangeListener, getRunner, handleNoParams, hasChangeListeners, removeChangeListener, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WRadioList

public WRadioList()
Constructs an empty radio list.


WRadioList

public WRadioList(List options)
Constructs a radio list with the specified options.

Parameters:
options - the list of selectable options.

WRadioList

public WRadioList(Object[] options)
Constructs a radio list with the specified options.

Parameters:
options - the array of selectable options.
Method Detail

getBackgroundColor

public Color getBackgroundColor()
Returns the background color.

Returns:
Returns the backgroundColor.

getBorder

public int getBorder()
Returns the border scalar value.

Returns:
Returns the border scalar value.

getBorderColor

public Color getBorderColor()
Returns the border color.

Returns:
Returns the border color.

getBorderStyle

public WBorderStyle getBorderStyle()
Returns the border style.

Returns:
Returns the border style.

getBorderUnit

public WLengthUnit getBorderUnit()
Returns the border unit type.

Returns:
Returns the border unit type.

getColor

public Color getColor()
Returns the color.

Returns:
Returns the color.

getFont

public WFont getFont()
Returns the font.

Returns:
Returns the font.

handleParams

protected void handleParams(WRunner runner,
                            String[] values)
Overrides:
handleParams in class Widget

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

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)
Sets the background color.

Parameters:
backgroundColor - The background color to set.

setBorder

public void setBorder(int border)
Sets the border scalar value.

Parameters:
border - The border scalar value to set.

setBorder

public void setBorder(int border,
                      WLengthUnit borderUnit)
Sets the border.

Parameters:
border - the scalar value of the border.
borderUnit - the units of the scalar value.

setBorder

public void setBorder(int border,
                      WLengthUnit borderUnit,
                      Color borderColor,
                      WBorderStyle borderStyle)
Sets the border.

Parameters:
border - the scalar value of the border.
borderUnit - the units of the scalar value.
borderColor - the color of the border.
borderStyle - the style of the border.

setBorderColor

public void setBorderColor(Color borderColor)
Sets the border color.

Parameters:
borderColor - The border color to set.

setBorderStyle

public void setBorderStyle(WBorderStyle borderStyle)
Sets the border style.

Parameters:
borderStyle - The border style to set.

setBorderUnit

public void setBorderUnit(WLengthUnit borderUnit)
Sets the border unit type.

Parameters:
borderUnit - The border unit type to set.

setColor

public void setColor(Color color)
Sets the color.

Parameters:
color - The color to set.

setFont

public void setFont(WFont font)
Sets the font.

Parameters:
font - The font to set.

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