|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.util.resource.impl.LabelLoader
public class LabelLoader
The label loader (implementation only).
Used to implement Labels
.
Notice that the encoding of i3-label.properties is assumed to be UTF-8. If it is not the case, please refer to Libraries Properties for configuration (avaible since 3.6.0).
Constructor Summary | |
---|---|
LabelLoader()
|
Method Summary | |
---|---|
java.lang.String |
getLabel(java.lang.String key)
Returns the label of the specified key, or null if not found. |
protected java.lang.String |
getProperty(java.util.Locale locale,
java.lang.String key)
Returns the property without interprets any expression. |
void |
register(LabelLocator locator)
Registers a locator which is used to load i3-label*.properties from other resource, such as servlet contexts. |
void |
reset()
Resets all cached labels and next call to getLabel(java.lang.String)
will cause re-loading i3-label*.proerties. |
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 |
Constructor Detail |
---|
public LabelLoader()
Method Detail |
---|
public java.lang.String getLabel(java.lang.String key)
public VariableResolver setVariableResolver(VariableResolver resolv)
public void register(LabelLocator locator)
public void reset()
getLabel(java.lang.String)
will cause re-loading i3-label*.proerties.
protected java.lang.String getProperty(java.util.Locale locale, java.lang.String key)
To alter its behavior, you might override this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |