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