|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tapestry.engine.ComponentMessages
Implementation of IMessages
. This is basically
a wrapper around an instance of Properties
. This ensures
that the properties are, in fact, read-only (which ensures that
they don't have to be synchronized).
Constructor Summary | |
ComponentMessages(Locale locale,
Properties properties)
|
Method Summary | |
String |
format(String key,
Object argument)
Convienience method for invoking format(String, Object[]) . |
String |
format(String key,
Object[] arguments)
Formats a string, using MessageFormat.format(java.lang.String, java.lang.Object[]) . |
String |
format(String key,
Object argument1,
Object argument2)
Convienience method for invoking format(String, Object[]) . |
String |
format(String key,
Object argument1,
Object argument2,
Object argument3)
Convienience method for invoking format(String, Object[]) . |
String |
getMessage(String key)
Searches for a localized string with the given key. |
String |
getMessage(String key,
String defaultValue)
Searches for a localized string with the given key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentMessages(Locale locale, Properties properties)
Method Detail |
public String getMessage(String key, String defaultValue)
IMessages
getMessage
in interface IMessages
public String getMessage(String key)
IMessages
getMessage
in interface IMessages
public String format(String key, Object argument1, Object argument2, Object argument3)
IMessages
IMessages.format(String, Object[])
.
format
in interface IMessages
public String format(String key, Object argument1, Object argument2)
IMessages
IMessages.format(String, Object[])
.
format
in interface IMessages
public String format(String key, Object argument)
IMessages
IMessages.format(String, Object[])
.
format
in interface IMessages
public String format(String key, Object[] arguments)
IMessages
MessageFormat.format(java.lang.String, java.lang.Object[])
.
format
in interface IMessages
key
- the key used to obtain a localized pattern using
IMessages.getMessage(String)
arguments
- passed to the formatter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |