|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.tools.generic.NumberTool
org.springframework.web.servlet.view.velocity.VelocityView.LocaleAwareNumberTool
private static class VelocityView.LocaleAwareNumberTool
Subclass of NumberTool from Velocity Tools, using a passed-in Locale (usually the RequestContext Locale) instead of the default Locale.
RequestContextUtils.getLocale(javax.servlet.http.HttpServletRequest)
Field Summary | |
---|---|
private java.util.Locale |
locale
|
Fields inherited from class org.apache.velocity.tools.generic.NumberTool |
---|
DEFAULT_FORMAT, DEFAULT_FORMAT_KEY, DEFAULT_LOCALE_KEY, LOCK_CONFIG_KEY |
Constructor Summary | |
---|---|
private |
VelocityView.LocaleAwareNumberTool(java.util.Locale locale)
|
Method Summary | |
---|---|
java.util.Locale |
getLocale()
|
Methods inherited from class org.apache.velocity.tools.generic.NumberTool |
---|
configure, configure, currency, format, format, format, getFormat, getNumberFormat, getNumberFormat, getStyleAsInt, integer, number, percent, setFormat, setLocale, toNumber, toNumber, toNumber |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Locale locale
Constructor Detail |
---|
private VelocityView.LocaleAwareNumberTool(java.util.Locale locale)
Method Detail |
---|
public java.util.Locale getLocale()
getLocale
in class org.apache.velocity.tools.generic.NumberTool
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |