WUI : API


org.westofj.wui
Class WLocalizedText

java.lang.Object
  extended byorg.westofj.wui.WLocalizedText
All Implemented Interfaces:
WDisplayable
Direct Known Subclasses:
WParamText

public class WLocalizedText
extends Object
implements WDisplayable

Represents a localized resource. Maps a bundle name and a key to a resource in a resource bundle.

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

Constructor Summary
WLocalizedText(String bundleName, String key)
          Constructs a localized text instance.
 
Method Summary
 boolean equals(Object object)
           
 String getBundleName()
          Returns the name of the resource bundle.
 String getKey()
          Returns the name of the resource key.
 String getText(WRunner runner)
          Returns the textual view of the instance.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WLocalizedText

public WLocalizedText(String bundleName,
                      String key)
Constructs a localized text instance.

Parameters:
bundleName - the name of the resource bundle containing the resource.
key - the name of the resource within the resource bundle.
Method Detail

equals

public boolean equals(Object object)

getBundleName

public String getBundleName()
Returns the name of the resource bundle.

Returns:
String the name of the resource bundle.

getKey

public String getKey()
Returns the name of the resource key.

Returns:
String the name of the resource key.

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.

hashCode

public int hashCode()

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