|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I18NBean
Responsible for fetching internationalised text for a given key.
Field Summary | |
---|---|
static String |
DEFAULT_RESOURCE_BUNDLE
|
Method Summary | |
---|---|
ResourceBundle |
getResourceBundle()
|
String |
getText(Message message)
Gets the i18n text for the specified message, formatting the message's value and arguments with MessageFormat. |
String |
getText(String key)
Get the i18n text for a particular key. |
String |
getText(String key,
List list)
|
String |
getText(String key,
Object[] args)
Get the i18n text for a particular key, formatted through MessageFormat with the given arguments. |
String |
getTextStrict(String i18nKey)
Needed for text that should not be marked up (for example, values for the 'accessKey' attribute in an input element) |
Field Detail |
---|
static final String DEFAULT_RESOURCE_BUNDLE
Method Detail |
---|
String getText(String key)
String getText(String key, Object[] args)
ActionSupport.getText(String, java.util.List)
, but the array form is necessary to work well
with Velocity.
key
- the key to retrieve the i18n text forargs
- an array of arguments to be passed in to the MessageFormat#format for this text
ActionSupport.getText(String, java.util.List)
,
MessageFormat
String getText(String key, List list)
String getText(Message message)
message
- the message to format, containing an i18n key and arguments
String getTextStrict(String i18nKey)
i18nKey
- the key to retrieve localised text for
ResourceBundle getResourceBundle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |