001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041: package com.sun.rave.web.ui.component;
042:
043: import java.io.IOException;
044: import javax.faces.component.UIComponent;
045: import javax.faces.context.FacesContext;
046: import javax.faces.el.MethodBinding;
047: import javax.faces.el.ValueBinding;
048:
049: /**
050: * Base component for UI components that allow the user to make a
051: * selection from a set of options.
052: * <p>Auto-generated component class.
053: * Do <strong>NOT</strong> modify; all changes
054: * <strong>will</strong> be lost!</p>
055: */
056:
057: public abstract class SelectorBase extends
058: javax.faces.component.UIInput {
059:
060: /**
061: * <p>Construct a new <code>SelectorBase</code>.</p>
062: */
063: public SelectorBase() {
064: super ();
065: setRendererType("com.sun.rave.web.ui.Selector");
066: }
067:
068: /**
069: * <p>Return the identifier of the component family to which this
070: * component belongs. This identifier, in conjunction with the value
071: * of the <code>rendererType</code> property, may be used to select
072: * the appropriate {@link Renderer} for this component instance.</p>
073: */
074: public String getFamily() {
075: return "com.sun.rave.web.ui.Selector";
076: }
077:
078: /**
079: * <p>Return the <code>ValueBinding</code> stored for the
080: * specified name (if any), respecting any property aliases.</p>
081: *
082: * @param name Name of value binding to retrieve
083: */
084: public ValueBinding getValueBinding(String name) {
085: if (name.equals("selected")) {
086: return super .getValueBinding("value");
087: }
088: return super .getValueBinding(name);
089: }
090:
091: /**
092: * <p>Set the <code>ValueBinding</code> stored for the
093: * specified name (if any), respecting any property
094: * aliases.</p>
095: *
096: * @param name Name of value binding to set
097: * @param binding ValueBinding to set, or null to remove
098: */
099: public void setValueBinding(String name, ValueBinding binding) {
100: if (name.equals("selected")) {
101: super .setValueBinding("value", binding);
102: return;
103: }
104: super .setValueBinding(name, binding);
105: }
106:
107: // disabled
108: private boolean disabled = false;
109: private boolean disabled_set = false;
110:
111: /**
112: * <p>Flag indicating that the user is not permitted to activate this
113: * component, and that the component's value will not be submitted with the
114: * form.</p>
115: */
116: public boolean isDisabled() {
117: if (this .disabled_set) {
118: return this .disabled;
119: }
120: ValueBinding _vb = getValueBinding("disabled");
121: if (_vb != null) {
122: Object _result = _vb.getValue(getFacesContext());
123: if (_result == null) {
124: return false;
125: } else {
126: return ((Boolean) _result).booleanValue();
127: }
128: }
129: return false;
130: }
131:
132: /**
133: * <p>Flag indicating that the user is not permitted to activate this
134: * component, and that the component's value will not be submitted with the
135: * form.</p>
136: * @see #isDisabled()
137: */
138: public void setDisabled(boolean disabled) {
139: this .disabled = disabled;
140: this .disabled_set = true;
141: }
142:
143: // items
144: private Object items = null;
145:
146: /**
147: * <p>Specifies the options that the web application user can choose
148: * from. The value must be one of an array, Map or Collection
149: * whose members are all subclasses of<code>com.sun.rave.web.ui.model.Option</code>.</p>
150: */
151: public Object getItems() {
152: if (this .items != null) {
153: return this .items;
154: }
155: ValueBinding _vb = getValueBinding("items");
156: if (_vb != null) {
157: return (Object) _vb.getValue(getFacesContext());
158: }
159: return null;
160: }
161:
162: /**
163: * <p>Specifies the options that the web application user can choose
164: * from. The value must be one of an array, Map or Collection
165: * whose members are all subclasses of<code>com.sun.rave.web.ui.model.Option</code>.</p>
166: * @see #getItems()
167: */
168: public void setItems(Object items) {
169: this .items = items;
170: }
171:
172: // label
173: private String label = null;
174:
175: /**
176: * <p>If set, a label is rendered adjacent to the component with the
177: * value of this attribute as the label text.</p>
178: */
179: public String getLabel() {
180: if (this .label != null) {
181: return this .label;
182: }
183: ValueBinding _vb = getValueBinding("label");
184: if (_vb != null) {
185: return (String) _vb.getValue(getFacesContext());
186: }
187: return null;
188: }
189:
190: /**
191: * <p>If set, a label is rendered adjacent to the component with the
192: * value of this attribute as the label text.</p>
193: * @see #getLabel()
194: */
195: public void setLabel(String label) {
196: this .label = label;
197: }
198:
199: // labelLevel
200: private int labelLevel = Integer.MIN_VALUE;
201: private boolean labelLevel_set = false;
202:
203: /**
204: * <p>Sets the style level for the generated label, provided the
205: * label attribute has been set. Valid values are 1 (largest), 2 and
206: * 3 (smallest). The default value is 2.</p>
207: */
208: public int getLabelLevel() {
209: if (this .labelLevel_set) {
210: return this .labelLevel;
211: }
212: ValueBinding _vb = getValueBinding("labelLevel");
213: if (_vb != null) {
214: Object _result = _vb.getValue(getFacesContext());
215: if (_result == null) {
216: return Integer.MIN_VALUE;
217: } else {
218: return ((Integer) _result).intValue();
219: }
220: }
221: return 2;
222: }
223:
224: /**
225: * <p>Sets the style level for the generated label, provided the
226: * label attribute has been set. Valid values are 1 (largest), 2 and
227: * 3 (smallest). The default value is 2.</p>
228: * @see #getLabelLevel()
229: */
230: public void setLabelLevel(int labelLevel) {
231: this .labelLevel = labelLevel;
232: this .labelLevel_set = true;
233: }
234:
235: // onBlur
236: private String onBlur = null;
237:
238: /**
239: * <p>Scripting code executed when this element loses focus.</p>
240: */
241: public String getOnBlur() {
242: if (this .onBlur != null) {
243: return this .onBlur;
244: }
245: ValueBinding _vb = getValueBinding("onBlur");
246: if (_vb != null) {
247: return (String) _vb.getValue(getFacesContext());
248: }
249: return null;
250: }
251:
252: /**
253: * <p>Scripting code executed when this element loses focus.</p>
254: * @see #getOnBlur()
255: */
256: public void setOnBlur(String onBlur) {
257: this .onBlur = onBlur;
258: }
259:
260: // onChange
261: private String onChange = null;
262:
263: /**
264: * <p>Scripting code executed when the element
265: * value of this component is changed.</p>
266: */
267: public String getOnChange() {
268: if (this .onChange != null) {
269: return this .onChange;
270: }
271: ValueBinding _vb = getValueBinding("onChange");
272: if (_vb != null) {
273: return (String) _vb.getValue(getFacesContext());
274: }
275: return null;
276: }
277:
278: /**
279: * <p>Scripting code executed when the element
280: * value of this component is changed.</p>
281: * @see #getOnChange()
282: */
283: public void setOnChange(String onChange) {
284: this .onChange = onChange;
285: }
286:
287: // onClick
288: private String onClick = null;
289:
290: /**
291: * <p>Scripting code executed when a mouse click
292: * occurs over this component.</p>
293: */
294: public String getOnClick() {
295: if (this .onClick != null) {
296: return this .onClick;
297: }
298: ValueBinding _vb = getValueBinding("onClick");
299: if (_vb != null) {
300: return (String) _vb.getValue(getFacesContext());
301: }
302: return null;
303: }
304:
305: /**
306: * <p>Scripting code executed when a mouse click
307: * occurs over this component.</p>
308: * @see #getOnClick()
309: */
310: public void setOnClick(String onClick) {
311: this .onClick = onClick;
312: }
313:
314: // onDblClick
315: private String onDblClick = null;
316:
317: /**
318: * <p>Scripting code executed when a mouse double click
319: * occurs over this component.</p>
320: */
321: public String getOnDblClick() {
322: if (this .onDblClick != null) {
323: return this .onDblClick;
324: }
325: ValueBinding _vb = getValueBinding("onDblClick");
326: if (_vb != null) {
327: return (String) _vb.getValue(getFacesContext());
328: }
329: return null;
330: }
331:
332: /**
333: * <p>Scripting code executed when a mouse double click
334: * occurs over this component.</p>
335: * @see #getOnDblClick()
336: */
337: public void setOnDblClick(String onDblClick) {
338: this .onDblClick = onDblClick;
339: }
340:
341: // onFocus
342: private String onFocus = null;
343:
344: /**
345: * <p>Scripting code executed when this component receives focus. An
346: * element receives focus when the user selects the element by pressing
347: * the tab key or clicking the mouse.</p>
348: */
349: public String getOnFocus() {
350: if (this .onFocus != null) {
351: return this .onFocus;
352: }
353: ValueBinding _vb = getValueBinding("onFocus");
354: if (_vb != null) {
355: return (String) _vb.getValue(getFacesContext());
356: }
357: return null;
358: }
359:
360: /**
361: * <p>Scripting code executed when this component receives focus. An
362: * element receives focus when the user selects the element by pressing
363: * the tab key or clicking the mouse.</p>
364: * @see #getOnFocus()
365: */
366: public void setOnFocus(String onFocus) {
367: this .onFocus = onFocus;
368: }
369:
370: // onKeyDown
371: private String onKeyDown = null;
372:
373: /**
374: * <p>Scripting code executed when the user presses down on a key while the
375: * component has focus.</p>
376: */
377: public String getOnKeyDown() {
378: if (this .onKeyDown != null) {
379: return this .onKeyDown;
380: }
381: ValueBinding _vb = getValueBinding("onKeyDown");
382: if (_vb != null) {
383: return (String) _vb.getValue(getFacesContext());
384: }
385: return null;
386: }
387:
388: /**
389: * <p>Scripting code executed when the user presses down on a key while the
390: * component has focus.</p>
391: * @see #getOnKeyDown()
392: */
393: public void setOnKeyDown(String onKeyDown) {
394: this .onKeyDown = onKeyDown;
395: }
396:
397: // onKeyPress
398: private String onKeyPress = null;
399:
400: /**
401: * <p>Scripting code executed when the user presses and releases a key while
402: * the component has focus.</p>
403: */
404: public String getOnKeyPress() {
405: if (this .onKeyPress != null) {
406: return this .onKeyPress;
407: }
408: ValueBinding _vb = getValueBinding("onKeyPress");
409: if (_vb != null) {
410: return (String) _vb.getValue(getFacesContext());
411: }
412: return null;
413: }
414:
415: /**
416: * <p>Scripting code executed when the user presses and releases a key while
417: * the component has focus.</p>
418: * @see #getOnKeyPress()
419: */
420: public void setOnKeyPress(String onKeyPress) {
421: this .onKeyPress = onKeyPress;
422: }
423:
424: // onKeyUp
425: private String onKeyUp = null;
426:
427: /**
428: * <p>Scripting code executed when the user releases a key while the
429: * component has focus.</p>
430: */
431: public String getOnKeyUp() {
432: if (this .onKeyUp != null) {
433: return this .onKeyUp;
434: }
435: ValueBinding _vb = getValueBinding("onKeyUp");
436: if (_vb != null) {
437: return (String) _vb.getValue(getFacesContext());
438: }
439: return null;
440: }
441:
442: /**
443: * <p>Scripting code executed when the user releases a key while the
444: * component has focus.</p>
445: * @see #getOnKeyUp()
446: */
447: public void setOnKeyUp(String onKeyUp) {
448: this .onKeyUp = onKeyUp;
449: }
450:
451: // onMouseDown
452: private String onMouseDown = null;
453:
454: /**
455: * <p>Scripting code executed when the user presses a mouse button while the
456: * mouse pointer is on the component.</p>
457: */
458: public String getOnMouseDown() {
459: if (this .onMouseDown != null) {
460: return this .onMouseDown;
461: }
462: ValueBinding _vb = getValueBinding("onMouseDown");
463: if (_vb != null) {
464: return (String) _vb.getValue(getFacesContext());
465: }
466: return null;
467: }
468:
469: /**
470: * <p>Scripting code executed when the user presses a mouse button while the
471: * mouse pointer is on the component.</p>
472: * @see #getOnMouseDown()
473: */
474: public void setOnMouseDown(String onMouseDown) {
475: this .onMouseDown = onMouseDown;
476: }
477:
478: // onMouseMove
479: private String onMouseMove = null;
480:
481: /**
482: * <p>Scripting code executed when the user moves the mouse pointer while
483: * over the component.</p>
484: */
485: public String getOnMouseMove() {
486: if (this .onMouseMove != null) {
487: return this .onMouseMove;
488: }
489: ValueBinding _vb = getValueBinding("onMouseMove");
490: if (_vb != null) {
491: return (String) _vb.getValue(getFacesContext());
492: }
493: return null;
494: }
495:
496: /**
497: * <p>Scripting code executed when the user moves the mouse pointer while
498: * over the component.</p>
499: * @see #getOnMouseMove()
500: */
501: public void setOnMouseMove(String onMouseMove) {
502: this .onMouseMove = onMouseMove;
503: }
504:
505: // onMouseOut
506: private String onMouseOut = null;
507:
508: /**
509: * <p>Scripting code executed when a mouse out movement
510: * occurs over this component.</p>
511: */
512: public String getOnMouseOut() {
513: if (this .onMouseOut != null) {
514: return this .onMouseOut;
515: }
516: ValueBinding _vb = getValueBinding("onMouseOut");
517: if (_vb != null) {
518: return (String) _vb.getValue(getFacesContext());
519: }
520: return null;
521: }
522:
523: /**
524: * <p>Scripting code executed when a mouse out movement
525: * occurs over this component.</p>
526: * @see #getOnMouseOut()
527: */
528: public void setOnMouseOut(String onMouseOut) {
529: this .onMouseOut = onMouseOut;
530: }
531:
532: // onMouseOver
533: private String onMouseOver = null;
534:
535: /**
536: * <p>Scripting code executed when the user moves the mouse pointer into
537: * the boundary of this component.</p>
538: */
539: public String getOnMouseOver() {
540: if (this .onMouseOver != null) {
541: return this .onMouseOver;
542: }
543: ValueBinding _vb = getValueBinding("onMouseOver");
544: if (_vb != null) {
545: return (String) _vb.getValue(getFacesContext());
546: }
547: return null;
548: }
549:
550: /**
551: * <p>Scripting code executed when the user moves the mouse pointer into
552: * the boundary of this component.</p>
553: * @see #getOnMouseOver()
554: */
555: public void setOnMouseOver(String onMouseOver) {
556: this .onMouseOver = onMouseOver;
557: }
558:
559: // onMouseUp
560: private String onMouseUp = null;
561:
562: /**
563: * <p>Scripting code executed when the user releases a mouse button while
564: * the mouse pointer is on the component.</p>
565: */
566: public String getOnMouseUp() {
567: if (this .onMouseUp != null) {
568: return this .onMouseUp;
569: }
570: ValueBinding _vb = getValueBinding("onMouseUp");
571: if (_vb != null) {
572: return (String) _vb.getValue(getFacesContext());
573: }
574: return null;
575: }
576:
577: /**
578: * <p>Scripting code executed when the user releases a mouse button while
579: * the mouse pointer is on the component.</p>
580: * @see #getOnMouseUp()
581: */
582: public void setOnMouseUp(String onMouseUp) {
583: this .onMouseUp = onMouseUp;
584: }
585:
586: // onSelect
587: private String onSelect = null;
588:
589: /**
590: * <p>Scripting code executed when some text in this
591: * component value is selected.</p>
592: */
593: public String getOnSelect() {
594: if (this .onSelect != null) {
595: return this .onSelect;
596: }
597: ValueBinding _vb = getValueBinding("onSelect");
598: if (_vb != null) {
599: return (String) _vb.getValue(getFacesContext());
600: }
601: return null;
602: }
603:
604: /**
605: * <p>Scripting code executed when some text in this
606: * component value is selected.</p>
607: * @see #getOnSelect()
608: */
609: public void setOnSelect(String onSelect) {
610: this .onSelect = onSelect;
611: }
612:
613: // readOnly
614: private boolean readOnly = false;
615: private boolean readOnly_set = false;
616:
617: /**
618: * <p>If this attribute is set to true, the value of the component is
619: * rendered as text, preceded by the label if one was defined.</p>
620: */
621: public boolean isReadOnly() {
622: if (this .readOnly_set) {
623: return this .readOnly;
624: }
625: ValueBinding _vb = getValueBinding("readOnly");
626: if (_vb != null) {
627: Object _result = _vb.getValue(getFacesContext());
628: if (_result == null) {
629: return false;
630: } else {
631: return ((Boolean) _result).booleanValue();
632: }
633: }
634: return false;
635: }
636:
637: /**
638: * <p>If this attribute is set to true, the value of the component is
639: * rendered as text, preceded by the label if one was defined.</p>
640: * @see #isReadOnly()
641: */
642: public void setReadOnly(boolean readOnly) {
643: this .readOnly = readOnly;
644: this .readOnly_set = true;
645: }
646:
647: // selected
648: /**
649: * <p>The object that represents the selections made from the
650: * available options. If multiple selections are allowed, this
651: * must be bound to ArrayList, an Object array, or an array of
652: * primitives.</p>
653: */
654: public Object getSelected() {
655: return getValue();
656: }
657:
658: /**
659: * <p>The object that represents the selections made from the
660: * available options. If multiple selections are allowed, this
661: * must be bound to ArrayList, an Object array, or an array of
662: * primitives.</p>
663: * @see #getSelected()
664: */
665: public void setSelected(Object selected) {
666: setValue(selected);
667: }
668:
669: // style
670: private String style = null;
671:
672: /**
673: * <p>CSS style(s) to be applied when this component is rendered.</p>
674: */
675: public String getStyle() {
676: if (this .style != null) {
677: return this .style;
678: }
679: ValueBinding _vb = getValueBinding("style");
680: if (_vb != null) {
681: return (String) _vb.getValue(getFacesContext());
682: }
683: return null;
684: }
685:
686: /**
687: * <p>CSS style(s) to be applied when this component is rendered.</p>
688: * @see #getStyle()
689: */
690: public void setStyle(String style) {
691: this .style = style;
692: }
693:
694: // styleClass
695: private String styleClass = null;
696:
697: /**
698: * <p>CSS style class(es) to be applied when this component is rendered.</p>
699: */
700: public String getStyleClass() {
701: if (this .styleClass != null) {
702: return this .styleClass;
703: }
704: ValueBinding _vb = getValueBinding("styleClass");
705: if (_vb != null) {
706: return (String) _vb.getValue(getFacesContext());
707: }
708: return null;
709: }
710:
711: /**
712: * <p>CSS style class(es) to be applied when this component is rendered.</p>
713: * @see #getStyleClass()
714: */
715: public void setStyleClass(String styleClass) {
716: this .styleClass = styleClass;
717: }
718:
719: // tabIndex
720: private int tabIndex = Integer.MIN_VALUE;
721: private boolean tabIndex_set = false;
722:
723: /**
724: * <p>The position of this component in the tabbing order sequence</p>
725: */
726: public int getTabIndex() {
727: if (this .tabIndex_set) {
728: return this .tabIndex;
729: }
730: ValueBinding _vb = getValueBinding("tabIndex");
731: if (_vb != null) {
732: Object _result = _vb.getValue(getFacesContext());
733: if (_result == null) {
734: return Integer.MIN_VALUE;
735: } else {
736: return ((Integer) _result).intValue();
737: }
738: }
739: return Integer.MIN_VALUE;
740: }
741:
742: /**
743: * <p>The position of this component in the tabbing order sequence</p>
744: * @see #getTabIndex()
745: */
746: public void setTabIndex(int tabIndex) {
747: this .tabIndex = tabIndex;
748: this .tabIndex_set = true;
749: }
750:
751: // toolTip
752: private String toolTip = null;
753:
754: /**
755: * <p>Display the text as a tooltip for this component</p>
756: */
757: public String getToolTip() {
758: if (this .toolTip != null) {
759: return this .toolTip;
760: }
761: ValueBinding _vb = getValueBinding("toolTip");
762: if (_vb != null) {
763: return (String) _vb.getValue(getFacesContext());
764: }
765: return null;
766: }
767:
768: /**
769: * <p>Display the text as a tooltip for this component</p>
770: * @see #getToolTip()
771: */
772: public void setToolTip(String toolTip) {
773: this .toolTip = toolTip;
774: }
775:
776: // visible
777: private boolean visible = false;
778: private boolean visible_set = false;
779:
780: /**
781: * <p>Use the visible attribute to indicate whether the component should be
782: * viewable by the user in the rendered HTML page. If set to false, the
783: * HTML code for the component is present in the page, but the component
784: * is hidden with style attributes. By default, visible is set to true, so
785: * HTML for the component HTML is included and visible to the user. If the
786: * component is not visible, it can still be processed on subsequent form
787: * submissions because the HTML is present.</p>
788: */
789: public boolean isVisible() {
790: if (this .visible_set) {
791: return this .visible;
792: }
793: ValueBinding _vb = getValueBinding("visible");
794: if (_vb != null) {
795: Object _result = _vb.getValue(getFacesContext());
796: if (_result == null) {
797: return false;
798: } else {
799: return ((Boolean) _result).booleanValue();
800: }
801: }
802: return true;
803: }
804:
805: /**
806: * <p>Use the visible attribute to indicate whether the component should be
807: * viewable by the user in the rendered HTML page. If set to false, the
808: * HTML code for the component is present in the page, but the component
809: * is hidden with style attributes. By default, visible is set to true, so
810: * HTML for the component HTML is included and visible to the user. If the
811: * component is not visible, it can still be processed on subsequent form
812: * submissions because the HTML is present.</p>
813: * @see #isVisible()
814: */
815: public void setVisible(boolean visible) {
816: this .visible = visible;
817: this .visible_set = true;
818: }
819:
820: /**
821: * <p>Restore the state of this component.</p>
822: */
823: public void restoreState(FacesContext _context, Object _state) {
824: Object _values[] = (Object[]) _state;
825: super .restoreState(_context, _values[0]);
826: this .disabled = ((Boolean) _values[1]).booleanValue();
827: this .disabled_set = ((Boolean) _values[2]).booleanValue();
828: this .items = (Object) _values[3];
829: this .label = (String) _values[4];
830: this .labelLevel = ((Integer) _values[5]).intValue();
831: this .labelLevel_set = ((Boolean) _values[6]).booleanValue();
832: this .onBlur = (String) _values[7];
833: this .onChange = (String) _values[8];
834: this .onClick = (String) _values[9];
835: this .onDblClick = (String) _values[10];
836: this .onFocus = (String) _values[11];
837: this .onKeyDown = (String) _values[12];
838: this .onKeyPress = (String) _values[13];
839: this .onKeyUp = (String) _values[14];
840: this .onMouseDown = (String) _values[15];
841: this .onMouseMove = (String) _values[16];
842: this .onMouseOut = (String) _values[17];
843: this .onMouseOver = (String) _values[18];
844: this .onMouseUp = (String) _values[19];
845: this .onSelect = (String) _values[20];
846: this .readOnly = ((Boolean) _values[21]).booleanValue();
847: this .readOnly_set = ((Boolean) _values[22]).booleanValue();
848: this .style = (String) _values[23];
849: this .styleClass = (String) _values[24];
850: this .tabIndex = ((Integer) _values[25]).intValue();
851: this .tabIndex_set = ((Boolean) _values[26]).booleanValue();
852: this .toolTip = (String) _values[27];
853: this .visible = ((Boolean) _values[28]).booleanValue();
854: this .visible_set = ((Boolean) _values[29]).booleanValue();
855: }
856:
857: /**
858: * <p>Save the state of this component.</p>
859: */
860: public Object saveState(FacesContext _context) {
861: Object _values[] = new Object[30];
862: _values[0] = super .saveState(_context);
863: _values[1] = this .disabled ? Boolean.TRUE : Boolean.FALSE;
864: _values[2] = this .disabled_set ? Boolean.TRUE : Boolean.FALSE;
865: _values[3] = this .items;
866: _values[4] = this .label;
867: _values[5] = new Integer(this .labelLevel);
868: _values[6] = this .labelLevel_set ? Boolean.TRUE : Boolean.FALSE;
869: _values[7] = this .onBlur;
870: _values[8] = this .onChange;
871: _values[9] = this .onClick;
872: _values[10] = this .onDblClick;
873: _values[11] = this .onFocus;
874: _values[12] = this .onKeyDown;
875: _values[13] = this .onKeyPress;
876: _values[14] = this .onKeyUp;
877: _values[15] = this .onMouseDown;
878: _values[16] = this .onMouseMove;
879: _values[17] = this .onMouseOut;
880: _values[18] = this .onMouseOver;
881: _values[19] = this .onMouseUp;
882: _values[20] = this .onSelect;
883: _values[21] = this .readOnly ? Boolean.TRUE : Boolean.FALSE;
884: _values[22] = this .readOnly_set ? Boolean.TRUE : Boolean.FALSE;
885: _values[23] = this .style;
886: _values[24] = this .styleClass;
887: _values[25] = new Integer(this .tabIndex);
888: _values[26] = this .tabIndex_set ? Boolean.TRUE : Boolean.FALSE;
889: _values[27] = this .toolTip;
890: _values[28] = this .visible ? Boolean.TRUE : Boolean.FALSE;
891: _values[29] = this.visible_set ? Boolean.TRUE : Boolean.FALSE;
892: return _values;
893: }
894:
895: }
|