|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.westofj.wui.Widget org.westofj.wui.WList org.westofj.wui.WRadioList
Presents the user a selection of values as a set of radio buttons. A single value may be selected.
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 |
public WRadioList()
public WRadioList(List options)
options
- the list of selectable options.public WRadioList(Object[] options)
options
- the array of selectable options.Method Detail |
public Color getBackgroundColor()
public int getBorder()
public Color getBorderColor()
public WBorderStyle getBorderStyle()
public WLengthUnit getBorderUnit()
public Color getColor()
public WFont getFont()
protected void handleParams(WRunner runner, String[] values)
handleParams
in class Widget
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 setBackgroundColor(Color backgroundColor)
backgroundColor
- The background color to set.public void setBorder(int border)
border
- The border scalar value to set.public void setBorder(int border, WLengthUnit borderUnit)
border
- the scalar value of the border.borderUnit
- the units of the scalar value.public void setBorder(int border, WLengthUnit borderUnit, Color borderColor, WBorderStyle borderStyle)
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.public void setBorderColor(Color borderColor)
borderColor
- The border color to set.public void setBorderStyle(WBorderStyle borderStyle)
borderStyle
- The border style to set.public void setBorderUnit(WLengthUnit borderUnit)
borderUnit
- The border unit type to set.public void setColor(Color color)
color
- The color to set.public void setFont(WFont font)
font
- The font to set.
|
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 |