WUI : API


org.westofj.wui
Class WStringLabel

java.lang.Object
  extended byorg.westofj.wui.Widget
      extended byorg.westofj.wui.WLabelWidget
          extended byorg.westofj.wui.WStringLabel
All Implemented Interfaces:
WDisplayable

public class WStringLabel
extends WLabelWidget

A string based label. This class is useful for labels where the value is not contained within a resource bundle.

Version:
$Revision: 1.3 $, $Date: 2004/03/08 01:57:35 $
Author:
bill

Constructor Summary
WStringLabel()
          Constructs a string label.
WStringLabel(String text)
          Constructs a string label with the specified text.
WStringLabel(String text, WFont font)
          Constructs a string label with the specified text and font.
WStringLabel(String text, WFont font, Color color)
          Constructs a string label with the specified text, font and color.
 
Method Summary
 String getText()
          Returns the text of the label.
 String getText(WRunner runner)
          Returns the textual view of the instance.
 void setText(String text)
          Sets the text of the label.
 
Methods inherited from class org.westofj.wui.WLabelWidget
getColor, getFont, render, setColor, setFont
 
Methods inherited from class org.westofj.wui.Widget
addChangeListener, getRunner, handleNoParams, handleParams, hasChangeListeners, removeChangeListener, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WStringLabel

public WStringLabel()
Constructs a string label.


WStringLabel

public WStringLabel(String text)
Constructs a string label with the specified text.

Parameters:
text - the text of the label.

WStringLabel

public WStringLabel(String text,
                    WFont font)
Constructs a string label with the specified text and font.

Parameters:
text - the text of the label.

WStringLabel

public WStringLabel(String text,
                    WFont font,
                    Color color)
Constructs a string label with the specified text, font and color.

Parameters:
text - the text of the label.
Method Detail

getText

public String getText()
Returns the text of the label.

Returns:
String the text of the label.

getText

public String getText(WRunner runner)
Description copied from interface: WDisplayable
Returns the textual view of the instance.

Parameters:
runner - the current runner context.
Returns:
String the textual view of the instance.

setText

public void setText(String text)
Sets the text of the label.

Parameters:
text - the text of the label.

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