|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.backbone.util.ResourceBundleMessageProvider
public class ResourceBundleMessageProvider
Message provider based on ResourceBundle class. Supports locales.
| Constructor Summary | |
|---|---|
ResourceBundleMessageProvider(String resourceName)
Constructor with specified resource bundle name. |
|
| Method Summary | |
|---|---|
Locale |
getLocale()
Gets internal default locale. |
String |
getMessage(Locale messageLocale,
String messageKey)
Gets localized message by messageKey. |
String |
getMessage(String messageKey)
Gets message by key. |
void |
initialize()
Used to initialize message provider. |
void |
setLocale(Locale locale)
Sets internal default locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceBundleMessageProvider(String resourceName)
resourceName - Resource name| Method Detail |
|---|
public String getMessage(String messageKey)
Locale.getDefault().
messageKey - Message key
public String getMessage(Locale messageLocale,
String messageKey)
messageLocale - Message localemessageKey - Message key
public final void initialize()
public Locale getLocale()
public void setLocale(Locale locale)
locale - Locale
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||