com.caucho.jstl.el
Class FormatNumberTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.caucho.jstl.el.FormatNumberTag
All Implemented Interfaces:
java.io.Serializable, BodyTag, IterationTag, JspTag, Tag

public class FormatNumberTag
extends BodyTagSupport

Looks up an i18n message from a bundle and prints it.

See Also:
Serialized Form

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

FormatNumberTag

public FormatNumberTag()
Method Detail

setValue

public void setValue(Expr value)
Sets the formatting value.

Parameters:
value - the JSP-EL expression for the value.

setType

public void setType(Expr type)
Sets the formatting type.

Parameters:
type - the JSP-EL expression for the type.

setPattern

public void setPattern(Expr pattern)
Sets the number pattern.

Parameters:
pattern - the JSP-EL expression for the number pattern.

setCurrencyCode

public void setCurrencyCode(Expr currencyCode)
Sets the currency code.

Parameters:
currencyCode - the JSP-EL expression for the currency code.

setCurrencySymbol

public void setCurrencySymbol(Expr currencySymbol)
Sets the currency symbol.

Parameters:
currencySymbol - the JSP-EL expression for the currency symbol.

setGroupingUsed

public void setGroupingUsed(Expr groupingUsed)
Sets the groupingUsed expression

Parameters:
groupingUsed - the JSP-EL expression for the grouping pattern.

setMinIntegerDigits

public void setMinIntegerDigits(Expr minIntegerDigits)
Sets the minimum digits allowed in the integer portion.

Parameters:
minIntegerDigits - the JSP-EL expression for the digits.

setMaxIntegerDigits

public void setMaxIntegerDigits(Expr maxIntegerDigits)
Sets the maximum digits allowed in the integer portion.

Parameters:
maxIntegerDigits - the JSP-EL expression for the digits.

setMinFractionDigits

public void setMinFractionDigits(Expr minFractionDigits)
Sets the minimum digits allowed in the fraction portion.

Parameters:
minFractionDigits - the JSP-EL expression for the digits.

setMaxFractionDigits

public void setMaxFractionDigits(Expr maxFractionDigits)
Sets the maximum digits allowed in the fraction portion.

Parameters:
maxFractionDigits - the JSP-EL expression for the digits.

setVar

public void setVar(java.lang.String var)
Sets the variable name.

Parameters:
var - the variable name to store the value in.

setScope

public void setScope(java.lang.String scope)
Sets the variable scope.

Parameters:
scope - the variable scope to store the value in.

doEndTag

public int doEndTag()
             throws JspException
Process the tag.

Specified by:
doEndTag in interface Tag
Overrides:
doEndTag in class TagSupport
Returns:
EVAL_PAGE to continue the page SKIP_PAGE to stop.
Throws:
JspException

getFormat

protected java.text.NumberFormat getFormat()
                                    throws JspException
Throws:
JspException