|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMessages
A set of localized message strings. This is somewhat like
a ResourceBundle
, but with more
flexibility about where the messages come from. In addition,
it includes methods similar to MessageFormat
for formatting the strings.
IComponent.getMessages()
,
IComponentMessagesSource
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. |
Method Detail |
---|
String getMessage(String key)
String getMessage(String key, String defaultValue)
String format(String key, Object[] arguments)
MessageFormat.format(java.lang.String, java.lang.Object[])
.
In addition, special processing occurs for any of the arguments that
inherit from Throwable
: such arguments are replaced with the Throwable's message
(if non blank), or the Throwable's class name (if the message is blank).
key
- the key used to obtain a localized pattern using
getMessage(String)
arguments
- passed to the formatterString format(String key, Object argument)
format(String, Object[])
.
String format(String key, Object argument1, Object argument2)
format(String, Object[])
.
String format(String key, Object argument1, Object argument2, Object argument3)
format(String, Object[])
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |