1 16 package org.apache.cocoon.faces.taglib.html; 17 18 import javax.faces.component.UIComponent; 19 20 23 public class InputTextTag extends InputHiddenTag { 24 25 private String accesskey; 26 private String alt; 27 private String dir; 28 private String disabled; 29 private String lang; 30 private String maxlength; 31 private String onblur; 32 private String onchange; 33 private String onclick; 34 private String ondblclick; 35 private String onfocus; 36 private String onkeydown; 37 private String onkeypress; 38 private String onkeyup; 39 private String onmousedown; 40 private String onmousemove; 41 private String onmouseout; 42 private String onmouseover; 43 private String onmouseup; 44 private String onselect; 45 private String readonly; 46 private String size; 47 private String style; 48 private String styleClass; 49 private String tabindex; 50 private String title; 51 52 53 public void setAccesskey(String accesskey) { 54 this.accesskey = accesskey; 55 } 56 57 public void setAlt(String alt) { 58 this.alt = alt; 59 } 60 61 public void setDir(String dir) { 62 this.dir = dir; 63 } 64 65 public void setDisabled(String disabled) { 66 this.disabled = disabled; 67 } 68 69 public void setLang(String lang) { 70 this.lang = lang; 71 } 72 73 public void setMaxlength(String maxlength) { 74 this.maxlength = maxlength; 75 } 76 77 public void setOnblur(String onblur) { 78 this.onblur = onblur; 79 } 80 81 public void setOnchange(String onchange) { 82 this.onchange = onchange; 83 } 84 85 public void setOnclick(String onclick) { 86 this.onclick = onclick; 87 } 88 89 public void setOndblclick(String ondblclick) { 90 this.ondblclick = ondblclick; 91 } 92 93 public void setOnfocus(String onfocus) { 94 this.onfocus = onfocus; 95 } 96 97 public void setOnkeydown(String onkeydown) { 98 this.onkeydown = onkeydown; 99 } 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 166 protected void setProperties(UIComponent component) { 167 super.setProperties(component); 168 169 setProperty(component, "accesskey", accesskey); 170 setProperty(component, "alt", alt); 171 setProperty(component, "dir", dir); 172 173 setBooleanProperty(component, "disabled", disabled); 174 175 setProperty(component, "lang", lang); 176 177 setIntegerProperty(component, "maxlength", maxlength); 178 179 setProperty(component, "onblur", onblur); 180 setProperty(component, "onchange", onchange); 181 setProperty(component, "onclick", onclick); 182 setProperty(component, "ondblclick", ondblclick); 183 setProperty(component, "onfocus", onfocus); 184 setProperty(component, "onkeydown", onkeydown); 185 setProperty(component, "onkeypress", onkeypress); 186 setProperty(component, "onkeyup", onkeyup); 187 setProperty(component, "onmousedown", onmousedown); 188 setProperty(component, "onmousemove", onmousemove); 189 setProperty(component, "onmouseout", onmouseout); 190 setProperty(component, "onmouseover", onmouseover); 191 setProperty(component, "onmouseup", onmouseup); 192 setProperty(component, "onselect", onselect); 193 194 setBooleanProperty(component, "readonly", readonly); 195 setIntegerProperty(component, "size", size); 196 197 setProperty(component, "style", style); 198 setProperty(component, "styleClass", styleClass); 199 setProperty(component, "tabindex", tabindex); 200 setProperty(component, "title", title); 201 } 202 203 public void recycle() { 204 super.recycle(); 205 accesskey = null; 206 alt = null; 207 dir = null; 208 disabled = null; 209 lang = null; 210 maxlength = null; 211 onblur = null; 212 onchange = null; 213 onclick = null; 214 ondblclick = null; 215 onfocus = null; 216 onkeydown = null; 217 onkeypress = null; 218 onkeyup = null; 219 onmousedown = null; 220 onmousemove = null; 221 onmouseout = null; 222 onmouseover = null; 223 onmouseup = null; 224 onselect = null; 225 readonly = null; 226 size = null; 227 style = null; 228 styleClass = null; 229 tabindex = null; 230 title = null; 231 } 232 } 233 | Popular Tags |