WUI : API


org.westofj.wui
Class WText

java.lang.Object
  extended byorg.westofj.wui.WText
All Implemented Interfaces:
WDisplayable

public class WText
extends Object
implements WDisplayable

An implementation of WDisplayable that wraps a String.

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

Constructor Summary
WText(String text)
          Constructs a text instance with the specified text.
 
Method Summary
 boolean equals(Object object)
           
 String getText()
          Returns the text value.
 String getText(WRunner runner)
          Returns the textual view of the instance.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WText

public WText(String text)
Constructs a text instance with the specified text.

Parameters:
text - the text value of the text instance.
Method Detail

getText

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

Specified by:
getText in interface WDisplayable
Parameters:
runner - the current runner context.
Returns:
String the textual view of the instance.

getText

public String getText()
Returns the text value.

Returns:
String the text value.

equals

public boolean equals(Object object)

hashCode

public int hashCode()

toString

public String toString()

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