WUI : API


org.westofj.wui
Class WMultiSelectList

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WMultiList
          extended byorg.westofj.wui.WMultiSelectList

public class WMultiSelectList
extends WMultiList

Presents a list of selectable options as a scrollable list. Multiple options may be selected at one time.

Version:
$Revision: 1.4 $, $Date: 2004/03/14 22:23:17 $
Author:
bill

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

WMultiSelectList

public WMultiSelectList()
Constructs an empty multiple selection list.


WMultiSelectList

public WMultiSelectList(List options)
Constructs a multiple selection list with the specified options.

Parameters:
options - the list of selectable options.

WMultiSelectList

public WMultiSelectList(Object[] options)
Constructs a multiple selection list with the specified options.

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

getColor

public Color getColor()
Returns the color of the list.

Returns:
Returns the color of the list.

getFont

public WFont getFont()
Returns the font of the list.

Returns:
Returns the font of the list.

getVisibleRowCount

public int getVisibleRowCount()
Returns the number of visible options in the selection box.

Returns:
int the number of visible options in the selection box.

getWidth

public int getWidth()
Returns the pixel width of the selection box.

Returns:
int the pixel width of the selection box.

handleParams

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

render

public void render(WRunner runner,
                   WRenderContext context,
                   PrintWriter out)
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.

setColor

public void setColor(Color color)
Sets the color of the list.

Parameters:
color - The color to set.

setFont

public void setFont(WFont font)
Sets the font of the list.

Parameters:
font - The font to set.

setVisibleRowCount

public void setVisibleRowCount(int visibleRowCount)
Sets the height of the selection box in visible options.

Parameters:
visibleRowCount - the height of the selection box in visible options.

setWidth

public void setWidth(int pixelWidth)
Sets the width of the selection box in pixels.

Parameters:
pixelWidth - the width of the selection box in pixels.

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