WUI : API


org.westofj.wui
Class WTextArea

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WTextWidget
          extended byorg.westofj.wui.WTextArea

public class WTextArea
extends WTextWidget

A multi-row text input widget.

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

Constructor Summary
WTextArea()
          Constructs a text area input widget.
WTextArea(String text)
          Constructs a text area input widget that initially contains the specified text.
 
Method Summary
 int getColumns()
          Returns the horizontal width of the text area input widget.
 int getRows()
          Returns the vertical height of the text area input widget.
 void render(WRunner runner, WRenderContext context, PrintWriter out)
          Renders the widget to the display.
 void setColumns(int columns)
          Sets the horizontal width of the text area input widget.
 void setRows(int rows)
          Sets the horizontal width of the text area input widget.
 
Methods inherited from class org.westofj.wui.WTextWidget
getColor, getFont, getText, handleParams, setColor, setFont, setText
 
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

WTextArea

public WTextArea()
Constructs a text area input widget.


WTextArea

public WTextArea(String text)
Constructs a text area input widget that initially contains the specified text.

Parameters:
text - the initial text of the widget.
Method Detail

getColumns

public int getColumns()
Returns the horizontal width of the text area input widget.

Returns:
int the horizontal width of the text area input widget.

getRows

public int getRows()
Returns the vertical height of the text area input widget.

Returns:
int the vertical height of the text area input 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.

setColumns

public void setColumns(int columns)
Sets the horizontal width of the text area input widget.

Parameters:
columns - the horizontal width of the text area input widget.

setRows

public void setRows(int rows)
Sets the horizontal width of the text area input widget.

Parameters:
rows - the horizontal width of the text area input widget.

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