|
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.WMultiList org.westofj.wui.WMultiSelectList
Presents a list of selectable options as a scrollable list. Multiple options may be selected at one time.
Constructor Summary | |
WMultiSelectList()
Constructs an empty multiple selection list. |
|
WMultiSelectList(List options)
Constructs a multiple selection list with the specified options. |
|
WMultiSelectList(Object[] options)
Constructs a multiple 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 number of visible options in the selection box. |
int |
getWidth()
Returns the pixel width of the selection box. |
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 options. |
void |
setWidth(int pixelWidth)
Sets the width of the selection box in pixels. |
Methods inherited from class org.westofj.wui.WMultiList |
addSelectedIndex, clearSelection, getOptions, getSelectedIndices, getSelectedValues, isSelectedIndex, removeSelectedIndex, selectAll, setOptions, setOptions, setSelectedIndices, setSelectedIndices, setSelectedValues, setSelectedValues |
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 WMultiSelectList()
public WMultiSelectList(List options)
options
- the list of selectable options.public WMultiSelectList(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)
Widget
render
in class Widget
runner
- the current runner context.out
- the output for the display.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
options.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 |