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: InputTextareaTag.java 433543 2006-08-22 06:22:54Z crossley $
023: */
024: public class InputTextareaTag extends InputHiddenTag {
025:
026: private String accesskey;
027: private String cols;
028: private String dir;
029: private String disabled;
030: private String lang;
031: private String onblur;
032: private String onchange;
033: private String onclick;
034: private String ondblclick;
035: private String onfocus;
036: private String onkeydown;
037: private String onkeypress;
038: private String onkeyup;
039: private String onmousedown;
040: private String onmousemove;
041: private String onmouseout;
042: private String onmouseover;
043: private String onmouseup;
044: private String onselect;
045: private String readonly;
046: private String rows;
047: private String style;
048: private String styleClass;
049: private String tabindex;
050: private String title;
051:
052: public void setAccesskey(String accesskey) {
053: this .accesskey = accesskey;
054: }
055:
056: public void setCols(String cols) {
057: this .cols = cols;
058: }
059:
060: public void setDir(String dir) {
061: this .dir = dir;
062: }
063:
064: public void setDisabled(String disabled) {
065: this .disabled = disabled;
066: }
067:
068: public void setLang(String lang) {
069: this .lang = lang;
070: }
071:
072: public void setOnblur(String onblur) {
073: this .onblur = onblur;
074: }
075:
076: public void setOnchange(String onchange) {
077: this .onchange = onchange;
078: }
079:
080: public void setOnclick(String onclick) {
081: this .onclick = onclick;
082: }
083:
084: public void setOndblclick(String ondblclick) {
085: this .ondblclick = ondblclick;
086: }
087:
088: public void setOnfocus(String onfocus) {
089: this .onfocus = onfocus;
090: }
091:
092: public void setOnkeydown(String onkeydown) {
093: this .onkeydown = onkeydown;
094: }
095:
096: public void setOnkeypress(String onkeypress) {
097: this .onkeypress = onkeypress;
098: }
099:
100: public void setOnkeyup(String onkeyup) {
101: this .onkeyup = onkeyup;
102: }
103:
104: public void setOnmousedown(String onmousedown) {
105: this .onmousedown = onmousedown;
106: }
107:
108: public void setOnmousemove(String onmousemove) {
109: this .onmousemove = onmousemove;
110: }
111:
112: public void setOnmouseout(String onmouseout) {
113: this .onmouseout = onmouseout;
114: }
115:
116: public void setOnmouseover(String onmouseover) {
117: this .onmouseover = onmouseover;
118: }
119:
120: public void setOnmouseup(String onmouseup) {
121: this .onmouseup = onmouseup;
122: }
123:
124: public void setOnselect(String onselect) {
125: this .onselect = onselect;
126: }
127:
128: public void setReadonly(String readonly) {
129: this .readonly = readonly;
130: }
131:
132: public void setRows(String rows) {
133: this .rows = rows;
134: }
135:
136: public void setStyle(String style) {
137: this .style = style;
138: }
139:
140: public void setStyleClass(String styleClass) {
141: this .styleClass = styleClass;
142: }
143:
144: public void setTabindex(String tabindex) {
145: this .tabindex = tabindex;
146: }
147:
148: public void setTitle(String title) {
149: this .title = title;
150: }
151:
152: public String getRendererType() {
153: return "javax.faces.Textarea";
154: }
155:
156: public String getComponentType() {
157: return "javax.faces.HtmlInputTextarea";
158: }
159:
160: protected void setProperties(UIComponent component) {
161: super .setProperties(component);
162:
163: setProperty(component, "accesskey", accesskey);
164:
165: setIntegerProperty(component, "cols", cols);
166:
167: setProperty(component, "dir", dir);
168:
169: setBooleanProperty(component, "disabled", disabled);
170:
171: setProperty(component, "lang", lang);
172:
173: setProperty(component, "onblur", onblur);
174: setProperty(component, "onchange", onchange);
175: setProperty(component, "onclick", onclick);
176: setProperty(component, "ondblclick", ondblclick);
177: setProperty(component, "onfocus", onfocus);
178: setProperty(component, "onkeydown", onkeydown);
179: setProperty(component, "onkeypress", onkeypress);
180: setProperty(component, "onkeyup", onkeyup);
181: setProperty(component, "onmousedown", onmousedown);
182: setProperty(component, "onmousemove", onmousemove);
183: setProperty(component, "onmouseout", onmouseout);
184: setProperty(component, "onmouseover", onmouseover);
185: setProperty(component, "onmouseup", onmouseup);
186: setProperty(component, "onselect", onselect);
187:
188: setBooleanProperty(component, "readonly", readonly);
189: setIntegerProperty(component, "rows", rows);
190:
191: setProperty(component, "style", style);
192: setProperty(component, "styleClass", styleClass);
193: setProperty(component, "tabindex", tabindex);
194: setProperty(component, "title", title);
195: }
196:
197: public void recycle() {
198: super.recycle();
199: accesskey = null;
200: cols = null;
201: dir = null;
202: disabled = null;
203: lang = null;
204: onblur = null;
205: onchange = null;
206: onclick = null;
207: ondblclick = null;
208: onfocus = null;
209: onkeydown = null;
210: onkeypress = null;
211: onkeyup = null;
212: onmousedown = null;
213: onmousemove = null;
214: onmouseout = null;
215: onmouseover = null;
216: onmouseup = null;
217: onselect = null;
218: readonly = null;
219: rows = null;
220: style = null;
221: styleClass = null;
222: tabindex = null;
223: title = null;
224: }
225: }
|