KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > taglibs > standard > tag > rt > fmt > FormatNumberTag


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.taglibs.standard.tag.rt.fmt;
18
19 import javax.servlet.jsp.JspTagException JavaDoc;
20
21 import org.apache.taglibs.standard.tag.common.fmt.FormatNumberSupport;
22
23 /**
24  * <p>A handler for &lt;formatNumber&gt; that supports rtexprvalue-based
25  * attributes.</p>
26  *
27  * @author Jan Luehe
28  */

29
30 public class FormatNumberTag extends FormatNumberSupport {
31
32     //*********************************************************************
33
// Accessor methods
34

35     // 'value' attribute
36
public void setValue(Object JavaDoc value) throws JspTagException JavaDoc {
37         this.value = value;
38     this.valueSpecified = true;
39     }
40
41     // 'type' attribute
42
public void setType(String JavaDoc type) throws JspTagException JavaDoc {
43         this.type = type;
44     }
45
46     // 'pattern' attribute
47
public void setPattern(String JavaDoc pattern) throws JspTagException JavaDoc {
48         this.pattern = pattern;
49     }
50
51     // 'currencyCode' attribute
52
public void setCurrencyCode(String JavaDoc currencyCode) throws JspTagException JavaDoc {
53         this.currencyCode = currencyCode;
54     }
55
56     // 'currencySymbol' attribute
57
public void setCurrencySymbol(String JavaDoc currencySymbol)
58     throws JspTagException JavaDoc {
59         this.currencySymbol = currencySymbol;
60     }
61
62     // 'groupingUsed' attribute
63
public void setGroupingUsed(boolean isGroupingUsed)
64     throws JspTagException JavaDoc {
65         this.isGroupingUsed = isGroupingUsed;
66     this.groupingUsedSpecified = true;
67     }
68
69     // 'maxIntegerDigits' attribute
70
public void setMaxIntegerDigits(int maxDigits) throws JspTagException JavaDoc {
71         this.maxIntegerDigits = maxDigits;
72     this.maxIntegerDigitsSpecified = true;
73     }
74
75     // 'minIntegerDigits' attribute
76
public void setMinIntegerDigits(int minDigits) throws JspTagException JavaDoc {
77         this.minIntegerDigits = minDigits;
78     this.minIntegerDigitsSpecified = true;
79     }
80
81     // 'maxFractionDigits' attribute
82
public void setMaxFractionDigits(int maxDigits) throws JspTagException JavaDoc {
83         this.maxFractionDigits = maxDigits;
84     this.maxFractionDigitsSpecified = true;
85     }
86
87     // 'minFractionDigits' attribute
88
public void setMinFractionDigits(int minDigits) throws JspTagException JavaDoc {
89         this.minFractionDigits = minDigits;
90     this.minFractionDigitsSpecified = true;
91     }
92 }
93
Popular Tags