|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LocaleUtilities
Method Summary | |
---|---|
void |
addListener(LocaleListener l)
|
java.util.Locale |
getCurrentLocale()
Returns the current locale being used. |
LocaleDecoder[] |
getDecoders()
|
java.lang.String |
getLocalisedMessageText(java.lang.String key)
|
java.lang.String |
getLocalisedMessageText(java.lang.String key,
java.lang.String[] params)
|
boolean |
hasLocalisedMessageText(java.lang.String key)
Returns true if there exists a message string with the given key name. |
void |
integrateLocalisedMessageBundle(java.util.Properties p)
Allows plugins to dynamically pass in a properties object to be used for message text translation. |
void |
integrateLocalisedMessageBundle(java.util.ResourceBundle rb)
Allows plugins to dynamically pass in a resource bundle to be used for message text translation. |
void |
integrateLocalisedMessageBundle(java.lang.String resource_bundle_prefix)
Allows programatic registration of plugin messages, as opposed to using the plugin.langfile property in plugin.properties If you message base file is, say, a.b.c.Messages.properties, pass a.b.c.Messages |
java.lang.String |
localise(java.lang.String key)
An alias for getLocalisedMessageText(String) which returns
null if there is no message string definition for the given
key. |
void |
removeListener(LocaleListener l)
|
Method Detail |
---|
void integrateLocalisedMessageBundle(java.lang.String resource_bundle_prefix)
resource_bundle_prefix
- void integrateLocalisedMessageBundle(java.util.ResourceBundle rb)
void integrateLocalisedMessageBundle(java.util.Properties p)
java.lang.String getLocalisedMessageText(java.lang.String key)
java.lang.String getLocalisedMessageText(java.lang.String key, java.lang.String[] params)
boolean hasLocalisedMessageText(java.lang.String key)
java.lang.String localise(java.lang.String key)
getLocalisedMessageText(String)
which returns
null if there is no message string definition for the given
key.
LocaleDecoder[] getDecoders()
void addListener(LocaleListener l)
void removeListener(LocaleListener l)
java.util.Locale getCurrentLocale()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |