WUI : API


org.westofj.wui
Class WGrabBox

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

public class WGrabBox
extends WMultiList

Presents a list of selectable options as side by side not selected and selected lists. Multiple options may be selected at one time.

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

Constructor Summary
WGrabBox()
          Constructs an empty grab box.
WGrabBox(List options)
          Constructs a grab box with the specified options.
WGrabBox(Object[] options)
          Constructs a grab box with the specified options.
 
Method Summary
 int getSelectPixelWidth()
          Returns the pixel width of the selection lists.
 int getVisibleRowCount()
          Returns the height of the selection lists in visible rows.
protected  void handleParams(WRunner runner, String[] values)
           
 void render(WRunner runner, WRenderContext context, PrintWriter out)
          Renders the widget to the display.
 void setSelectPixelWidth(int selectPixelWidth)
          Sets the pixel width of the selection lists.
 void setVisibleRowCount(int visibleRowCount)
          Sets the height of the selection list in visible rows.
 
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

WGrabBox

public WGrabBox()
Constructs an empty grab box.


WGrabBox

public WGrabBox(List options)
Constructs a grab box with the specified options.

Parameters:
options - the list of selectable options.

WGrabBox

public WGrabBox(Object[] options)
Constructs a grab box with the specified options.

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

getSelectPixelWidth

public int getSelectPixelWidth()
Returns the pixel width of the selection lists.

Returns:
int the pixel width of the selection lists.

getVisibleRowCount

public int getVisibleRowCount()
Returns the height of the selection lists in visible rows.

Returns:
int the height of the selection lists in visible rows.

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

setSelectPixelWidth

public void setSelectPixelWidth(int selectPixelWidth)
Sets the pixel width of the selection lists.

Parameters:
selectPixelWidth - the pixel width of the selection lists.

setVisibleRowCount

public void setVisibleRowCount(int visibleRowCount)
Sets the height of the selection list in visible rows.

Parameters:
visibleRowCount - the height of the selection list in visible rows.

handleParams

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

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