|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.caucho.jstl.el.FormatNumberTag
public class FormatNumberTag
Looks up an i18n message from a bundle and prints it.
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
---|
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Constructor Summary | |
---|---|
FormatNumberTag()
|
Method Summary | |
---|---|
int |
doEndTag()
Process the tag. |
protected java.text.NumberFormat |
getFormat()
|
void |
setCurrencyCode(Expr currencyCode)
Sets the currency code. |
void |
setCurrencySymbol(Expr currencySymbol)
Sets the currency symbol. |
void |
setGroupingUsed(Expr groupingUsed)
Sets the groupingUsed expression |
void |
setMaxFractionDigits(Expr maxFractionDigits)
Sets the maximum digits allowed in the fraction portion. |
void |
setMaxIntegerDigits(Expr maxIntegerDigits)
Sets the maximum digits allowed in the integer portion. |
void |
setMinFractionDigits(Expr minFractionDigits)
Sets the minimum digits allowed in the fraction portion. |
void |
setMinIntegerDigits(Expr minIntegerDigits)
Sets the minimum digits allowed in the integer portion. |
void |
setPattern(Expr pattern)
Sets the number pattern. |
void |
setScope(java.lang.String scope)
Sets the variable scope. |
void |
setType(Expr type)
Sets the formatting type. |
void |
setValue(Expr value)
Sets the formatting value. |
void |
setVar(java.lang.String var)
Sets the variable name. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Constructor Detail |
---|
public FormatNumberTag()
Method Detail |
---|
public void setValue(Expr value)
value
- the JSP-EL expression for the value.public void setType(Expr type)
type
- the JSP-EL expression for the type.public void setPattern(Expr pattern)
pattern
- the JSP-EL expression for the number pattern.public void setCurrencyCode(Expr currencyCode)
currencyCode
- the JSP-EL expression for the currency code.public void setCurrencySymbol(Expr currencySymbol)
currencySymbol
- the JSP-EL expression for the currency symbol.public void setGroupingUsed(Expr groupingUsed)
groupingUsed
- the JSP-EL expression for the grouping pattern.public void setMinIntegerDigits(Expr minIntegerDigits)
minIntegerDigits
- the JSP-EL expression for the digits.public void setMaxIntegerDigits(Expr maxIntegerDigits)
maxIntegerDigits
- the JSP-EL expression for the digits.public void setMinFractionDigits(Expr minFractionDigits)
minFractionDigits
- the JSP-EL expression for the digits.public void setMaxFractionDigits(Expr maxFractionDigits)
maxFractionDigits
- the JSP-EL expression for the digits.public void setVar(java.lang.String var)
var
- the variable name to store the value in.public void setScope(java.lang.String scope)
scope
- the variable scope to store the value in.public int doEndTag() throws JspException
doEndTag
in interface Tag
doEndTag
in class TagSupport
JspException
protected java.text.NumberFormat getFormat() throws JspException
JspException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |