1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 *
4 * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
5 *
6 * The contents of this file are subject to the terms of either the GNU
7 * General Public License Version 2 only ("GPL") or the Common Development
8 * and Distribution License("CDDL") (collectively, the "License"). You
9 * may not use this file except in compliance with the License. You can obtain
10 * a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
11 * or glassfish/bootstrap/legal/LICENSE.txt. See the License for the specific
12 * language governing permissions and limitations under the License.
13 *
14 * When distributing the software, include this License Header Notice in each
15 * file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
16 * Sun designates this particular file as subject to the "Classpath" exception
17 * as provided by Sun in the GPL Version 2 section of the License file that
18 * accompanied this code. If applicable, add the following below the License
19 * Header, with the fields enclosed by brackets [] replaced by your own
20 * identifying information: "Portions Copyrighted [year]
21 * [name of copyright owner]"
22 *
23 * Contributor(s):
24 *
25 * If you wish your version of this file to be governed by only the CDDL or
26 * only the GPL Version 2, indicate your decision by adding "[Contributor]
27 * elects to include this software in this distribution under the [CDDL or GPL
28 * Version 2] license." If you don't indicate a single choice of license, a
29 * recipient has the option to distribute your version of this file under
30 * either the CDDL, the GPL Version 2 or to extend the choice of license to
31 * its licensees as provided above. However, if you add GPL Version 2 code
32 * and therefore, elected the GPL Version 2 license, then the option applies
33 * only if the new code is made subject to such option by the copyright
34 * holder.
35 */
36 package javax.faces.component.html;
37
38 import java.io.IOException;
39 import java.util.List;
40 import java.util.ArrayList;
41 import java.util.Arrays;
42
43 import javax.faces.context.FacesContext;
44 import javax.el.MethodExpression;
45 import javax.el.ValueExpression;
46
47
48 /*
49 * ******* GENERATED CODE - DO NOT EDIT *******
50 */
51
52
53 /**
54 * <p>Represents a single-selection component that is rendered
55 * as a set of HTML <code>input</code> elements of type
56 * <code>radio</code>.</p>
57 * <p>By default, the <code>rendererType</code> property must be set to "<code>javax.faces.Radio</code>".
58 * This value can be changed by calling the <code>setRendererType()</code> method.</p>
59 */
60 public class HtmlSelectOneRadio extends javax.faces.component.UISelectOne {
61
62
63
64 private static final String[] OPTIMIZED_PACKAGES = {
65 "javax.faces.component",
66 "javax.faces.component.html"
67 };
68
69 public HtmlSelectOneRadio() {
70 super();
71 setRendererType("javax.faces.Radio");
72 }
73
74
75 /**
76 * <p>The standard component type for this component.</p>
77 */
78 public static final String COMPONENT_TYPE = "javax.faces.HtmlSelectOneRadio";
79
80
81 private java.lang.String accesskey;
82 /**
83 * <p>Return the value of the <code>accesskey</code> property.</p>
84 * <p>Contents: Access key that, when pressed, transfers focus
85 * to this element.
86 */
87 public java.lang.String getAccesskey() {
88 if (null != this.accesskey) {
89 return this.accesskey;
90 }
91 ValueExpression _ve = getValueExpression("accesskey");
92 if (_ve != null) {
93 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
94 } else {
95 return null;
96 }
97 }
98
99 /**
100 * <p>Set the value of the <code>accesskey</code> property.</p>
101 */
102 public void setAccesskey(java.lang.String accesskey) {
103 this.accesskey = accesskey;
104 handleAttribute("accesskey", accesskey);
105 }
106
107
108 private java.lang.Integer border;
109 /**
110 * <p>Return the value of the <code>border</code> property.</p>
111 * <p>Contents: Width (in pixels) of the border to be drawn
112 * around the table containing the options list.
113 */
114 public int getBorder() {
115 if (null != this.border) {
116 return this.border;
117 }
118 ValueExpression _ve = getValueExpression("border");
119 if (_ve != null) {
120 return (java.lang.Integer) _ve.getValue(getFacesContext().getELContext());
121 } else {
122 return Integer.MIN_VALUE;
123 }
124 }
125
126 /**
127 * <p>Set the value of the <code>border</code> property.</p>
128 */
129 public void setBorder(int border) {
130 this.border = border;
131 handleAttribute("border", border);
132 }
133
134
135 private java.lang.String dir;
136 /**
137 * <p>Return the value of the <code>dir</code> property.</p>
138 * <p>Contents: Direction indication for text that does not inherit directionality.
139 * Valid values are "LTR" (left-to-right) and "RTL" (right-to-left).
140 */
141 public java.lang.String getDir() {
142 if (null != this.dir) {
143 return this.dir;
144 }
145 ValueExpression _ve = getValueExpression("dir");
146 if (_ve != null) {
147 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
148 } else {
149 return null;
150 }
151 }
152
153 /**
154 * <p>Set the value of the <code>dir</code> property.</p>
155 */
156 public void setDir(java.lang.String dir) {
157 this.dir = dir;
158 handleAttribute("dir", dir);
159 }
160
161
162 private java.lang.Boolean disabled;
163 /**
164 * <p>Return the value of the <code>disabled</code> property.</p>
165 * <p>Contents: Flag indicating that this element must never receive focus or
166 * be included in a subsequent submit. A value of false causes
167 * no attribute to be rendered, while a value of true causes the
168 * attribute to be rendered as disabled="disabled".
169 */
170 public boolean isDisabled() {
171 if (null != this.disabled) {
172 return this.disabled;
173 }
174 ValueExpression _ve = getValueExpression("disabled");
175 if (_ve != null) {
176 return (java.lang.Boolean) _ve.getValue(getFacesContext().getELContext());
177 } else {
178 return false;
179 }
180 }
181
182 /**
183 * <p>Set the value of the <code>disabled</code> property.</p>
184 */
185 public void setDisabled(boolean disabled) {
186 this.disabled = disabled;
187 }
188
189
190 private java.lang.String disabledClass;
191 /**
192 * <p>Return the value of the <code>disabledClass</code> property.</p>
193 * <p>Contents: CSS style class to apply to the rendered label
194 * on disabled options.
195 */
196 public java.lang.String getDisabledClass() {
197 if (null != this.disabledClass) {
198 return this.disabledClass;
199 }
200 ValueExpression _ve = getValueExpression("disabledClass");
201 if (_ve != null) {
202 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
203 } else {
204 return null;
205 }
206 }
207
208 /**
209 * <p>Set the value of the <code>disabledClass</code> property.</p>
210 */
211 public void setDisabledClass(java.lang.String disabledClass) {
212 this.disabledClass = disabledClass;
213 }
214
215
216 private java.lang.String enabledClass;
217 /**
218 * <p>Return the value of the <code>enabledClass</code> property.</p>
219 * <p>Contents: CSS style class to apply to the rendered label
220 * on enabled options.
221 */
222 public java.lang.String getEnabledClass() {
223 if (null != this.enabledClass) {
224 return this.enabledClass;
225 }
226 ValueExpression _ve = getValueExpression("enabledClass");
227 if (_ve != null) {
228 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
229 } else {
230 return null;
231 }
232 }
233
234 /**
235 * <p>Set the value of the <code>enabledClass</code> property.</p>
236 */
237 public void setEnabledClass(java.lang.String enabledClass) {
238 this.enabledClass = enabledClass;
239 }
240
241
242 private java.lang.String label;
243 /**
244 * <p>Return the value of the <code>label</code> property.</p>
245 * <p>Contents: A localized user presentable name for this component.
246 */
247 public java.lang.String getLabel() {
248 if (null != this.label) {
249 return this.label;
250 }
251 ValueExpression _ve = getValueExpression("label");
252 if (_ve != null) {
253 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
254 } else {
255 return null;
256 }
257 }
258
259 /**
260 * <p>Set the value of the <code>label</code> property.</p>
261 */
262 public void setLabel(java.lang.String label) {
263 this.label = label;
264 }
265
266
267 private java.lang.String lang;
268 /**
269 * <p>Return the value of the <code>lang</code> property.</p>
270 * <p>Contents: Code describing the language used in the generated markup
271 * for this component.
272 */
273 public java.lang.String getLang() {
274 if (null != this.lang) {
275 return this.lang;
276 }
277 ValueExpression _ve = getValueExpression("lang");
278 if (_ve != null) {
279 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
280 } else {
281 return null;
282 }
283 }
284
285 /**
286 * <p>Set the value of the <code>lang</code> property.</p>
287 */
288 public void setLang(java.lang.String lang) {
289 this.lang = lang;
290 handleAttribute("lang", lang);
291 }
292
293
294 private java.lang.String layout;
295 /**
296 * <p>Return the value of the <code>layout</code> property.</p>
297 * <p>Contents: Orientation of the options list to be created.
298 * Valid values are "pageDirection" (list is laid
299 * out vertically), or "lineDirection" (list is
300 * laid out horizontally). If not specified, the
301 * default value is "lineDirection".
302 */
303 public java.lang.String getLayout() {
304 if (null != this.layout) {
305 return this.layout;
306 }
307 ValueExpression _ve = getValueExpression("layout");
308 if (_ve != null) {
309 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
310 } else {
311 return null;
312 }
313 }
314
315 /**
316 * <p>Set the value of the <code>layout</code> property.</p>
317 */
318 public void setLayout(java.lang.String layout) {
319 this.layout = layout;
320 }
321
322
323 private java.lang.String onblur;
324 /**
325 * <p>Return the value of the <code>onblur</code> property.</p>
326 * <p>Contents: Javascript code executed when this element loses focus.
327 */
328 public java.lang.String getOnblur() {
329 if (null != this.onblur) {
330 return this.onblur;
331 }
332 ValueExpression _ve = getValueExpression("onblur");
333 if (_ve != null) {
334 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
335 } else {
336 return null;
337 }
338 }
339
340 /**
341 * <p>Set the value of the <code>onblur</code> property.</p>
342 */
343 public void setOnblur(java.lang.String onblur) {
344 this.onblur = onblur;
345 handleAttribute("onblur", onblur);
346 }
347
348
349 private java.lang.String onchange;
350 /**
351 * <p>Return the value of the <code>onchange</code> property.</p>
352 * <p>Contents: Javascript code executed when this element loses focus
353 * and its value has been modified since gaining focus.
354 */
355 public java.lang.String getOnchange() {
356 if (null != this.onchange) {
357 return this.onchange;
358 }
359 ValueExpression _ve = getValueExpression("onchange");
360 if (_ve != null) {
361 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
362 } else {
363 return null;
364 }
365 }
366
367 /**
368 * <p>Set the value of the <code>onchange</code> property.</p>
369 */
370 public void setOnchange(java.lang.String onchange) {
371 this.onchange = onchange;
372 handleAttribute("onchange", onchange);
373 }
374
375
376 private java.lang.String onclick;
377 /**
378 * <p>Return the value of the <code>onclick</code> property.</p>
379 * <p>Contents: Javascript code executed when a pointer button is
380 * clicked over this element.
381 */
382 public java.lang.String getOnclick() {
383 if (null != this.onclick) {
384 return this.onclick;
385 }
386 ValueExpression _ve = getValueExpression("onclick");
387 if (_ve != null) {
388 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
389 } else {
390 return null;
391 }
392 }
393
394 /**
395 * <p>Set the value of the <code>onclick</code> property.</p>
396 */
397 public void setOnclick(java.lang.String onclick) {
398 this.onclick = onclick;
399 handleAttribute("onclick", onclick);
400 }
401
402
403 private java.lang.String ondblclick;
404 /**
405 * <p>Return the value of the <code>ondblclick</code> property.</p>
406 * <p>Contents: Javascript code executed when a pointer button is
407 * double clicked over this element.
408 */
409 public java.lang.String getOndblclick() {
410 if (null != this.ondblclick) {
411 return this.ondblclick;
412 }
413 ValueExpression _ve = getValueExpression("ondblclick");
414 if (_ve != null) {
415 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
416 } else {
417 return null;
418 }
419 }
420
421 /**
422 * <p>Set the value of the <code>ondblclick</code> property.</p>
423 */
424 public void setOndblclick(java.lang.String ondblclick) {
425 this.ondblclick = ondblclick;
426 handleAttribute("ondblclick", ondblclick);
427 }
428
429
430 private java.lang.String onfocus;
431 /**
432 * <p>Return the value of the <code>onfocus</code> property.</p>
433 * <p>Contents: Javascript code executed when this element receives focus.
434 */
435 public java.lang.String getOnfocus() {
436 if (null != this.onfocus) {
437 return this.onfocus;
438 }
439 ValueExpression _ve = getValueExpression("onfocus");
440 if (_ve != null) {
441 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
442 } else {
443 return null;
444 }
445 }
446
447 /**
448 * <p>Set the value of the <code>onfocus</code> property.</p>
449 */
450 public void setOnfocus(java.lang.String onfocus) {
451 this.onfocus = onfocus;
452 handleAttribute("onfocus", onfocus);
453 }
454
455
456 private java.lang.String onkeydown;
457 /**
458 * <p>Return the value of the <code>onkeydown</code> property.</p>
459 * <p>Contents: Javascript code executed when a key is
460 * pressed down over this element.
461 */
462 public java.lang.String getOnkeydown() {
463 if (null != this.onkeydown) {
464 return this.onkeydown;
465 }
466 ValueExpression _ve = getValueExpression("onkeydown");
467 if (_ve != null) {
468 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
469 } else {
470 return null;
471 }
472 }
473
474 /**
475 * <p>Set the value of the <code>onkeydown</code> property.</p>
476 */
477 public void setOnkeydown(java.lang.String onkeydown) {
478 this.onkeydown = onkeydown;
479 handleAttribute("onkeydown", onkeydown);
480 }
481
482
483 private java.lang.String onkeypress;
484 /**
485 * <p>Return the value of the <code>onkeypress</code> property.</p>
486 * <p>Contents: Javascript code executed when a key is
487 * pressed and released over this element.
488 */
489 public java.lang.String getOnkeypress() {
490 if (null != this.onkeypress) {
491 return this.onkeypress;
492 }
493 ValueExpression _ve = getValueExpression("onkeypress");
494 if (_ve != null) {
495 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
496 } else {
497 return null;
498 }
499 }
500
501 /**
502 * <p>Set the value of the <code>onkeypress</code> property.</p>
503 */
504 public void setOnkeypress(java.lang.String onkeypress) {
505 this.onkeypress = onkeypress;
506 handleAttribute("onkeypress", onkeypress);
507 }
508
509
510 private java.lang.String onkeyup;
511 /**
512 * <p>Return the value of the <code>onkeyup</code> property.</p>
513 * <p>Contents: Javascript code executed when a key is
514 * released over this element.
515 */
516 public java.lang.String getOnkeyup() {
517 if (null != this.onkeyup) {
518 return this.onkeyup;
519 }
520 ValueExpression _ve = getValueExpression("onkeyup");
521 if (_ve != null) {
522 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
523 } else {
524 return null;
525 }
526 }
527
528 /**
529 * <p>Set the value of the <code>onkeyup</code> property.</p>
530 */
531 public void setOnkeyup(java.lang.String onkeyup) {
532 this.onkeyup = onkeyup;
533 handleAttribute("onkeyup", onkeyup);
534 }
535
536
537 private java.lang.String onmousedown;
538 /**
539 * <p>Return the value of the <code>onmousedown</code> property.</p>
540 * <p>Contents: Javascript code executed when a pointer button is
541 * pressed down over this element.
542 */
543 public java.lang.String getOnmousedown() {
544 if (null != this.onmousedown) {
545 return this.onmousedown;
546 }
547 ValueExpression _ve = getValueExpression("onmousedown");
548 if (_ve != null) {
549 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
550 } else {
551 return null;
552 }
553 }
554
555 /**
556 * <p>Set the value of the <code>onmousedown</code> property.</p>
557 */
558 public void setOnmousedown(java.lang.String onmousedown) {
559 this.onmousedown = onmousedown;
560 handleAttribute("onmousedown", onmousedown);
561 }
562
563
564 private java.lang.String onmousemove;
565 /**
566 * <p>Return the value of the <code>onmousemove</code> property.</p>
567 * <p>Contents: Javascript code executed when a pointer button is
568 * moved within this element.
569 */
570 public java.lang.String getOnmousemove() {
571 if (null != this.onmousemove) {
572 return this.onmousemove;
573 }
574 ValueExpression _ve = getValueExpression("onmousemove");
575 if (_ve != null) {
576 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
577 } else {
578 return null;
579 }
580 }
581
582 /**
583 * <p>Set the value of the <code>onmousemove</code> property.</p>
584 */
585 public void setOnmousemove(java.lang.String onmousemove) {
586 this.onmousemove = onmousemove;
587 handleAttribute("onmousemove", onmousemove);
588 }
589
590
591 private java.lang.String onmouseout;
592 /**
593 * <p>Return the value of the <code>onmouseout</code> property.</p>
594 * <p>Contents: Javascript code executed when a pointer button is
595 * moved away from this element.
596 */
597 public java.lang.String getOnmouseout() {
598 if (null != this.onmouseout) {
599 return this.onmouseout;
600 }
601 ValueExpression _ve = getValueExpression("onmouseout");
602 if (_ve != null) {
603 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
604 } else {
605 return null;
606 }
607 }
608
609 /**
610 * <p>Set the value of the <code>onmouseout</code> property.</p>
611 */
612 public void setOnmouseout(java.lang.String onmouseout) {
613 this.onmouseout = onmouseout;
614 handleAttribute("onmouseout", onmouseout);
615 }
616
617
618 private java.lang.String onmouseover;
619 /**
620 * <p>Return the value of the <code>onmouseover</code> property.</p>
621 * <p>Contents: Javascript code executed when a pointer button is
622 * moved onto this element.
623 */
624 public java.lang.String getOnmouseover() {
625 if (null != this.onmouseover) {
626 return this.onmouseover;
627 }
628 ValueExpression _ve = getValueExpression("onmouseover");
629 if (_ve != null) {
630 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
631 } else {
632 return null;
633 }
634 }
635
636 /**
637 * <p>Set the value of the <code>onmouseover</code> property.</p>
638 */
639 public void setOnmouseover(java.lang.String onmouseover) {
640 this.onmouseover = onmouseover;
641 handleAttribute("onmouseover", onmouseover);
642 }
643
644
645 private java.lang.String onmouseup;
646 /**
647 * <p>Return the value of the <code>onmouseup</code> property.</p>
648 * <p>Contents: Javascript code executed when a pointer button is
649 * released over this element.
650 */
651 public java.lang.String getOnmouseup() {
652 if (null != this.onmouseup) {
653 return this.onmouseup;
654 }
655 ValueExpression _ve = getValueExpression("onmouseup");
656 if (_ve != null) {
657 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
658 } else {
659 return null;
660 }
661 }
662
663 /**
664 * <p>Set the value of the <code>onmouseup</code> property.</p>
665 */
666 public void setOnmouseup(java.lang.String onmouseup) {
667 this.onmouseup = onmouseup;
668 handleAttribute("onmouseup", onmouseup);
669 }
670
671
672 private java.lang.String onselect;
673 /**
674 * <p>Return the value of the <code>onselect</code> property.</p>
675 * <p>Contents: Javascript code executed when text within this
676 * element is selected by the user.
677 */
678 public java.lang.String getOnselect() {
679 if (null != this.onselect) {
680 return this.onselect;
681 }
682 ValueExpression _ve = getValueExpression("onselect");
683 if (_ve != null) {
684 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
685 } else {
686 return null;
687 }
688 }
689
690 /**
691 * <p>Set the value of the <code>onselect</code> property.</p>
692 */
693 public void setOnselect(java.lang.String onselect) {
694 this.onselect = onselect;
695 handleAttribute("onselect", onselect);
696 }
697
698
699 private java.lang.Boolean readonly;
700 /**
701 * <p>Return the value of the <code>readonly</code> property.</p>
702 * <p>Contents: Flag indicating that this component will prohibit changes by
703 * the user. The element may receive focus unless it has also
704 * been disabled. A value of false causes
705 * no attribute to be rendered, while a value of true causes the
706 * attribute to be rendered as readonly="readonly".
707 */
708 public boolean isReadonly() {
709 if (null != this.readonly) {
710 return this.readonly;
711 }
712 ValueExpression _ve = getValueExpression("readonly");
713 if (_ve != null) {
714 return (java.lang.Boolean) _ve.getValue(getFacesContext().getELContext());
715 } else {
716 return false;
717 }
718 }
719
720 /**
721 * <p>Set the value of the <code>readonly</code> property.</p>
722 */
723 public void setReadonly(boolean readonly) {
724 this.readonly = readonly;
725 }
726
727
728 private java.lang.String style;
729 /**
730 * <p>Return the value of the <code>style</code> property.</p>
731 * <p>Contents: CSS style(s) to be applied when this component is rendered.
732 */
733 public java.lang.String getStyle() {
734 if (null != this.style) {
735 return this.style;
736 }
737 ValueExpression _ve = getValueExpression("style");
738 if (_ve != null) {
739 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
740 } else {
741 return null;
742 }
743 }
744
745 /**
746 * <p>Set the value of the <code>style</code> property.</p>
747 */
748 public void setStyle(java.lang.String style) {
749 this.style = style;
750 handleAttribute("style", style);
751 }
752
753
754 private java.lang.String styleClass;
755 /**
756 * <p>Return the value of the <code>styleClass</code> property.</p>
757 * <p>Contents: Space-separated list of CSS style class(es) to be applied when
758 * this element is rendered. This value must be passed through
759 * as the "class" attribute on generated markup.
760 */
761 public java.lang.String getStyleClass() {
762 if (null != this.styleClass) {
763 return this.styleClass;
764 }
765 ValueExpression _ve = getValueExpression("styleClass");
766 if (_ve != null) {
767 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
768 } else {
769 return null;
770 }
771 }
772
773 /**
774 * <p>Set the value of the <code>styleClass</code> property.</p>
775 */
776 public void setStyleClass(java.lang.String styleClass) {
777 this.styleClass = styleClass;
778 }
779
780
781 private java.lang.String tabindex;
782 /**
783 * <p>Return the value of the <code>tabindex</code> property.</p>
784 * <p>Contents: Position of this element in the tabbing order
785 * for the current document. This value must be
786 * an integer between 0 and 32767.
787 */
788 public java.lang.String getTabindex() {
789 if (null != this.tabindex) {
790 return this.tabindex;
791 }
792 ValueExpression _ve = getValueExpression("tabindex");
793 if (_ve != null) {
794 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
795 } else {
796 return null;
797 }
798 }
799
800 /**
801 * <p>Set the value of the <code>tabindex</code> property.</p>
802 */
803 public void setTabindex(java.lang.String tabindex) {
804 this.tabindex = tabindex;
805 handleAttribute("tabindex", tabindex);
806 }
807
808
809 private java.lang.String title;
810 /**
811 * <p>Return the value of the <code>title</code> property.</p>
812 * <p>Contents: Advisory title information about markup elements generated
813 * for this component.
814 */
815 public java.lang.String getTitle() {
816 if (null != this.title) {
817 return this.title;
818 }
819 ValueExpression _ve = getValueExpression("title");
820 if (_ve != null) {
821 return (java.lang.String) _ve.getValue(getFacesContext().getELContext());
822 } else {
823 return null;
824 }
825 }
826
827 /**
828 * <p>Set the value of the <code>title</code> property.</p>
829 */
830 public void setTitle(java.lang.String title) {
831 this.title = title;
832 handleAttribute("title", title);
833 }
834
835
836 private Object[] _values;
837
838 public Object saveState(FacesContext _context) {
839 if (_values == null) {
840 _values = new Object[29];
841 }
842 _values[0] = super.saveState(_context);
843 _values[1] = accesskey;
844 _values[2] = border;
845 _values[3] = dir;
846 _values[4] = disabled;
847 _values[5] = disabledClass;
848 _values[6] = enabledClass;
849 _values[7] = label;
850 _values[8] = lang;
851 _values[9] = layout;
852 _values[10] = onblur;
853 _values[11] = onchange;
854 _values[12] = onclick;
855 _values[13] = ondblclick;
856 _values[14] = onfocus;
857 _values[15] = onkeydown;
858 _values[16] = onkeypress;
859 _values[17] = onkeyup;
860 _values[18] = onmousedown;
861 _values[19] = onmousemove;
862 _values[20] = onmouseout;
863 _values[21] = onmouseover;
864 _values[22] = onmouseup;
865 _values[23] = onselect;
866 _values[24] = readonly;
867 _values[25] = style;
868 _values[26] = styleClass;
869 _values[27] = tabindex;
870 _values[28] = title;
871 return _values;
872 }
873
874
875 public void restoreState(FacesContext _context, Object _state) {
876 _values = (Object[]) _state;
877 super.restoreState(_context, _values[0]);
878 this.accesskey = (java.lang.String) _values[1];
879 this.border = (java.lang.Integer) _values[2];
880 this.dir = (java.lang.String) _values[3];
881 this.disabled = (java.lang.Boolean) _values[4];
882 this.disabledClass = (java.lang.String) _values[5];
883 this.enabledClass = (java.lang.String) _values[6];
884 this.label = (java.lang.String) _values[7];
885 this.lang = (java.lang.String) _values[8];
886 this.layout = (java.lang.String) _values[9];
887 this.onblur = (java.lang.String) _values[10];
888 this.onchange = (java.lang.String) _values[11];
889 this.onclick = (java.lang.String) _values[12];
890 this.ondblclick = (java.lang.String) _values[13];
891 this.onfocus = (java.lang.String) _values[14];
892 this.onkeydown = (java.lang.String) _values[15];
893 this.onkeypress = (java.lang.String) _values[16];
894 this.onkeyup = (java.lang.String) _values[17];
895 this.onmousedown = (java.lang.String) _values[18];
896 this.onmousemove = (java.lang.String) _values[19];
897 this.onmouseout = (java.lang.String) _values[20];
898 this.onmouseover = (java.lang.String) _values[21];
899 this.onmouseup = (java.lang.String) _values[22];
900 this.onselect = (java.lang.String) _values[23];
901 this.readonly = (java.lang.Boolean) _values[24];
902 this.style = (java.lang.String) _values[25];
903 this.styleClass = (java.lang.String) _values[26];
904 this.tabindex = (java.lang.String) _values[27];
905 this.title = (java.lang.String) _values[28];
906 }
907
908
909 private void handleAttribute(String name, Object value) {
910 List<String> setAttributes = null;
911 String pkg = this.getClass().getPackage().getName();
912 if (Arrays.binarySearch(OPTIMIZED_PACKAGES, pkg) >= 0) {
913 setAttributes = (List<String>) this.getAttributes().get("javax.faces.component.UIComponentBase.attributesThatAreSet");
914 if (setAttributes == null) {
915 setAttributes = new ArrayList<String>(6);
916 this.getAttributes().put("javax.faces.component.UIComponentBase.attributesThatAreSet", setAttributes);
917 }
918 if (value == null) {
919 setAttributes.remove(name);
920 } else if (!setAttributes.contains(name)) {
921 setAttributes.add(name);
922 }
923 }
924 }
925
926 }