1 16 17 package org.apache.taglibs.standard.tag.rt.fmt; 18 19 import javax.servlet.jsp.JspTagException ; 20 21 import org.apache.taglibs.standard.tag.common.fmt.FormatNumberSupport; 22 23 29 30 public class FormatNumberTag extends FormatNumberSupport { 31 32 35 public void setValue(Object value) throws JspTagException { 37 this.value = value; 38 this.valueSpecified = true; 39 } 40 41 public void setType(String type) throws JspTagException { 43 this.type = type; 44 } 45 46 public void setPattern(String pattern) throws JspTagException { 48 this.pattern = pattern; 49 } 50 51 public void setCurrencyCode(String currencyCode) throws JspTagException { 53 this.currencyCode = currencyCode; 54 } 55 56 public void setCurrencySymbol(String currencySymbol) 58 throws JspTagException { 59 this.currencySymbol = currencySymbol; 60 } 61 62 public void setGroupingUsed(boolean isGroupingUsed) 64 throws JspTagException { 65 this.isGroupingUsed = isGroupingUsed; 66 this.groupingUsedSpecified = true; 67 } 68 69 public void setMaxIntegerDigits(int maxDigits) throws JspTagException { 71 this.maxIntegerDigits = maxDigits; 72 this.maxIntegerDigitsSpecified = true; 73 } 74 75 public void setMinIntegerDigits(int minDigits) throws JspTagException { 77 this.minIntegerDigits = minDigits; 78 this.minIntegerDigitsSpecified = true; 79 } 80 81 public void setMaxFractionDigits(int maxDigits) throws JspTagException { 83 this.maxFractionDigits = maxDigits; 84 this.maxFractionDigitsSpecified = true; 85 } 86 87 public void setMinFractionDigits(int minDigits) throws JspTagException { 89 this.minFractionDigits = minDigits; 90 this.minFractionDigitsSpecified = true; 91 } 92 } 93 | Popular Tags |