|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.TagSupport com.cc.framework.taglib.convert.ConverterTag com.cc.framework.taglib.convert.ConvertNumberTag
Complex Number Converter as used in the JSF Specification
Field Summary | |
private java.lang.String |
currencyCode_
|
private java.lang.String |
currencySymbol_
|
private boolean |
groupingUsed_
|
private boolean |
integerOnly_
|
private java.lang.String |
locale_
|
private int |
maxFractionDigits_
|
private boolean |
maxFractionDigitsSpecified
|
private int |
maxIntegerDigits_
|
private boolean |
maxIntegerDigitsSpecified
|
private int |
minFractionDigits_
|
private boolean |
minFractionDigitsSpecified
|
private int |
minIntegerDigits_
|
private boolean |
minIntegerDigitsSpecified
|
private java.lang.String |
pattern_
|
private static long |
serialVersionUID
Serial Version UID |
private java.lang.String |
type_
|
Fields inherited from class com.cc.framework.taglib.convert.ConverterTag |
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
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 | |
ConvertNumberTag()
Constructor |
Method Summary | |
Converter |
doCreateConverter()
Template method is called to create the concrete Converter instance |
private void |
init()
Initializes all internal members |
void |
release()
|
void |
setCurrencyCode(java.lang.String currencyCode)
ISO 4217 currency code, applied only when formatting currencies. |
void |
setCurrencySymbol(java.lang.String currencySymbol)
Currency symbol, applied only when formatting currencies. |
void |
setGroupingUsed(java.lang.String groupingUsed)
Flag specifying whether formatted output will contain grouping separators. |
void |
setIntegerOnly(java.lang.String integerOnly)
Flag specifying whether only the integer part of the value will be formatted and parsed. |
void |
setLocale(java.lang.String locale)
Locale whose predefined styles for numbers are used during formatting and parsing. |
void |
setMaxFractionDigits(java.lang.String maxFractionDigits)
Maximum number of digits that will be formatted in the fractional portion of the output. |
void |
setMaxIntegerDigits(java.lang.String maxIntegerDigits)
Maximum number of digits that will be formatted in the integer portion of the output. |
void |
setMinFractionDigits(java.lang.String minFractionDigits)
Minimum number of digits that will be formatted in the fractional portion of the output. |
void |
setMinIntegerDigits(java.lang.String minIntegerDigits)
Minimum number of digits that will be formatted in the integer portion of the output. |
void |
setPattern(java.lang.String pattern)
Custom formatting pattern which determins how the number string should be formatted and parsed. |
void |
setType(java.lang.String type)
Specifies how the number string will be formatted and parsed. |
Methods inherited from class com.cc.framework.taglib.convert.ConverterTag |
doStartTag, setConverterId |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, 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 |
Field Detail |
private static final long serialVersionUID
private java.lang.String currencyCode_
private java.lang.String currencySymbol_
private boolean groupingUsed_
private boolean integerOnly_
private boolean maxFractionDigitsSpecified
private int maxFractionDigits_
private boolean maxIntegerDigitsSpecified
private int maxIntegerDigits_
private boolean minFractionDigitsSpecified
private int minFractionDigits_
private boolean minIntegerDigitsSpecified
private int minIntegerDigits_
private java.lang.String locale_
private java.lang.String pattern_
private java.lang.String type_
Constructor Detail |
public ConvertNumberTag()
Method Detail |
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class ConverterTag
Tag.release()
private void init()
public Converter doCreateConverter() throws ConverterException
ConverterTag
doCreateConverter
in class ConverterTag
ConverterException
- If an error occurred while creating the ConverterConverterTag.doCreateConverter()
public void setCurrencyCode(java.lang.String currencyCode)
currencyCode
- Currency Codepublic void setCurrencySymbol(java.lang.String currencySymbol)
currencySymbol
- Currency Symbolpublic void setGroupingUsed(java.lang.String groupingUsed) throws javax.servlet.jsp.JspException
groupingUsed
- "true" whether formatted output should contain grouping
separators
javax.servlet.jsp.JspException
- If the argument can not be converted into an Boolean valuepublic void setIntegerOnly(java.lang.String integerOnly) throws javax.servlet.jsp.JspException
integerOnly
- "true" when only the integer part of the value will be
formatted and parsed
javax.servlet.jsp.JspException
- If the argument can not be converted into an Boolean valuepublic void setLocale(java.lang.String locale)
locale
- The localepublic void setMaxFractionDigits(java.lang.String maxFractionDigits) throws javax.servlet.jsp.JspException
maxFractionDigits
- Maximum Number of fraction digits
javax.servlet.jsp.JspException
- If the argument can not be converted into an integer valuepublic void setMaxIntegerDigits(java.lang.String maxIntegerDigits) throws javax.servlet.jsp.JspException
maxIntegerDigits
- Maximum Number of integer digits
javax.servlet.jsp.JspException
- If the argument can not be converted into an integer valuepublic void setMinFractionDigits(java.lang.String minFractionDigits) throws javax.servlet.jsp.JspException
minFractionDigits
- Mimimum Number of fraction digits
javax.servlet.jsp.JspException
- If the argument can not be converted into an integer valuepublic void setMinIntegerDigits(java.lang.String minIntegerDigits) throws javax.servlet.jsp.JspException
minIntegerDigits
- Minimum Number of integer digits
javax.servlet.jsp.JspException
- If the argument can not be converted into an integer valuepublic void setPattern(java.lang.String pattern)
pattern
- The Formatting patternpublic void setType(java.lang.String type)
type
- "number" (default) , "currency", and "percentage"
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |