|
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.WList
org.westofj.wui.WSelectList
Presents the user a selection of values as a select box. A single value may be selected.
Constructor Summary | |
WSelectList()
Constructs an empty selection list. |
|
WSelectList(List options)
Constructs a selection list with the specified options. |
|
WSelectList(Object[] options)
Constructs a selection list with the specified options. |
Method Summary | |
Color |
getColor()
Returns the color of the list. |
WFont |
getFont()
Returns the font of the list. |
int |
getVisibleRowCount()
Returns the height of the selection box in visible rows. |
int |
getWidth()
Returns the width of the selection box in pixels. |
protected void |
handleParams(WRunner runner,
String[] values)
|
void |
render(WRunner runner,
WRenderContext context,
PrintWriter out)
Renders the widget to the display. |
void |
setColor(Color color)
Sets the color of the list. |
void |
setFont(WFont font)
Sets the font of the list. |
void |
setVisibleRowCount(int visibleRowCount)
Sets the height of the selection box in visible rows. |
void |
setWidth(int pixelWidth)
Sets the width of the selection box in pixels. |
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 WSelectList()
public WSelectList(List options)
options
- the list of selectable options.public WSelectList(Object[] options)
options
- the array of selectable options.Method Detail |
public Color getColor()
public WFont getFont()
public int getVisibleRowCount()
public int getWidth()
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 setColor(Color color)
color
- The color to set.public void setFont(WFont font)
font
- The font to set.public void setVisibleRowCount(int visibleRowCount)
visibleRowCount
- the height of the selection box in visible rows.public void setWidth(int pixelWidth)
pixelWidth
- the width of the selection box in pixels.
|
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 |