|
||||||||||
| 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.rt.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(java.lang.String currency)
Sets the currency code. |
void |
setCurrencySymbol(java.lang.String currencySymbol)
Sets the currency symbol. |
void |
setGroupingUsed(boolean groupingUsed)
Sets the groupingUsed expression |
void |
setMaxFractionDigits(int maxFractionDigits)
Sets the maximum digits allowed in the fraction portion. |
void |
setMaxIntegerDigits(int maxIntegerDigits)
Sets the maximum digits allowed in the integer portion. |
void |
setMinFractionDigits(int minFractionDigits)
Sets the minimum digits allowed in the fraction portion. |
void |
setMinIntegerDigits(int minIntegerDigits)
Sets the minimum digits allowed in the integer portion. |
void |
setPattern(java.lang.String pattern)
Sets the number pattern. |
void |
setScope(java.lang.String scope)
Sets the variable scope. |
void |
setType(java.lang.String type)
Sets the formatting type. |
void |
setValue(java.lang.Object 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(java.lang.Object value)
throws JspException
value - the value.
JspExceptionpublic void setType(java.lang.String type)
type - the type.public void setPattern(java.lang.String pattern)
pattern - the number pattern.public void setCurrencyCode(java.lang.String currency)
currencyCode - the currency code.public void setCurrencySymbol(java.lang.String currencySymbol)
currencySymbol - the currency symbol.public void setGroupingUsed(boolean groupingUsed)
groupingUsed - true if grouping is usedpublic void setMinIntegerDigits(int minIntegerDigits)
minIntegerDigits - the digits.public void setMaxIntegerDigits(int maxIntegerDigits)
maxIntegerDigits - the digits.public void setMinFractionDigits(int minFractionDigits)
minFractionDigits - the digits.public void setMaxFractionDigits(int 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 TagdoEndTag in class TagSupportJspException
protected java.text.NumberFormat getFormat()
throws JspException
JspException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||