001: // WARNING: This file was automatically generated. Do not edit it directly,
002: // or you will lose your changes.
003:
004: /*
005: * Licensed to the Apache Software Foundation (ASF) under one
006: * or more contributor license agreements. See the NOTICE file
007: * distributed with this work for additional information
008: * regarding copyright ownership. The ASF licenses this file
009: * to you under the Apache License, Version 2.0 (the
010: * "License"); you may not use this file except in compliance
011: * with the License. You may obtain a copy of the License at
012: *
013: * http://www.apache.org/licenses/LICENSE-2.0
014: *
015: * Unless required by applicable law or agreed to in writing,
016: * software distributed under the License is distributed on an
017: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
018: * KIND, either express or implied. See the License for the
019: * specific language governing permissions and limitations
020: * under the License.
021: */
022: package javax.faces.component.html;
023:
024: import javax.el.ValueExpression;
025: import javax.faces.component.UIInput;
026: import javax.faces.context.FacesContext;
027:
028: /**
029: *
030: * <h4>Events:</h4>
031: * <table border="1" width="100%" cellpadding="3" summary="">
032: * <tr bgcolor="#CCCCFF" class="TableHeadingColor">
033: * <th align="left">Type</th>
034: * <th align="left">Phases</th>
035: * <th align="left">Description</th>
036: * </tr>
037: * <tr class="TableRowColor">
038: * <td valign="top"><code>javax.faces.event.ValueChangeEvent</code></td>
039: * <td valign="top" nowrap></td>
040: * <td valign="top">The valueChange event is delivered when the value
041: attribute is changed.</td>
042: * </tr>
043: * </table>
044: */
045: public class HtmlInputTextarea extends UIInput {
046:
047: static public final String COMPONENT_FAMILY = "javax.faces.Input";
048: static public final String COMPONENT_TYPE = "javax.faces.HtmlInputTextarea";
049:
050: /**
051: * Construct an instance of the HtmlInputTextarea.
052: */
053: public HtmlInputTextarea() {
054: setRendererType("javax.faces.Textarea");
055: }
056:
057: // Property: style
058: private String _style;
059:
060: /**
061: * Gets CSS styling instructions.
062: *
063: * @return the new style value
064: */
065: public String getStyle() {
066: if (_style != null) {
067: return _style;
068: }
069: ValueExpression expression = getValueExpression("style");
070: if (expression != null) {
071: return (String) expression.getValue(getFacesContext()
072: .getELContext());
073: }
074: return null;
075: }
076:
077: /**
078: * Sets CSS styling instructions.
079: *
080: * @param style the new style value
081: */
082: public void setStyle(String style) {
083: this ._style = style;
084: }
085:
086: // Property: styleClass
087: private String _styleClass;
088:
089: /**
090: * Gets The CSS class for this element. Corresponds to the HTML 'class' attribute.
091: *
092: * @return the new styleClass value
093: */
094: public String getStyleClass() {
095: if (_styleClass != null) {
096: return _styleClass;
097: }
098: ValueExpression expression = getValueExpression("styleClass");
099: if (expression != null) {
100: return (String) expression.getValue(getFacesContext()
101: .getELContext());
102: }
103: return null;
104: }
105:
106: /**
107: * Sets The CSS class for this element. Corresponds to the HTML 'class' attribute.
108: *
109: * @param styleClass the new styleClass value
110: */
111: public void setStyleClass(String styleClass) {
112: this ._styleClass = styleClass;
113: }
114:
115: // Property: dir
116: private String _dir;
117:
118: /**
119: * Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
120: *
121: * @return the new dir value
122: */
123: public String getDir() {
124: if (_dir != null) {
125: return _dir;
126: }
127: ValueExpression expression = getValueExpression("dir");
128: if (expression != null) {
129: return (String) expression.getValue(getFacesContext()
130: .getELContext());
131: }
132: return null;
133: }
134:
135: /**
136: * Sets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
137: *
138: * @param dir the new dir value
139: */
140: public void setDir(String dir) {
141: this ._dir = dir;
142: }
143:
144: // Property: lang
145: private String _lang;
146:
147: /**
148: * Gets The base language of this document.
149: *
150: * @return the new lang value
151: */
152: public String getLang() {
153: if (_lang != null) {
154: return _lang;
155: }
156: ValueExpression expression = getValueExpression("lang");
157: if (expression != null) {
158: return (String) expression.getValue(getFacesContext()
159: .getELContext());
160: }
161: return null;
162: }
163:
164: /**
165: * Sets The base language of this document.
166: *
167: * @param lang the new lang value
168: */
169: public void setLang(String lang) {
170: this ._lang = lang;
171: }
172:
173: // Property: title
174: private String _title;
175:
176: /**
177: * Gets An advisory title for this element. Often used by the user agent as a tooltip.
178: *
179: * @return the new title value
180: */
181: public String getTitle() {
182: if (_title != null) {
183: return _title;
184: }
185: ValueExpression expression = getValueExpression("title");
186: if (expression != null) {
187: return (String) expression.getValue(getFacesContext()
188: .getELContext());
189: }
190: return null;
191: }
192:
193: /**
194: * Sets An advisory title for this element. Often used by the user agent as a tooltip.
195: *
196: * @param title the new title value
197: */
198: public void setTitle(String title) {
199: this ._title = title;
200: }
201:
202: // Property: onclick
203: private String _onclick;
204:
205: /**
206: * Gets Script to be invoked when the element is clicked.
207: *
208: * @return the new onclick value
209: */
210: public String getOnclick() {
211: if (_onclick != null) {
212: return _onclick;
213: }
214: ValueExpression expression = getValueExpression("onclick");
215: if (expression != null) {
216: return (String) expression.getValue(getFacesContext()
217: .getELContext());
218: }
219: return null;
220: }
221:
222: /**
223: * Sets Script to be invoked when the element is clicked.
224: *
225: * @param onclick the new onclick value
226: */
227: public void setOnclick(String onclick) {
228: this ._onclick = onclick;
229: }
230:
231: // Property: ondblclick
232: private String _ondblclick;
233:
234: /**
235: * Gets Script to be invoked when the element is double-clicked.
236: *
237: * @return the new ondblclick value
238: */
239: public String getOndblclick() {
240: if (_ondblclick != null) {
241: return _ondblclick;
242: }
243: ValueExpression expression = getValueExpression("ondblclick");
244: if (expression != null) {
245: return (String) expression.getValue(getFacesContext()
246: .getELContext());
247: }
248: return null;
249: }
250:
251: /**
252: * Sets Script to be invoked when the element is double-clicked.
253: *
254: * @param ondblclick the new ondblclick value
255: */
256: public void setOndblclick(String ondblclick) {
257: this ._ondblclick = ondblclick;
258: }
259:
260: // Property: onmousedown
261: private String _onmousedown;
262:
263: /**
264: * Gets Script to be invoked when the pointing device is pressed over this element.
265: *
266: * @return the new onmousedown value
267: */
268: public String getOnmousedown() {
269: if (_onmousedown != null) {
270: return _onmousedown;
271: }
272: ValueExpression expression = getValueExpression("onmousedown");
273: if (expression != null) {
274: return (String) expression.getValue(getFacesContext()
275: .getELContext());
276: }
277: return null;
278: }
279:
280: /**
281: * Sets Script to be invoked when the pointing device is pressed over this element.
282: *
283: * @param onmousedown the new onmousedown value
284: */
285: public void setOnmousedown(String onmousedown) {
286: this ._onmousedown = onmousedown;
287: }
288:
289: // Property: onmouseup
290: private String _onmouseup;
291:
292: /**
293: * Gets Script to be invoked when the pointing device is released over this element.
294: *
295: * @return the new onmouseup value
296: */
297: public String getOnmouseup() {
298: if (_onmouseup != null) {
299: return _onmouseup;
300: }
301: ValueExpression expression = getValueExpression("onmouseup");
302: if (expression != null) {
303: return (String) expression.getValue(getFacesContext()
304: .getELContext());
305: }
306: return null;
307: }
308:
309: /**
310: * Sets Script to be invoked when the pointing device is released over this element.
311: *
312: * @param onmouseup the new onmouseup value
313: */
314: public void setOnmouseup(String onmouseup) {
315: this ._onmouseup = onmouseup;
316: }
317:
318: // Property: onmouseover
319: private String _onmouseover;
320:
321: /**
322: * Gets Script to be invoked when the pointing device is moved into this element.
323: *
324: * @return the new onmouseover value
325: */
326: public String getOnmouseover() {
327: if (_onmouseover != null) {
328: return _onmouseover;
329: }
330: ValueExpression expression = getValueExpression("onmouseover");
331: if (expression != null) {
332: return (String) expression.getValue(getFacesContext()
333: .getELContext());
334: }
335: return null;
336: }
337:
338: /**
339: * Sets Script to be invoked when the pointing device is moved into this element.
340: *
341: * @param onmouseover the new onmouseover value
342: */
343: public void setOnmouseover(String onmouseover) {
344: this ._onmouseover = onmouseover;
345: }
346:
347: // Property: onmousemove
348: private String _onmousemove;
349:
350: /**
351: * Gets Script to be invoked when the pointing device is moved while it is in this element.
352: *
353: * @return the new onmousemove value
354: */
355: public String getOnmousemove() {
356: if (_onmousemove != null) {
357: return _onmousemove;
358: }
359: ValueExpression expression = getValueExpression("onmousemove");
360: if (expression != null) {
361: return (String) expression.getValue(getFacesContext()
362: .getELContext());
363: }
364: return null;
365: }
366:
367: /**
368: * Sets Script to be invoked when the pointing device is moved while it is in this element.
369: *
370: * @param onmousemove the new onmousemove value
371: */
372: public void setOnmousemove(String onmousemove) {
373: this ._onmousemove = onmousemove;
374: }
375:
376: // Property: onmouseout
377: private String _onmouseout;
378:
379: /**
380: * Gets Script to be invoked when the pointing device is moves out of this element.
381: *
382: * @return the new onmouseout value
383: */
384: public String getOnmouseout() {
385: if (_onmouseout != null) {
386: return _onmouseout;
387: }
388: ValueExpression expression = getValueExpression("onmouseout");
389: if (expression != null) {
390: return (String) expression.getValue(getFacesContext()
391: .getELContext());
392: }
393: return null;
394: }
395:
396: /**
397: * Sets Script to be invoked when the pointing device is moves out of this element.
398: *
399: * @param onmouseout the new onmouseout value
400: */
401: public void setOnmouseout(String onmouseout) {
402: this ._onmouseout = onmouseout;
403: }
404:
405: // Property: onkeypress
406: private String _onkeypress;
407:
408: /**
409: * Gets Script to be invoked when a key is pressed over this element.
410: *
411: * @return the new onkeypress value
412: */
413: public String getOnkeypress() {
414: if (_onkeypress != null) {
415: return _onkeypress;
416: }
417: ValueExpression expression = getValueExpression("onkeypress");
418: if (expression != null) {
419: return (String) expression.getValue(getFacesContext()
420: .getELContext());
421: }
422: return null;
423: }
424:
425: /**
426: * Sets Script to be invoked when a key is pressed over this element.
427: *
428: * @param onkeypress the new onkeypress value
429: */
430: public void setOnkeypress(String onkeypress) {
431: this ._onkeypress = onkeypress;
432: }
433:
434: // Property: onkeydown
435: private String _onkeydown;
436:
437: /**
438: * Gets Script to be invoked when a key is pressed down over this element.
439: *
440: * @return the new onkeydown value
441: */
442: public String getOnkeydown() {
443: if (_onkeydown != null) {
444: return _onkeydown;
445: }
446: ValueExpression expression = getValueExpression("onkeydown");
447: if (expression != null) {
448: return (String) expression.getValue(getFacesContext()
449: .getELContext());
450: }
451: return null;
452: }
453:
454: /**
455: * Sets Script to be invoked when a key is pressed down over this element.
456: *
457: * @param onkeydown the new onkeydown value
458: */
459: public void setOnkeydown(String onkeydown) {
460: this ._onkeydown = onkeydown;
461: }
462:
463: // Property: onkeyup
464: private String _onkeyup;
465:
466: /**
467: * Gets Script to be invoked when a key is released over this element.
468: *
469: * @return the new onkeyup value
470: */
471: public String getOnkeyup() {
472: if (_onkeyup != null) {
473: return _onkeyup;
474: }
475: ValueExpression expression = getValueExpression("onkeyup");
476: if (expression != null) {
477: return (String) expression.getValue(getFacesContext()
478: .getELContext());
479: }
480: return null;
481: }
482:
483: /**
484: * Sets Script to be invoked when a key is released over this element.
485: *
486: * @param onkeyup the new onkeyup value
487: */
488: public void setOnkeyup(String onkeyup) {
489: this ._onkeyup = onkeyup;
490: }
491:
492: // Property: onblur
493: private String _onblur;
494:
495: /**
496: * Gets Specifies a script to be invoked when the element loses focus.
497: *
498: * @return the new onblur value
499: */
500: public String getOnblur() {
501: if (_onblur != null) {
502: return _onblur;
503: }
504: ValueExpression expression = getValueExpression("onblur");
505: if (expression != null) {
506: return (String) expression.getValue(getFacesContext()
507: .getELContext());
508: }
509: return null;
510: }
511:
512: /**
513: * Sets Specifies a script to be invoked when the element loses focus.
514: *
515: * @param onblur the new onblur value
516: */
517: public void setOnblur(String onblur) {
518: this ._onblur = onblur;
519: }
520:
521: // Property: onfocus
522: private String _onfocus;
523:
524: /**
525: * Gets Specifies a script to be invoked when the element receives focus.
526: *
527: * @return the new onfocus value
528: */
529: public String getOnfocus() {
530: if (_onfocus != null) {
531: return _onfocus;
532: }
533: ValueExpression expression = getValueExpression("onfocus");
534: if (expression != null) {
535: return (String) expression.getValue(getFacesContext()
536: .getELContext());
537: }
538: return null;
539: }
540:
541: /**
542: * Sets Specifies a script to be invoked when the element receives focus.
543: *
544: * @param onfocus the new onfocus value
545: */
546: public void setOnfocus(String onfocus) {
547: this ._onfocus = onfocus;
548: }
549:
550: // Property: onchange
551: private String _onchange;
552:
553: /**
554: * Gets Specifies a script to be invoked when the element is modified.
555: *
556: * @return the new onchange value
557: */
558: public String getOnchange() {
559: if (_onchange != null) {
560: return _onchange;
561: }
562: ValueExpression expression = getValueExpression("onchange");
563: if (expression != null) {
564: return (String) expression.getValue(getFacesContext()
565: .getELContext());
566: }
567: return null;
568: }
569:
570: /**
571: * Sets Specifies a script to be invoked when the element is modified.
572: *
573: * @param onchange the new onchange value
574: */
575: public void setOnchange(String onchange) {
576: this ._onchange = onchange;
577: }
578:
579: // Property: onselect
580: private String _onselect;
581:
582: /**
583: * Gets Specifies a script to be invoked when the element is selected.
584: *
585: * @return the new onselect value
586: */
587: public String getOnselect() {
588: if (_onselect != null) {
589: return _onselect;
590: }
591: ValueExpression expression = getValueExpression("onselect");
592: if (expression != null) {
593: return (String) expression.getValue(getFacesContext()
594: .getELContext());
595: }
596: return null;
597: }
598:
599: /**
600: * Sets Specifies a script to be invoked when the element is selected.
601: *
602: * @param onselect the new onselect value
603: */
604: public void setOnselect(String onselect) {
605: this ._onselect = onselect;
606: }
607:
608: // Property: accesskey
609: private String _accesskey;
610:
611: /**
612: * Gets Sets the access key for this element.
613: *
614: * @return the new accesskey value
615: */
616: public String getAccesskey() {
617: if (_accesskey != null) {
618: return _accesskey;
619: }
620: ValueExpression expression = getValueExpression("accesskey");
621: if (expression != null) {
622: return (String) expression.getValue(getFacesContext()
623: .getELContext());
624: }
625: return null;
626: }
627:
628: /**
629: * Sets Sets the access key for this element.
630: *
631: * @param accesskey the new accesskey value
632: */
633: public void setAccesskey(String accesskey) {
634: this ._accesskey = accesskey;
635: }
636:
637: // Property: tabindex
638: private String _tabindex;
639:
640: /**
641: * Gets Specifies the position of this element within the tab order of the document.
642: *
643: * @return the new tabindex value
644: */
645: public String getTabindex() {
646: if (_tabindex != null) {
647: return _tabindex;
648: }
649: ValueExpression expression = getValueExpression("tabindex");
650: if (expression != null) {
651: return (String) expression.getValue(getFacesContext()
652: .getELContext());
653: }
654: return null;
655: }
656:
657: /**
658: * Sets Specifies the position of this element within the tab order of the document.
659: *
660: * @param tabindex the new tabindex value
661: */
662: public void setTabindex(String tabindex) {
663: this ._tabindex = tabindex;
664: }
665:
666: // Property: disabled
667: private boolean _disabled = false;
668: private boolean _disabledSet;
669:
670: /**
671: * Gets When true, this element cannot receive focus.
672: *
673: * @return the new disabled value
674: */
675: public boolean isDisabled() {
676: if (_disabledSet) {
677: return _disabled;
678: }
679: ValueExpression expression = getValueExpression("disabled");
680: if (expression != null) {
681: return (Boolean) expression.getValue(getFacesContext()
682: .getELContext());
683: }
684: return false;
685: }
686:
687: /**
688: * Sets When true, this element cannot receive focus.
689: *
690: * @param disabled the new disabled value
691: */
692: public void setDisabled(boolean disabled) {
693: this ._disabled = disabled;
694: this ._disabledSet = true;
695: }
696:
697: // Property: readonly
698: private boolean _readonly;
699: private boolean _readonlySet;
700:
701: /**
702: * Gets When true, indicates that this component cannot be modified by the user.
703: * The element may receive focus unless it has also been disabled.
704: *
705: * @return the new readonly value
706: */
707: public boolean isReadonly() {
708: if (_readonlySet) {
709: return _readonly;
710: }
711: ValueExpression expression = getValueExpression("readonly");
712: if (expression != null) {
713: return (Boolean) expression.getValue(getFacesContext()
714: .getELContext());
715: }
716: return false;
717: }
718:
719: /**
720: * Sets When true, indicates that this component cannot be modified by the user.
721: * The element may receive focus unless it has also been disabled.
722: *
723: * @param readonly the new readonly value
724: */
725: public void setReadonly(boolean readonly) {
726: this ._readonly = readonly;
727: this ._readonlySet = true;
728: }
729:
730: // Property: label
731: private String _label;
732:
733: /**
734: * Gets A diplay name for this component.
735: *
736: * @return the new label value
737: */
738: public String getLabel() {
739: if (_label != null) {
740: return _label;
741: }
742: ValueExpression expression = getValueExpression("label");
743: if (expression != null) {
744: return (String) expression.getValue(getFacesContext()
745: .getELContext());
746: }
747: return null;
748: }
749:
750: /**
751: * Sets A diplay name for this component.
752: *
753: * @param label the new label value
754: */
755: public void setLabel(String label) {
756: this ._label = label;
757: }
758:
759: // Property: cols
760: private int _cols = -2147483648;
761: private boolean _colsSet;
762:
763: /**
764: * Gets The width of this element, in characters.
765: *
766: * @return the new cols value
767: */
768: public int getCols() {
769: if (_colsSet) {
770: return _cols;
771: }
772: ValueExpression expression = getValueExpression("cols");
773: if (expression != null) {
774: return (Integer) expression.getValue(getFacesContext()
775: .getELContext());
776: }
777: return -2147483648;
778: }
779:
780: /**
781: * Sets The width of this element, in characters.
782: *
783: * @param cols the new cols value
784: */
785: public void setCols(int cols) {
786: this ._cols = cols;
787: this ._colsSet = true;
788: }
789:
790: // Property: rows
791: private int _rows = -2147483648;
792: private boolean _rowsSet;
793:
794: /**
795: * Gets The height of this element, in characters.
796: *
797: * @return the new rows value
798: */
799: public int getRows() {
800: if (_rowsSet) {
801: return _rows;
802: }
803: ValueExpression expression = getValueExpression("rows");
804: if (expression != null) {
805: return (Integer) expression.getValue(getFacesContext()
806: .getELContext());
807: }
808: return -2147483648;
809: }
810:
811: /**
812: * Sets The height of this element, in characters.
813: *
814: * @param rows the new rows value
815: */
816: public void setRows(int rows) {
817: this ._rows = rows;
818: this ._rowsSet = true;
819: }
820:
821: @Override
822: public Object saveState(FacesContext facesContext) {
823: Object[] values = new Object[31];
824: values[0] = super .saveState(facesContext);
825: values[1] = _style;
826: values[2] = _styleClass;
827: values[3] = _dir;
828: values[4] = _lang;
829: values[5] = _title;
830: values[6] = _onclick;
831: values[7] = _ondblclick;
832: values[8] = _onmousedown;
833: values[9] = _onmouseup;
834: values[10] = _onmouseover;
835: values[11] = _onmousemove;
836: values[12] = _onmouseout;
837: values[13] = _onkeypress;
838: values[14] = _onkeydown;
839: values[15] = _onkeyup;
840: values[16] = _onblur;
841: values[17] = _onfocus;
842: values[18] = _onchange;
843: values[19] = _onselect;
844: values[20] = _accesskey;
845: values[21] = _tabindex;
846: values[22] = _disabled;
847: values[23] = _disabledSet;
848: values[24] = _readonly;
849: values[25] = _readonlySet;
850: values[26] = _label;
851: values[27] = _cols;
852: values[28] = _colsSet;
853: values[29] = _rows;
854: values[30] = _rowsSet;
855:
856: return values;
857: }
858:
859: @Override
860: public void restoreState(FacesContext facesContext, Object state) {
861: Object[] values = (Object[]) state;
862: super .restoreState(facesContext, values[0]);
863: _style = (String) values[1];
864: _styleClass = (String) values[2];
865: _dir = (String) values[3];
866: _lang = (String) values[4];
867: _title = (String) values[5];
868: _onclick = (String) values[6];
869: _ondblclick = (String) values[7];
870: _onmousedown = (String) values[8];
871: _onmouseup = (String) values[9];
872: _onmouseover = (String) values[10];
873: _onmousemove = (String) values[11];
874: _onmouseout = (String) values[12];
875: _onkeypress = (String) values[13];
876: _onkeydown = (String) values[14];
877: _onkeyup = (String) values[15];
878: _onblur = (String) values[16];
879: _onfocus = (String) values[17];
880: _onchange = (String) values[18];
881: _onselect = (String) values[19];
882: _accesskey = (String) values[20];
883: _tabindex = (String) values[21];
884: _disabled = (Boolean) values[22];
885: _disabledSet = (Boolean) values[23];
886: _readonly = (Boolean) values[24];
887: _readonlySet = (Boolean) values[25];
888: _label = (String) values[26];
889: _cols = (Integer) values[27];
890: _colsSet = (Boolean) values[28];
891: _rows = (Integer) values[29];
892: _rowsSet = (Boolean) values[30];
893: }
894:
895: @Override
896: public String getFamily() {
897: return COMPONENT_FAMILY;
898: }
899: }
|