KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.util.Date JavaDoc;
20
21 import javax.servlet.jsp.JspTagException JavaDoc;
22
23 import org.apache.taglibs.standard.tag.common.fmt.FormatDateSupport;
24
25 /**
26  * <p>A handler for &lt;formatDate&gt; that supports rtexprvalue-based
27  * attributes.</p>
28  *
29  * @author Jan Luehe
30  */

31
32 public class FormatDateTag extends FormatDateSupport {
33
34     //*********************************************************************
35
// Accessor methods
36

37     // 'value' attribute
38
public void setValue(Date JavaDoc value) throws JspTagException JavaDoc {
39         this.value = value;
40     }
41
42     // 'type' attribute
43
public void setType(String JavaDoc type) throws JspTagException JavaDoc {
44         this.type = type;
45     }
46
47     // 'dateStyle' attribute
48
public void setDateStyle(String JavaDoc dateStyle) throws JspTagException JavaDoc {
49         this.dateStyle = dateStyle;
50     }
51
52     // 'timeStyle' attribute
53
public void setTimeStyle(String JavaDoc timeStyle) throws JspTagException JavaDoc {
54         this.timeStyle = timeStyle;
55     }
56
57     // 'pattern' attribute
58
public void setPattern(String JavaDoc pattern) throws JspTagException JavaDoc {
59         this.pattern = pattern;
60     }
61
62     // 'timeZone' attribute
63
public void setTimeZone(Object JavaDoc timeZone) throws JspTagException JavaDoc {
64         this.timeZone = timeZone;
65     }
66 }
67
Popular Tags