001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.cocoon.faces.taglib.html;
018:
019: import javax.faces.component.UIComponent;
020:
021: /**
022: * @version CVS $Id: InputTextTag.java 433543 2006-08-22 06:22:54Z crossley $
023: */
024: public class InputTextTag extends InputHiddenTag {
025:
026: private String accesskey;
027: private String alt;
028: private String dir;
029: private String disabled;
030: private String lang;
031: private String maxlength;
032: private String onblur;
033: private String onchange;
034: private String onclick;
035: private String ondblclick;
036: private String onfocus;
037: private String onkeydown;
038: private String onkeypress;
039: private String onkeyup;
040: private String onmousedown;
041: private String onmousemove;
042: private String onmouseout;
043: private String onmouseover;
044: private String onmouseup;
045: private String onselect;
046: private String readonly;
047: private String size;
048: private String style;
049: private String styleClass;
050: private String tabindex;
051: private String title;
052:
053: public void setAccesskey(String accesskey) {
054: this .accesskey = accesskey;
055: }
056:
057: public void setAlt(String alt) {
058: this .alt = alt;
059: }
060:
061: public void setDir(String dir) {
062: this .dir = dir;
063: }
064:
065: public void setDisabled(String disabled) {
066: this .disabled = disabled;
067: }
068:
069: public void setLang(String lang) {
070: this .lang = lang;
071: }
072:
073: public void setMaxlength(String maxlength) {
074: this .maxlength = maxlength;
075: }
076:
077: public void setOnblur(String onblur) {
078: this .onblur = onblur;
079: }
080:
081: public void setOnchange(String onchange) {
082: this .onchange = onchange;
083: }
084:
085: public void setOnclick(String onclick) {
086: this .onclick = onclick;
087: }
088:
089: public void setOndblclick(String ondblclick) {
090: this .ondblclick = ondblclick;
091: }
092:
093: public void setOnfocus(String onfocus) {
094: this .onfocus = onfocus;
095: }
096:
097: public void setOnkeydown(String onkeydown) {
098: this .onkeydown = onkeydown;
099: }
100:
101: public void setOnkeypress(String onkeypress) {
102: this .onkeypress = onkeypress;
103: }
104:
105: public void setOnkeyup(String onkeyup) {
106: this .onkeyup = onkeyup;
107: }
108:
109: public void setOnmousedown(String onmousedown) {
110: this .onmousedown = onmousedown;
111: }
112:
113: public void setOnmousemove(String onmousemove) {
114: this .onmousemove = onmousemove;
115: }
116:
117: public void setOnmouseout(String onmouseout) {
118: this .onmouseout = onmouseout;
119: }
120:
121: public void setOnmouseover(String onmouseover) {
122: this .onmouseover = onmouseover;
123: }
124:
125: public void setOnmouseup(String onmouseup) {
126: this .onmouseup = onmouseup;
127: }
128:
129: public void setOnselect(String onselect) {
130: this .onselect = onselect;
131: }
132:
133: public void setReadonly(String readonly) {
134: this .readonly = readonly;
135: }
136:
137: public void setSize(String size) {
138: this .size = size;
139: }
140:
141: public void setStyle(String style) {
142: this .style = style;
143: }
144:
145: public void setStyleClass(String styleClass) {
146: this .styleClass = styleClass;
147: }
148:
149: public void setTabindex(String tabindex) {
150: this .tabindex = tabindex;
151: }
152:
153: public void setTitle(String title) {
154: this .title = title;
155: }
156:
157: public String getRendererType() {
158: return "javax.faces.Text";
159: }
160:
161: public String getComponentType() {
162: return "javax.faces.HtmlInputText";
163: }
164:
165: protected void setProperties(UIComponent component) {
166: super .setProperties(component);
167:
168: setProperty(component, "accesskey", accesskey);
169: setProperty(component, "alt", alt);
170: setProperty(component, "dir", dir);
171:
172: setBooleanProperty(component, "disabled", disabled);
173:
174: setProperty(component, "lang", lang);
175:
176: setIntegerProperty(component, "maxlength", maxlength);
177:
178: setProperty(component, "onblur", onblur);
179: setProperty(component, "onchange", onchange);
180: setProperty(component, "onclick", onclick);
181: setProperty(component, "ondblclick", ondblclick);
182: setProperty(component, "onfocus", onfocus);
183: setProperty(component, "onkeydown", onkeydown);
184: setProperty(component, "onkeypress", onkeypress);
185: setProperty(component, "onkeyup", onkeyup);
186: setProperty(component, "onmousedown", onmousedown);
187: setProperty(component, "onmousemove", onmousemove);
188: setProperty(component, "onmouseout", onmouseout);
189: setProperty(component, "onmouseover", onmouseover);
190: setProperty(component, "onmouseup", onmouseup);
191: setProperty(component, "onselect", onselect);
192:
193: setBooleanProperty(component, "readonly", readonly);
194: setIntegerProperty(component, "size", size);
195:
196: setProperty(component, "style", style);
197: setProperty(component, "styleClass", styleClass);
198: setProperty(component, "tabindex", tabindex);
199: setProperty(component, "title", title);
200: }
201:
202: public void recycle() {
203: super.recycle();
204: accesskey = null;
205: alt = null;
206: dir = null;
207: disabled = null;
208: lang = null;
209: maxlength = null;
210: onblur = null;
211: onchange = null;
212: onclick = null;
213: ondblclick = null;
214: onfocus = null;
215: onkeydown = null;
216: onkeypress = null;
217: onkeyup = null;
218: onmousedown = null;
219: onmousemove = null;
220: onmouseout = null;
221: onmouseover = null;
222: onmouseup = null;
223: onselect = null;
224: readonly = null;
225: size = null;
226: style = null;
227: styleClass = null;
228: tabindex = null;
229: title = null;
230: }
231: }
|