1 16 package javax.faces.component.html; 17 18 import javax.faces.component.UIOutput; 19 import javax.faces.context.FacesContext; 20 import javax.faces.el.ValueBinding; 21 22 26 public class HtmlOutputLabel extends UIOutput 27 { 28 30 public static final String COMPONENT_TYPE = "javax.faces.HtmlOutputLabel"; 31 private static final String DEFAULT_RENDERER_TYPE = "javax.faces.Label"; 32 33 private String _accesskey = null; 34 private String _dir = null; 35 private String _for = null; 36 private String _lang = null; 37 private String _onblur = null; 38 private String _onclick = null; 39 private String _ondblclick = null; 40 private String _onfocus = null; 41 private String _onkeydown = null; 42 private String _onkeypress = null; 43 private String _onkeyup = null; 44 private String _onmousedown = null; 45 private String _onmousemove = null; 46 private String _onmouseout = null; 47 private String _onmouseover = null; 48 private String _onmouseup = null; 49 private String _style = null; 50 private String _styleClass = null; 51 private String _tabindex = null; 52 private String _title = null; 53 54 public HtmlOutputLabel() 55 { 56 setRendererType(DEFAULT_RENDERER_TYPE); 57 } 58 59 60 public void setAccesskey(String accesskey) 61 { 62 _accesskey = accesskey; 63 } 64 65 public String getAccesskey() 66 { 67 if (_accesskey != null) return _accesskey; 68 ValueBinding vb = getValueBinding("accesskey"); 69 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 70 } 71 72 public void setDir(String dir) 73 { 74 _dir = dir; 75 } 76 77 public String getDir() 78 { 79 if (_dir != null) return _dir; 80 ValueBinding vb = getValueBinding("dir"); 81 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 82 } 83 84 public void setFor(String forValue) 85 { 86 _for = forValue; 87 } 88 89 public String getFor() 90 { 91 if (_for != null) return _for; 92 ValueBinding vb = getValueBinding("for"); 93 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 94 } 95 96 public void setLang(String lang) 97 { 98 _lang = lang; 99 } 100 101 public String getLang() 102 { 103 if (_lang != null) return _lang; 104 ValueBinding vb = getValueBinding("lang"); 105 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 106 } 107 108 public void setOnblur(String onblur) 109 { 110 _onblur = onblur; 111 } 112 113 public String getOnblur() 114 { 115 if (_onblur != null) return _onblur; 116 ValueBinding vb = getValueBinding("onblur"); 117 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 118 } 119 120 public void setOnclick(String onclick) 121 { 122 _onclick = onclick; 123 } 124 125 public String getOnclick() 126 { 127 if (_onclick != null) return _onclick; 128 ValueBinding vb = getValueBinding("onclick"); 129 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 130 } 131 132 public void setOndblclick(String ondblclick) 133 { 134 _ondblclick = ondblclick; 135 } 136 137 public String getOndblclick() 138 { 139 if (_ondblclick != null) return _ondblclick; 140 ValueBinding vb = getValueBinding("ondblclick"); 141 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 142 } 143 144 public void setOnfocus(String onfocus) 145 { 146 _onfocus = onfocus; 147 } 148 149 public String getOnfocus() 150 { 151 if (_onfocus != null) return _onfocus; 152 ValueBinding vb = getValueBinding("onfocus"); 153 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 154 } 155 156 public void setOnkeydown(String onkeydown) 157 { 158 _onkeydown = onkeydown; 159 } 160 161 public String getOnkeydown() 162 { 163 if (_onkeydown != null) return _onkeydown; 164 ValueBinding vb = getValueBinding("onkeydown"); 165 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 166 } 167 168 public void setOnkeypress(String onkeypress) 169 { 170 _onkeypress = onkeypress; 171 } 172 173 public String getOnkeypress() 174 { 175 if (_onkeypress != null) return _onkeypress; 176 ValueBinding vb = getValueBinding("onkeypress"); 177 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 178 } 179 180 public void setOnkeyup(String onkeyup) 181 { 182 _onkeyup = onkeyup; 183 } 184 185 public String getOnkeyup() 186 { 187 if (_onkeyup != null) return _onkeyup; 188 ValueBinding vb = getValueBinding("onkeyup"); 189 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 190 } 191 192 public void setOnmousedown(String onmousedown) 193 { 194 _onmousedown = onmousedown; 195 } 196 197 public String getOnmousedown() 198 { 199 if (_onmousedown != null) return _onmousedown; 200 ValueBinding vb = getValueBinding("onmousedown"); 201 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 202 } 203 204 public void setOnmousemove(String onmousemove) 205 { 206 _onmousemove = onmousemove; 207 } 208 209 public String getOnmousemove() 210 { 211 if (_onmousemove != null) return _onmousemove; 212 ValueBinding vb = getValueBinding("onmousemove"); 213 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 214 } 215 216 public void setOnmouseout(String onmouseout) 217 { 218 _onmouseout = onmouseout; 219 } 220 221 public String getOnmouseout() 222 { 223 if (_onmouseout != null) return _onmouseout; 224 ValueBinding vb = getValueBinding("onmouseout"); 225 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 226 } 227 228 public void setOnmouseover(String onmouseover) 229 { 230 _onmouseover = onmouseover; 231 } 232 233 public String getOnmouseover() 234 { 235 if (_onmouseover != null) return _onmouseover; 236 ValueBinding vb = getValueBinding("onmouseover"); 237 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 238 } 239 240 public void setOnmouseup(String onmouseup) 241 { 242 _onmouseup = onmouseup; 243 } 244 245 public String getOnmouseup() 246 { 247 if (_onmouseup != null) return _onmouseup; 248 ValueBinding vb = getValueBinding("onmouseup"); 249 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 250 } 251 252 public void setStyle(String style) 253 { 254 _style = style; 255 } 256 257 public String getStyle() 258 { 259 if (_style != null) return _style; 260 ValueBinding vb = getValueBinding("style"); 261 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 262 } 263 264 public void setStyleClass(String styleClass) 265 { 266 _styleClass = styleClass; 267 } 268 269 public String getStyleClass() 270 { 271 if (_styleClass != null) return _styleClass; 272 ValueBinding vb = getValueBinding("styleClass"); 273 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 274 } 275 276 public void setTabindex(String tabindex) 277 { 278 _tabindex = tabindex; 279 } 280 281 public String getTabindex() 282 { 283 if (_tabindex != null) return _tabindex; 284 ValueBinding vb = getValueBinding("tabindex"); 285 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 286 } 287 288 public void setTitle(String title) 289 { 290 _title = title; 291 } 292 293 public String getTitle() 294 { 295 if (_title != null) return _title; 296 ValueBinding vb = getValueBinding("title"); 297 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 298 } 299 300 301 public Object saveState(FacesContext context) 302 { 303 Object values[] = new Object [21]; 304 values[0] = super.saveState(context); 305 values[1] = _accesskey; 306 values[2] = _dir; 307 values[3] = _for; 308 values[4] = _lang; 309 values[5] = _onblur; 310 values[6] = _onclick; 311 values[7] = _ondblclick; 312 values[8] = _onfocus; 313 values[9] = _onkeydown; 314 values[10] = _onkeypress; 315 values[11] = _onkeyup; 316 values[12] = _onmousedown; 317 values[13] = _onmousemove; 318 values[14] = _onmouseout; 319 values[15] = _onmouseover; 320 values[16] = _onmouseup; 321 values[17] = _style; 322 values[18] = _styleClass; 323 values[19] = _tabindex; 324 values[20] = _title; 325 return ((Object ) (values)); 326 } 327 328 public void restoreState(FacesContext context, Object state) 329 { 330 Object values[] = (Object [])state; 331 super.restoreState(context, values[0]); 332 _accesskey = (String )values[1]; 333 _dir = (String )values[2]; 334 _for = (String )values[3]; 335 _lang = (String )values[4]; 336 _onblur = (String )values[5]; 337 _onclick = (String )values[6]; 338 _ondblclick = (String )values[7]; 339 _onfocus = (String )values[8]; 340 _onkeydown = (String )values[9]; 341 _onkeypress = (String )values[10]; 342 _onkeyup = (String )values[11]; 343 _onmousedown = (String )values[12]; 344 _onmousemove = (String )values[13]; 345 _onmouseout = (String )values[14]; 346 _onmouseover = (String )values[15]; 347 _onmouseup = (String )values[16]; 348 _style = (String )values[17]; 349 _styleClass = (String )values[18]; 350 _tabindex = (String )values[19]; 351 _title = (String )values[20]; 352 } 353 } 355 | Popular Tags |