|
WUI : API |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.westofj.wui.WLocalizedText
org.westofj.wui.WParamText
Represents a parameterized localized resource. Maps a bundle name and a key to a resource in a resource bundle.
Constructor Summary | |
WParamText(String bundleName,
String key)
Constructs a parameterized localized text instance. |
|
WParamText(String bundleName,
String key,
List args)
Constructs a parameterized localized text instance. |
Method Summary | |
void |
add(Object arg)
Adds the specified argument to the end of the list of arguments. |
void |
clear()
Removes all arguments. |
List |
getArgs()
Returns an unmodifiable list of the arguments. |
String |
getText(WRunner runner)
Returns the textual view of the instance. |
void |
set(int index,
Object arg)
Sets the value of the argument at the specified index. |
Methods inherited from class org.westofj.wui.WLocalizedText |
equals, getBundleName, getKey, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WParamText(String bundleName, String key)
bundleName
- the name of the resource bundle containing the resource.key
- the name of the resource within the resource bundle.public WParamText(String bundleName, String key, List args)
bundleName
- the name of the resource bundle containing the resource.key
- the name of the resource within the resource bundle.args
- the list of arguments to utilized when constructing the actual text.Method Detail |
public void add(Object arg)
arg
- the argument to add.public void set(int index, Object arg)
index
- the index of the argument.arg
- the value of the argument.public List getArgs()
public void clear()
public String getText(WRunner runner)
WDisplayable
getText
in interface WDisplayable
getText
in class WLocalizedText
|
Copyright (c) 2003 West of J - All rights reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |