1 16 17 package org.apache.taglibs.standard.tag.rt.fmt; 18 19 import java.util.Locale ; 20 21 import javax.servlet.jsp.JspTagException ; 22 23 import org.apache.taglibs.standard.tag.common.fmt.ParseNumberSupport; 24 import org.apache.taglibs.standard.tag.common.fmt.SetLocaleSupport; 25 26 32 33 public class ParseNumberTag extends ParseNumberSupport { 34 35 38 public void setValue(String value) throws JspTagException { 40 this.value = value; 41 this.valueSpecified = true; 42 } 43 44 public void setType(String type) throws JspTagException { 46 this.type = type; 47 } 48 49 public void setPattern(String pattern) throws JspTagException { 51 this.pattern = pattern; 52 } 53 54 public void setParseLocale(Object loc) throws JspTagException { 56 if (loc != null) { 57 if (loc instanceof Locale ) { 58 this.parseLocale = (Locale ) loc; 59 } else { 60 if (!"".equals((String ) loc)) { 61 this.parseLocale = SetLocaleSupport.parseLocale((String ) 62 loc); 63 } 64 } 65 } 66 } 67 68 public void setIntegerOnly(boolean isIntegerOnly) throws JspTagException { 70 this.isIntegerOnly = isIntegerOnly; 71 this.integerOnlySpecified = true; 72 } 73 } 74 | Popular Tags |