| java.lang.Object org.zkoss.util.resource.Labels
Labels | public class Labels (Code) | | Utilities to access labels. A label is a Locale-dependent string
that is stored in i3-label*properties.
author: tomyeh |
Method Summary | |
final public static String | getLabel(String key) Returns the label of the specified key based
on the current Locale, or null if no found. | final public static void | register(LabelLocator locator) Registers a locator which is used to load i3-label*.properties
from other resource, such as servlet contexts. | final public static void | reset() Resets all cached labels and next call to
Labels.getLabel will cause re-loading i3-label*.proerties. | final public static VariableResolver | setVariableResolver(VariableResolver resolv) Sets the variable resolver, which is used if an EL expression
is specified. |
register | final public static void register(LabelLocator locator)(Code) | | Registers a locator which is used to load i3-label*.properties
from other resource, such as servlet contexts.
|
reset | final public static void reset()(Code) | | Resets all cached labels and next call to
Labels.getLabel will cause re-loading i3-label*.proerties.
|
setVariableResolver | final public static VariableResolver setVariableResolver(VariableResolver resolv)(Code) | | Sets the variable resolver, which is used if an EL expression
is specified.
Default: no resolver at all.
the previous resolver, or null if no resolver. |
|
|