WUI : API


org.westofj.wui
Class WTextWidget

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WTextWidget
Direct Known Subclasses:
WTextArea, WTextField

public abstract class WTextWidget
extends Widget

Implements base functionality of text input widgets.

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

Constructor Summary
WTextWidget()
          Constructs a text widget.
WTextWidget(String text)
          Constructs a text widget that initially contains the specified text.
 
Method Summary
 Color getColor()
          Returns the color.
 WFont getFont()
          Returns the font.
 String getText()
          Returns the text value of the widget.
protected  void handleParams(WRunner runner, String[] values)
           
 void setColor(Color color)
          Sets the color.
 void setFont(WFont font)
          Sets the font.
 void setText(String text)
          Sets the text value of the widget.
 
Methods inherited from class org.westofj.wui.Widget
addChangeListener, getRunner, handleNoParams, hasChangeListeners, removeChangeListener, render, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WTextWidget

public WTextWidget()
Constructs a text widget.


WTextWidget

public WTextWidget(String text)
Constructs a text widget that initially contains the specified text.

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

getColor

public Color getColor()
Returns the color.

Returns:
Returns the color.

getFont

public WFont getFont()
Returns the font.

Returns:
Returns the font.

getText

public String getText()
Returns the text value of the widget.

Returns:
String the text value of the widget.

handleParams

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

setColor

public void setColor(Color color)
Sets the color.

Parameters:
color - The color to set.

setFont

public void setFont(WFont font)
Sets the font.

Parameters:
font - The font to set.

setText

public void setText(String text)
Sets the text value of the widget.

Parameters:
text - the text value of the widget.

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