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.BodyTagSupport
Support 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.String
CURRENCY
private static java.lang.Class
currencyClass
protected java.lang.String
currencyCode
protected java.lang.String
currencySymbol
private static java.lang.Class[]
GET_INSTANCE_PARAM_TYPES
protected boolean
groupingUsedSpecified
protected boolean
isGroupingUsed
protected int
maxFractionDigits
protected boolean
maxFractionDigitsSpecified
protected int
maxIntegerDigits
protected boolean
maxIntegerDigitsSpecified
protected int
minFractionDigits
protected boolean
minFractionDigitsSpecified
protected int
minIntegerDigits
protected boolean
minIntegerDigitsSpecified
private static java.lang.String
NUMBER
protected java.lang.String
pattern
private static java.lang.String
PERCENT
private int
scope
protected java.lang.String
type
protected java.lang.Object
value
protected boolean
valueSpecified
private java.lang.String
var
-
Constructor Summary
Constructors Constructor Description FormatNumberSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
configureFormatter(java.text.NumberFormat formatter)
private java.text.NumberFormat
createFormatter(java.util.Locale loc)
int
doEndTag()
private void
init()
void
release()
private void
setCurrency(java.text.NumberFormat formatter)
void
setScope(java.lang.String scope)
void
setVar(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:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
-
release
public void release()
- Specified by:
release
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
release
in 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
-
-