Class FormatNumberSupport
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.apache.taglibs.standard.tag.common.fmt.FormatNumberSupport
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
- Direct Known Subclasses:
FormatNumberTag,FormatNumberTag
public abstract class FormatNumberSupport extends javax.servlet.jsp.tagext.BodyTagSupportSupport for tag handlers for <formatNumber>, the number formatting tag in JSTL 1.0.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringCURRENCYprivate static java.lang.ClasscurrencyClassprotected java.lang.StringcurrencyCodeprotected java.lang.StringcurrencySymbolprivate static java.lang.Class[]GET_INSTANCE_PARAM_TYPESprotected booleangroupingUsedSpecifiedprotected booleanisGroupingUsedprotected intmaxFractionDigitsprotected booleanmaxFractionDigitsSpecifiedprotected intmaxIntegerDigitsprotected booleanmaxIntegerDigitsSpecifiedprotected intminFractionDigitsprotected booleanminFractionDigitsSpecifiedprotected intminIntegerDigitsprotected booleanminIntegerDigitsSpecifiedprivate static java.lang.StringNUMBERprotected java.lang.Stringpatternprivate static java.lang.StringPERCENTprivate intscopeprotected java.lang.Stringtypeprotected java.lang.Objectvalueprotected booleanvalueSpecifiedprivate java.lang.Stringvar
-
Constructor Summary
Constructors Constructor Description FormatNumberSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidconfigureFormatter(java.text.NumberFormat formatter)private java.text.NumberFormatcreateFormatter(java.util.Locale loc)intdoEndTag()private voidinit()voidrelease()private voidsetCurrency(java.text.NumberFormat formatter)voidsetScope(java.lang.String scope)voidsetVar(java.lang.String var)-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Field Detail
-
GET_INSTANCE_PARAM_TYPES
private static final java.lang.Class[] GET_INSTANCE_PARAM_TYPES
-
NUMBER
private static final java.lang.String NUMBER
- See Also:
- Constant Field Values
-
CURRENCY
private static final java.lang.String CURRENCY
- See Also:
- Constant Field Values
-
PERCENT
private static final java.lang.String PERCENT
- See Also:
- Constant Field Values
-
value
protected java.lang.Object value
-
valueSpecified
protected boolean valueSpecified
-
type
protected java.lang.String type
-
pattern
protected java.lang.String pattern
-
currencyCode
protected java.lang.String currencyCode
-
currencySymbol
protected java.lang.String currencySymbol
-
isGroupingUsed
protected boolean isGroupingUsed
-
groupingUsedSpecified
protected boolean groupingUsedSpecified
-
maxIntegerDigits
protected int maxIntegerDigits
-
maxIntegerDigitsSpecified
protected boolean maxIntegerDigitsSpecified
-
minIntegerDigits
protected int minIntegerDigits
-
minIntegerDigitsSpecified
protected boolean minIntegerDigitsSpecified
-
maxFractionDigits
protected int maxFractionDigits
-
maxFractionDigitsSpecified
protected boolean maxFractionDigitsSpecified
-
minFractionDigits
protected int minFractionDigits
-
minFractionDigitsSpecified
protected boolean minFractionDigitsSpecified
-
var
private java.lang.String var
-
scope
private int scope
-
currencyClass
private static java.lang.Class currencyClass
-
-
Method Detail
-
init
private void init()
-
setVar
public void setVar(java.lang.String var)
-
setScope
public void setScope(java.lang.String scope)
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException
-
release
public void release()
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classjavax.servlet.jsp.tagext.BodyTagSupport
-
createFormatter
private java.text.NumberFormat createFormatter(java.util.Locale loc) throws javax.servlet.jsp.JspException- Throws:
javax.servlet.jsp.JspException
-
configureFormatter
private void configureFormatter(java.text.NumberFormat formatter)
-
setCurrency
private void setCurrency(java.text.NumberFormat formatter) throws java.lang.Exception- Throws:
java.lang.Exception
-
-