|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.util.resource.Labels
public class Labels
Utilities to access labels. A label is a Locale-dependent string that is stored in i3-label*properties.
| Method Summary | |
|---|---|
static java.lang.String |
getLabel(java.lang.String key)
Returns the label of the specified key based on the current Locale, or null if no found. |
static void |
register(LabelLocator locator)
Registers a locator which is used to load i3-label*.properties from other resource, such as servlet contexts. |
static void |
reset()
Resets all cached labels and next call to getLabel(java.lang.String)
will cause re-loading i3-label*.proerties. |
static VariableResolver |
setVariableResolver(VariableResolver resolv)
Sets the variable resolver, which is used if an EL expression is specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final java.lang.String getLabel(java.lang.String key)
The current locale is given by Locales.getCurrent().
public static final void reset()
getLabel(java.lang.String)
will cause re-loading i3-label*.proerties.
public static final VariableResolver setVariableResolver(VariableResolver resolv)
Default: no resolver at all.
public static final void register(LabelLocator locator)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||