KickJava   Java API By Example, From Geeks To Geeks.

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


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.html.HTML;
19
20 import javax.faces.component.UIComponent;
21
22
23 /**
24  * @author Manfred Geiler (latest modification by $Author: matzew $)
25  * @version $Revision: 1.4 $ $Date: 2005/02/18 18:24:35 $
26  * $Log: HtmlInputTextareaTagBase.java,v $
27  * Revision 1.4 2005/02/18 18:24:35 matzew
28  * added release() to tag clazzes.
29  *
30  * Revision 1.3 2004/10/13 11:51:01 matze
31  * renamed packages to org.apache
32  *
33  * Revision 1.2 2004/07/01 22:01:11 mwessendorf
34  * ASF switch
35  *
36  * Revision 1.1 2004/04/01 12:57:44 manolito
37  * additional extended component classes for user role support
38  *
39  */

40 public abstract class HtmlInputTextareaTagBase
41         extends HtmlInputTagBase
42 {
43     // UIComponent attributes --> already implemented in UIComponentTagBase
44

45     // user role attributes --> already implemented in UIComponentTagBase
46

47     // HTML universal attributes --> already implemented in HtmlComponentTagBase
48

49     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
50

51     // HTML input attributes
52
private String JavaDoc _accesskey;
53     private String JavaDoc _cols;
54     private String JavaDoc _datafld; //FIXME: not in RI so far
55
private String JavaDoc _datasrc; //FIXME: not in RI so far
56
private String JavaDoc _dataformatas; //FIXME: not in RI so far
57
private String JavaDoc _disabled;
58     private String JavaDoc _onblur;
59     private String JavaDoc _onchange;
60     private String JavaDoc _onfocus;
61     private String JavaDoc _onselect;
62     private String JavaDoc _readonly;
63     private String JavaDoc _rows;
64     private String JavaDoc _tabindex;
65
66     // UIOutput attributes
67
// value and converter --> already implemented in UIComponentTagBase
68

69     // UIInput attributes
70
// --> already implemented in HtmlInputTagBase
71

72     //HtmlTextArea attributes
73
// FIXME: is in RI, but not in HTML 4.0. what to do?
74
private String JavaDoc _alt;
75
76     public void release() {
77         super.release();
78         _accesskey=null;
79         _cols=null;
80         _datafld=null;
81         _datasrc=null;
82         _dataformatas=null;
83         _disabled=null;
84         _onblur=null;
85         _onchange=null;
86         _onfocus=null;
87         _onselect=null;
88         _readonly=null;
89         _rows=null;
90         _tabindex=null;
91         _alt=null;
92     }
93     
94     protected void setProperties(UIComponent component)
95     {
96         super.setProperties(component);
97
98         setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey);
99         setIntegerProperty(component, HTML.COLS_ATTR, _cols);
100         setStringProperty(component, HTML.DATAFLD_ATTR, _datafld);
101         setStringProperty(component, HTML.DATASRC_ATTR, _datasrc);
102         setStringProperty(component, HTML.DATAFORMATAS_ATTR, _dataformatas);
103         setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled);
104         setStringProperty(component, HTML.ONBLUR_ATTR, _onblur);
105         setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange);
106         setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus);
107         setStringProperty(component, HTML.ONSELECT_ATTR, _onselect);
108         setBooleanProperty(component, HTML.READONLY_ATTR, _readonly);
109         setIntegerProperty(component, HTML.ROWS_ATTR, _rows);
110         setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex);
111
112         setStringProperty(component, HTML.ALT_ATTR, _alt);
113     }
114
115     public void setAccesskey(String JavaDoc accesskey)
116     {
117         _accesskey = accesskey;
118     }
119
120     public void setAlt(String JavaDoc alt)
121     {
122         _alt = alt;
123     }
124
125     public void setCols(String JavaDoc cols)
126     {
127         _cols = cols;
128     }
129
130     public void setDatafld(String JavaDoc datafld)
131     {
132         _datafld = datafld;
133     }
134
135     public void setDatasrc(String JavaDoc datasrc)
136     {
137         _datasrc = datasrc;
138     }
139
140     public void setDataformatas(String JavaDoc dataformatas)
141     {
142         _dataformatas = dataformatas;
143     }
144
145     public void setDisabled(String JavaDoc disabled)
146     {
147         _disabled = disabled;
148     }
149
150     public void setOnblur(String JavaDoc onblur)
151     {
152         _onblur = onblur;
153     }
154
155     public void setOnchange(String JavaDoc onchange)
156     {
157         _onchange = onchange;
158     }
159
160     public void setOnfocus(String JavaDoc onfocus)
161     {
162         _onfocus = onfocus;
163     }
164
165     public void setOnselect(String JavaDoc onselect)
166     {
167         _onselect = onselect;
168     }
169
170     public void setReadonly(String JavaDoc readonly)
171     {
172         _readonly = readonly;
173     }
174
175     public void setRows(String JavaDoc rows)
176     {
177         _rows = rows;
178     }
179
180     public void setTabindex(String JavaDoc tabindex)
181     {
182         _tabindex = tabindex;
183     }
184
185 }
186
Popular Tags