KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > taglib > html > HtmlInputTagBase


1 /*
2  * Copyright 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 package org.apache.myfaces.taglib.html;
17
18 import org.apache.myfaces.renderkit.JSFAttr;
19 import org.apache.myfaces.renderkit.html.HTML;
20
21 import javax.faces.component.UIComponent;
22
23
24 /**
25  * @author Manfred Geiler (latest modification by $Author: matzew $)
26  * @version $Revision: 1.7 $ $Date: 2005/02/18 17:19:29 $
27  * $Log: HtmlInputTagBase.java,v $
28  * Revision 1.7 2005/02/18 17:19:29 matzew
29  * added release() to tag clazzes.
30  *
31  * Revision 1.6 2004/10/13 11:51:01 matze
32  * renamed packages to org.apache
33  *
34  * Revision 1.5 2004/07/01 22:01:11 mwessendorf
35  * ASF switch
36  *
37  * Revision 1.4 2004/06/22 15:31:00 prophecyslides
38  * Added readonly attribute
39  *
40  * Revision 1.3 2004/04/16 15:13:31 manolito
41  * validator attribute support and MethodBinding invoke exception handling fixed
42  *
43  * Revision 1.2 2004/04/05 11:04:56 manolito
44  * setter for renderer type removed, no more default renderer type needed
45  *
46  * Revision 1.1 2004/03/30 13:41:20 royalts
47  * no message
48  *
49  * Revision 1.2 2004/03/30 12:16:08 manolito
50  * header comments
51  *
52  */

53 public abstract class HtmlInputTagBase
54     extends HtmlComponentTagBase
55 {
56     // UIComponent attributes --> already implemented in UIComponentTagBase
57

58     // UIOutput attributes
59
// value and converterId --> already implemented in UIComponentTagBase
60

61     // UIInput attributes
62
private String JavaDoc _immediate;
63     private String JavaDoc _required;
64     private String JavaDoc _validator;
65     private String JavaDoc _valueChangeListener;
66     private String JavaDoc _readonly;
67
68     public void release() {
69         super.release();
70
71         _immediate=null;
72         _required=null;
73         _validator=null;
74         _valueChangeListener=null;
75         _readonly=null;
76     }
77     
78     protected void setProperties(UIComponent component)
79     {
80         super.setProperties(component);
81
82         setBooleanProperty(component, JSFAttr.IMMEDIATE_ATTR, _immediate);
83         setBooleanProperty(component, JSFAttr.REQUIRED_ATTR, _required);
84         setValidatorProperty(component, _validator);
85         setValueChangedListenerProperty(component, _valueChangeListener);
86         setBooleanProperty(component, HTML.READONLY_ATTR, _readonly);
87     }
88
89     public void setImmediate(String JavaDoc immediate)
90     {
91         _immediate = immediate;
92     }
93
94     public void setRequired(String JavaDoc required)
95     {
96         _required = required;
97     }
98
99     public void setValidator(String JavaDoc validator)
100     {
101         _validator = validator;
102     }
103
104     public void setValueChangeListener(String JavaDoc valueChangeListener)
105     {
106         _valueChangeListener = valueChangeListener;
107     }
108     public void setReadonly(String JavaDoc _readonly) {
109         this._readonly = _readonly;
110     }
111
112 }
113
Popular Tags