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 HtmlOutputLink extends UIOutput 27 { 28 30 public static final String COMPONENT_TYPE = "javax.faces.HtmlOutputLink"; 31 private static final String DEFAULT_RENDERER_TYPE = "javax.faces.Link"; 32 33 private String _accesskey = null; 34 private String _charset = null; 35 private String _coords = null; 36 private String _dir = null; 37 private String _hreflang = null; 38 private String _lang = null; 39 private String _onblur = null; 40 private String _onclick = null; 41 private String _ondblclick = null; 42 private String _onfocus = null; 43 private String _onkeydown = null; 44 private String _onkeypress = null; 45 private String _onkeyup = null; 46 private String _onmousedown = null; 47 private String _onmousemove = null; 48 private String _onmouseout = null; 49 private String _onmouseover = null; 50 private String _onmouseup = null; 51 private String _rel = null; 52 private String _rev = null; 53 private String _shape = null; 54 private String _style = null; 55 private String _styleClass = null; 56 private String _tabindex = null; 57 private String _target = null; 58 private String _title = null; 59 private String _type = null; 60 61 public HtmlOutputLink() 62 { 63 setRendererType(DEFAULT_RENDERER_TYPE); 64 } 65 66 67 public void setAccesskey(String accesskey) 68 { 69 _accesskey = accesskey; 70 } 71 72 public String getAccesskey() 73 { 74 if (_accesskey != null) return _accesskey; 75 ValueBinding vb = getValueBinding("accesskey"); 76 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 77 } 78 79 public void setCharset(String charset) 80 { 81 _charset = charset; 82 } 83 84 public String getCharset() 85 { 86 if (_charset != null) return _charset; 87 ValueBinding vb = getValueBinding("charset"); 88 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 89 } 90 91 public void setCoords(String coords) 92 { 93 _coords = coords; 94 } 95 96 public String getCoords() 97 { 98 if (_coords != null) return _coords; 99 ValueBinding vb = getValueBinding("coords"); 100 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 101 } 102 103 public void setDir(String dir) 104 { 105 _dir = dir; 106 } 107 108 public String getDir() 109 { 110 if (_dir != null) return _dir; 111 ValueBinding vb = getValueBinding("dir"); 112 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 113 } 114 115 public void setHreflang(String hreflang) 116 { 117 _hreflang = hreflang; 118 } 119 120 public String getHreflang() 121 { 122 if (_hreflang != null) return _hreflang; 123 ValueBinding vb = getValueBinding("hreflang"); 124 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 125 } 126 127 public void setLang(String lang) 128 { 129 _lang = lang; 130 } 131 132 public String getLang() 133 { 134 if (_lang != null) return _lang; 135 ValueBinding vb = getValueBinding("lang"); 136 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 137 } 138 139 public void setOnblur(String onblur) 140 { 141 _onblur = onblur; 142 } 143 144 public String getOnblur() 145 { 146 if (_onblur != null) return _onblur; 147 ValueBinding vb = getValueBinding("onblur"); 148 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 149 } 150 151 public void setOnclick(String onclick) 152 { 153 _onclick = onclick; 154 } 155 156 public String getOnclick() 157 { 158 if (_onclick != null) return _onclick; 159 ValueBinding vb = getValueBinding("onclick"); 160 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 161 } 162 163 public void setOndblclick(String ondblclick) 164 { 165 _ondblclick = ondblclick; 166 } 167 168 public String getOndblclick() 169 { 170 if (_ondblclick != null) return _ondblclick; 171 ValueBinding vb = getValueBinding("ondblclick"); 172 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 173 } 174 175 public void setOnfocus(String onfocus) 176 { 177 _onfocus = onfocus; 178 } 179 180 public String getOnfocus() 181 { 182 if (_onfocus != null) return _onfocus; 183 ValueBinding vb = getValueBinding("onfocus"); 184 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 185 } 186 187 public void setOnkeydown(String onkeydown) 188 { 189 _onkeydown = onkeydown; 190 } 191 192 public String getOnkeydown() 193 { 194 if (_onkeydown != null) return _onkeydown; 195 ValueBinding vb = getValueBinding("onkeydown"); 196 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 197 } 198 199 public void setOnkeypress(String onkeypress) 200 { 201 _onkeypress = onkeypress; 202 } 203 204 public String getOnkeypress() 205 { 206 if (_onkeypress != null) return _onkeypress; 207 ValueBinding vb = getValueBinding("onkeypress"); 208 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 209 } 210 211 public void setOnkeyup(String onkeyup) 212 { 213 _onkeyup = onkeyup; 214 } 215 216 public String getOnkeyup() 217 { 218 if (_onkeyup != null) return _onkeyup; 219 ValueBinding vb = getValueBinding("onkeyup"); 220 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 221 } 222 223 public void setOnmousedown(String onmousedown) 224 { 225 _onmousedown = onmousedown; 226 } 227 228 public String getOnmousedown() 229 { 230 if (_onmousedown != null) return _onmousedown; 231 ValueBinding vb = getValueBinding("onmousedown"); 232 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 233 } 234 235 public void setOnmousemove(String onmousemove) 236 { 237 _onmousemove = onmousemove; 238 } 239 240 public String getOnmousemove() 241 { 242 if (_onmousemove != null) return _onmousemove; 243 ValueBinding vb = getValueBinding("onmousemove"); 244 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 245 } 246 247 public void setOnmouseout(String onmouseout) 248 { 249 _onmouseout = onmouseout; 250 } 251 252 public String getOnmouseout() 253 { 254 if (_onmouseout != null) return _onmouseout; 255 ValueBinding vb = getValueBinding("onmouseout"); 256 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 257 } 258 259 public void setOnmouseover(String onmouseover) 260 { 261 _onmouseover = onmouseover; 262 } 263 264 public String getOnmouseover() 265 { 266 if (_onmouseover != null) return _onmouseover; 267 ValueBinding vb = getValueBinding("onmouseover"); 268 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 269 } 270 271 public void setOnmouseup(String onmouseup) 272 { 273 _onmouseup = onmouseup; 274 } 275 276 public String getOnmouseup() 277 { 278 if (_onmouseup != null) return _onmouseup; 279 ValueBinding vb = getValueBinding("onmouseup"); 280 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 281 } 282 283 public void setRel(String rel) 284 { 285 _rel = rel; 286 } 287 288 public String getRel() 289 { 290 if (_rel != null) return _rel; 291 ValueBinding vb = getValueBinding("rel"); 292 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 293 } 294 295 public void setRev(String rev) 296 { 297 _rev = rev; 298 } 299 300 public String getRev() 301 { 302 if (_rev != null) return _rev; 303 ValueBinding vb = getValueBinding("rev"); 304 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 305 } 306 307 public void setShape(String shape) 308 { 309 _shape = shape; 310 } 311 312 public String getShape() 313 { 314 if (_shape != null) return _shape; 315 ValueBinding vb = getValueBinding("shape"); 316 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 317 } 318 319 public void setStyle(String style) 320 { 321 _style = style; 322 } 323 324 public String getStyle() 325 { 326 if (_style != null) return _style; 327 ValueBinding vb = getValueBinding("style"); 328 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 329 } 330 331 public void setStyleClass(String styleClass) 332 { 333 _styleClass = styleClass; 334 } 335 336 public String getStyleClass() 337 { 338 if (_styleClass != null) return _styleClass; 339 ValueBinding vb = getValueBinding("styleClass"); 340 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 341 } 342 343 public void setTabindex(String tabindex) 344 { 345 _tabindex = tabindex; 346 } 347 348 public String getTabindex() 349 { 350 if (_tabindex != null) return _tabindex; 351 ValueBinding vb = getValueBinding("tabindex"); 352 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 353 } 354 355 public void setTarget(String target) 356 { 357 _target = target; 358 } 359 360 public String getTarget() 361 { 362 if (_target != null) return _target; 363 ValueBinding vb = getValueBinding("target"); 364 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 365 } 366 367 public void setTitle(String title) 368 { 369 _title = title; 370 } 371 372 public String getTitle() 373 { 374 if (_title != null) return _title; 375 ValueBinding vb = getValueBinding("title"); 376 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 377 } 378 379 public void setType(String type) 380 { 381 _type = type; 382 } 383 384 public String getType() 385 { 386 if (_type != null) return _type; 387 ValueBinding vb = getValueBinding("type"); 388 return vb != null ? (String )vb.getValue(getFacesContext()) : null; 389 } 390 391 392 public Object saveState(FacesContext context) 393 { 394 Object values[] = new Object [28]; 395 values[0] = super.saveState(context); 396 values[1] = _accesskey; 397 values[2] = _charset; 398 values[3] = _coords; 399 values[4] = _dir; 400 values[5] = _hreflang; 401 values[6] = _lang; 402 values[7] = _onblur; 403 values[8] = _onclick; 404 values[9] = _ondblclick; 405 values[10] = _onfocus; 406 values[11] = _onkeydown; 407 values[12] = _onkeypress; 408 values[13] = _onkeyup; 409 values[14] = _onmousedown; 410 values[15] = _onmousemove; 411 values[16] = _onmouseout; 412 values[17] = _onmouseover; 413 values[18] = _onmouseup; 414 values[19] = _rel; 415 values[20] = _rev; 416 values[21] = _shape; 417 values[22] = _style; 418 values[23] = _styleClass; 419 values[24] = _tabindex; 420 values[25] = _target; 421 values[26] = _title; 422 values[27] = _type; 423 return ((Object ) (values)); 424 } 425 426 public void restoreState(FacesContext context, Object state) 427 { 428 Object values[] = (Object [])state; 429 super.restoreState(context, values[0]); 430 _accesskey = (String )values[1]; 431 _charset = (String )values[2]; 432 _coords = (String )values[3]; 433 _dir = (String )values[4]; 434 _hreflang = (String )values[5]; 435 _lang = (String )values[6]; 436 _onblur = (String )values[7]; 437 _onclick = (String )values[8]; 438 _ondblclick = (String )values[9]; 439 _onfocus = (String )values[10]; 440 _onkeydown = (String )values[11]; 441 _onkeypress = (String )values[12]; 442 _onkeyup = (String )values[13]; 443 _onmousedown = (String )values[14]; 444 _onmousemove = (String )values[15]; 445 _onmouseout = (String )values[16]; 446 _onmouseover = (String )values[17]; 447 _onmouseup = (String )values[18]; 448 _rel = (String )values[19]; 449 _rev = (String )values[20]; 450 _shape = (String )values[21]; 451 _style = (String )values[22]; 452 _styleClass = (String )values[23]; 453 _tabindex = (String )values[24]; 454 _target = (String )values[25]; 455 _title = (String )values[26]; 456 _type = (String )values[27]; 457 } 458 } 460 | Popular Tags |