|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WLocalizedStrings
public abstract class WLocalizedStrings
An abstract class that provides support for localized strings.
This abstract class provides the content to localized WStrings, by resolving the key to a string using the current application locale.
WString.tr(String key),
WApplication.setLocalizedStrings(WLocalizedStrings translator)| Constructor Summary | |
|---|---|
WLocalizedStrings()
|
|
| Method Summary | |
|---|---|
void |
hibernate()
Purges memory resources, if possible. |
void |
refresh()
Rereads the message resources. |
abstract java.lang.String |
resolveKey(java.lang.String key)
Resolves a key in the current locale. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WLocalizedStrings()
| Method Detail |
|---|
public void refresh()
Purge any cached key/values, if applicable.
The default implementation does nothing.
public void hibernate()
This is called afer event handling, and is an opportunity to conserve memory inbetween events, by freeing memory used for cached key/value bindings, if applicable.
The default implementation does nothing.
public abstract java.lang.String resolveKey(java.lang.String key)
This method is used by WString to obtain the UTF8 value
corresponding to a key in the current locale.
Returns the value if the key could be resolved. Returns null
otherwise.
WApplication.getLocale(),
WString.tr(String key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||