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.UIOutput;
026: import javax.faces.context.FacesContext;
027:
028: /**
029: */
030: public class HtmlOutputLink extends UIOutput {
031:
032: static public final String COMPONENT_FAMILY = "javax.faces.Output";
033: static public final String COMPONENT_TYPE = "javax.faces.HtmlOutputLink";
034:
035: /**
036: * Construct an instance of the HtmlOutputLink.
037: */
038: public HtmlOutputLink() {
039: setRendererType("javax.faces.Link");
040: }
041:
042: // Property: style
043: private String _style;
044:
045: /**
046: * Gets CSS styling instructions.
047: *
048: * @return the new style value
049: */
050: public String getStyle() {
051: if (_style != null) {
052: return _style;
053: }
054: ValueExpression expression = getValueExpression("style");
055: if (expression != null) {
056: return (String) expression.getValue(getFacesContext()
057: .getELContext());
058: }
059: return null;
060: }
061:
062: /**
063: * Sets CSS styling instructions.
064: *
065: * @param style the new style value
066: */
067: public void setStyle(String style) {
068: this ._style = style;
069: }
070:
071: // Property: styleClass
072: private String _styleClass;
073:
074: /**
075: * Gets The CSS class for this element. Corresponds to the HTML 'class' attribute.
076: *
077: * @return the new styleClass value
078: */
079: public String getStyleClass() {
080: if (_styleClass != null) {
081: return _styleClass;
082: }
083: ValueExpression expression = getValueExpression("styleClass");
084: if (expression != null) {
085: return (String) expression.getValue(getFacesContext()
086: .getELContext());
087: }
088: return null;
089: }
090:
091: /**
092: * Sets The CSS class for this element. Corresponds to the HTML 'class' attribute.
093: *
094: * @param styleClass the new styleClass value
095: */
096: public void setStyleClass(String styleClass) {
097: this ._styleClass = styleClass;
098: }
099:
100: // Property: dir
101: private String _dir;
102:
103: /**
104: * Gets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
105: *
106: * @return the new dir value
107: */
108: public String getDir() {
109: if (_dir != null) {
110: return _dir;
111: }
112: ValueExpression expression = getValueExpression("dir");
113: if (expression != null) {
114: return (String) expression.getValue(getFacesContext()
115: .getELContext());
116: }
117: return null;
118: }
119:
120: /**
121: * Sets The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
122: *
123: * @param dir the new dir value
124: */
125: public void setDir(String dir) {
126: this ._dir = dir;
127: }
128:
129: // Property: lang
130: private String _lang;
131:
132: /**
133: * Gets The base language of this document.
134: *
135: * @return the new lang value
136: */
137: public String getLang() {
138: if (_lang != null) {
139: return _lang;
140: }
141: ValueExpression expression = getValueExpression("lang");
142: if (expression != null) {
143: return (String) expression.getValue(getFacesContext()
144: .getELContext());
145: }
146: return null;
147: }
148:
149: /**
150: * Sets The base language of this document.
151: *
152: * @param lang the new lang value
153: */
154: public void setLang(String lang) {
155: this ._lang = lang;
156: }
157:
158: // Property: title
159: private String _title;
160:
161: /**
162: * Gets An advisory title for this element. Often used by the user agent as a tooltip.
163: *
164: * @return the new title value
165: */
166: public String getTitle() {
167: if (_title != null) {
168: return _title;
169: }
170: ValueExpression expression = getValueExpression("title");
171: if (expression != null) {
172: return (String) expression.getValue(getFacesContext()
173: .getELContext());
174: }
175: return null;
176: }
177:
178: /**
179: * Sets An advisory title for this element. Often used by the user agent as a tooltip.
180: *
181: * @param title the new title value
182: */
183: public void setTitle(String title) {
184: this ._title = title;
185: }
186:
187: // Property: onclick
188: private String _onclick;
189:
190: /**
191: * Gets Script to be invoked when the element is clicked.
192: *
193: * @return the new onclick value
194: */
195: public String getOnclick() {
196: if (_onclick != null) {
197: return _onclick;
198: }
199: ValueExpression expression = getValueExpression("onclick");
200: if (expression != null) {
201: return (String) expression.getValue(getFacesContext()
202: .getELContext());
203: }
204: return null;
205: }
206:
207: /**
208: * Sets Script to be invoked when the element is clicked.
209: *
210: * @param onclick the new onclick value
211: */
212: public void setOnclick(String onclick) {
213: this ._onclick = onclick;
214: }
215:
216: // Property: ondblclick
217: private String _ondblclick;
218:
219: /**
220: * Gets Script to be invoked when the element is double-clicked.
221: *
222: * @return the new ondblclick value
223: */
224: public String getOndblclick() {
225: if (_ondblclick != null) {
226: return _ondblclick;
227: }
228: ValueExpression expression = getValueExpression("ondblclick");
229: if (expression != null) {
230: return (String) expression.getValue(getFacesContext()
231: .getELContext());
232: }
233: return null;
234: }
235:
236: /**
237: * Sets Script to be invoked when the element is double-clicked.
238: *
239: * @param ondblclick the new ondblclick value
240: */
241: public void setOndblclick(String ondblclick) {
242: this ._ondblclick = ondblclick;
243: }
244:
245: // Property: onmousedown
246: private String _onmousedown;
247:
248: /**
249: * Gets Script to be invoked when the pointing device is pressed over this element.
250: *
251: * @return the new onmousedown value
252: */
253: public String getOnmousedown() {
254: if (_onmousedown != null) {
255: return _onmousedown;
256: }
257: ValueExpression expression = getValueExpression("onmousedown");
258: if (expression != null) {
259: return (String) expression.getValue(getFacesContext()
260: .getELContext());
261: }
262: return null;
263: }
264:
265: /**
266: * Sets Script to be invoked when the pointing device is pressed over this element.
267: *
268: * @param onmousedown the new onmousedown value
269: */
270: public void setOnmousedown(String onmousedown) {
271: this ._onmousedown = onmousedown;
272: }
273:
274: // Property: onmouseup
275: private String _onmouseup;
276:
277: /**
278: * Gets Script to be invoked when the pointing device is released over this element.
279: *
280: * @return the new onmouseup value
281: */
282: public String getOnmouseup() {
283: if (_onmouseup != null) {
284: return _onmouseup;
285: }
286: ValueExpression expression = getValueExpression("onmouseup");
287: if (expression != null) {
288: return (String) expression.getValue(getFacesContext()
289: .getELContext());
290: }
291: return null;
292: }
293:
294: /**
295: * Sets Script to be invoked when the pointing device is released over this element.
296: *
297: * @param onmouseup the new onmouseup value
298: */
299: public void setOnmouseup(String onmouseup) {
300: this ._onmouseup = onmouseup;
301: }
302:
303: // Property: onmouseover
304: private String _onmouseover;
305:
306: /**
307: * Gets Script to be invoked when the pointing device is moved into this element.
308: *
309: * @return the new onmouseover value
310: */
311: public String getOnmouseover() {
312: if (_onmouseover != null) {
313: return _onmouseover;
314: }
315: ValueExpression expression = getValueExpression("onmouseover");
316: if (expression != null) {
317: return (String) expression.getValue(getFacesContext()
318: .getELContext());
319: }
320: return null;
321: }
322:
323: /**
324: * Sets Script to be invoked when the pointing device is moved into this element.
325: *
326: * @param onmouseover the new onmouseover value
327: */
328: public void setOnmouseover(String onmouseover) {
329: this ._onmouseover = onmouseover;
330: }
331:
332: // Property: onmousemove
333: private String _onmousemove;
334:
335: /**
336: * Gets Script to be invoked when the pointing device is moved while it is in this element.
337: *
338: * @return the new onmousemove value
339: */
340: public String getOnmousemove() {
341: if (_onmousemove != null) {
342: return _onmousemove;
343: }
344: ValueExpression expression = getValueExpression("onmousemove");
345: if (expression != null) {
346: return (String) expression.getValue(getFacesContext()
347: .getELContext());
348: }
349: return null;
350: }
351:
352: /**
353: * Sets Script to be invoked when the pointing device is moved while it is in this element.
354: *
355: * @param onmousemove the new onmousemove value
356: */
357: public void setOnmousemove(String onmousemove) {
358: this ._onmousemove = onmousemove;
359: }
360:
361: // Property: onmouseout
362: private String _onmouseout;
363:
364: /**
365: * Gets Script to be invoked when the pointing device is moves out of this element.
366: *
367: * @return the new onmouseout value
368: */
369: public String getOnmouseout() {
370: if (_onmouseout != null) {
371: return _onmouseout;
372: }
373: ValueExpression expression = getValueExpression("onmouseout");
374: if (expression != null) {
375: return (String) expression.getValue(getFacesContext()
376: .getELContext());
377: }
378: return null;
379: }
380:
381: /**
382: * Sets Script to be invoked when the pointing device is moves out of this element.
383: *
384: * @param onmouseout the new onmouseout value
385: */
386: public void setOnmouseout(String onmouseout) {
387: this ._onmouseout = onmouseout;
388: }
389:
390: // Property: onkeypress
391: private String _onkeypress;
392:
393: /**
394: * Gets Script to be invoked when a key is pressed over this element.
395: *
396: * @return the new onkeypress value
397: */
398: public String getOnkeypress() {
399: if (_onkeypress != null) {
400: return _onkeypress;
401: }
402: ValueExpression expression = getValueExpression("onkeypress");
403: if (expression != null) {
404: return (String) expression.getValue(getFacesContext()
405: .getELContext());
406: }
407: return null;
408: }
409:
410: /**
411: * Sets Script to be invoked when a key is pressed over this element.
412: *
413: * @param onkeypress the new onkeypress value
414: */
415: public void setOnkeypress(String onkeypress) {
416: this ._onkeypress = onkeypress;
417: }
418:
419: // Property: onkeydown
420: private String _onkeydown;
421:
422: /**
423: * Gets Script to be invoked when a key is pressed down over this element.
424: *
425: * @return the new onkeydown value
426: */
427: public String getOnkeydown() {
428: if (_onkeydown != null) {
429: return _onkeydown;
430: }
431: ValueExpression expression = getValueExpression("onkeydown");
432: if (expression != null) {
433: return (String) expression.getValue(getFacesContext()
434: .getELContext());
435: }
436: return null;
437: }
438:
439: /**
440: * Sets Script to be invoked when a key is pressed down over this element.
441: *
442: * @param onkeydown the new onkeydown value
443: */
444: public void setOnkeydown(String onkeydown) {
445: this ._onkeydown = onkeydown;
446: }
447:
448: // Property: onkeyup
449: private String _onkeyup;
450:
451: /**
452: * Gets Script to be invoked when a key is released over this element.
453: *
454: * @return the new onkeyup value
455: */
456: public String getOnkeyup() {
457: if (_onkeyup != null) {
458: return _onkeyup;
459: }
460: ValueExpression expression = getValueExpression("onkeyup");
461: if (expression != null) {
462: return (String) expression.getValue(getFacesContext()
463: .getELContext());
464: }
465: return null;
466: }
467:
468: /**
469: * Sets Script to be invoked when a key is released over this element.
470: *
471: * @param onkeyup the new onkeyup value
472: */
473: public void setOnkeyup(String onkeyup) {
474: this ._onkeyup = onkeyup;
475: }
476:
477: // Property: onblur
478: private String _onblur;
479:
480: /**
481: * Gets Specifies a script to be invoked when the element loses focus.
482: *
483: * @return the new onblur value
484: */
485: public String getOnblur() {
486: if (_onblur != null) {
487: return _onblur;
488: }
489: ValueExpression expression = getValueExpression("onblur");
490: if (expression != null) {
491: return (String) expression.getValue(getFacesContext()
492: .getELContext());
493: }
494: return null;
495: }
496:
497: /**
498: * Sets Specifies a script to be invoked when the element loses focus.
499: *
500: * @param onblur the new onblur value
501: */
502: public void setOnblur(String onblur) {
503: this ._onblur = onblur;
504: }
505:
506: // Property: onfocus
507: private String _onfocus;
508:
509: /**
510: * Gets Specifies a script to be invoked when the element receives focus.
511: *
512: * @return the new onfocus value
513: */
514: public String getOnfocus() {
515: if (_onfocus != null) {
516: return _onfocus;
517: }
518: ValueExpression expression = getValueExpression("onfocus");
519: if (expression != null) {
520: return (String) expression.getValue(getFacesContext()
521: .getELContext());
522: }
523: return null;
524: }
525:
526: /**
527: * Sets Specifies a script to be invoked when the element receives focus.
528: *
529: * @param onfocus the new onfocus value
530: */
531: public void setOnfocus(String onfocus) {
532: this ._onfocus = onfocus;
533: }
534:
535: // Property: accesskey
536: private String _accesskey;
537:
538: /**
539: * Gets Sets the access key for this element.
540: *
541: * @return the new accesskey value
542: */
543: public String getAccesskey() {
544: if (_accesskey != null) {
545: return _accesskey;
546: }
547: ValueExpression expression = getValueExpression("accesskey");
548: if (expression != null) {
549: return (String) expression.getValue(getFacesContext()
550: .getELContext());
551: }
552: return null;
553: }
554:
555: /**
556: * Sets Sets the access key for this element.
557: *
558: * @param accesskey the new accesskey value
559: */
560: public void setAccesskey(String accesskey) {
561: this ._accesskey = accesskey;
562: }
563:
564: // Property: charset
565: private String _charset;
566:
567: /**
568: * Gets Specifies the character encoding of the linked resource.
569: *
570: * @return the new charset value
571: */
572: public String getCharset() {
573: if (_charset != null) {
574: return _charset;
575: }
576: ValueExpression expression = getValueExpression("charset");
577: if (expression != null) {
578: return (String) expression.getValue(getFacesContext()
579: .getELContext());
580: }
581: return null;
582: }
583:
584: /**
585: * Sets Specifies the character encoding of the linked resource.
586: *
587: * @param charset the new charset value
588: */
589: public void setCharset(String charset) {
590: this ._charset = charset;
591: }
592:
593: // Property: coords
594: private String _coords;
595:
596: /**
597: * Gets The position and the shape of the hotspot.
598: *
599: * @return the new coords value
600: */
601: public String getCoords() {
602: if (_coords != null) {
603: return _coords;
604: }
605: ValueExpression expression = getValueExpression("coords");
606: if (expression != null) {
607: return (String) expression.getValue(getFacesContext()
608: .getELContext());
609: }
610: return null;
611: }
612:
613: /**
614: * Sets The position and the shape of the hotspot.
615: *
616: * @param coords the new coords value
617: */
618: public void setCoords(String coords) {
619: this ._coords = coords;
620: }
621:
622: // Property: hreflang
623: private String _hreflang;
624:
625: /**
626: * Gets The language code for teh link.
627: *
628: * @return the new hreflang value
629: */
630: public String getHreflang() {
631: if (_hreflang != null) {
632: return _hreflang;
633: }
634: ValueExpression expression = getValueExpression("hreflang");
635: if (expression != null) {
636: return (String) expression.getValue(getFacesContext()
637: .getELContext());
638: }
639: return null;
640: }
641:
642: /**
643: * Sets The language code for teh link.
644: *
645: * @param hreflang the new hreflang value
646: */
647: public void setHreflang(String hreflang) {
648: this ._hreflang = hreflang;
649: }
650:
651: // Property: disabled
652: private boolean _disabled = false;
653: private boolean _disabledSet;
654:
655: /**
656: * Gets When true, this element cannot receive focus.
657: *
658: * @return the new disabled value
659: */
660: public boolean isDisabled() {
661: if (_disabledSet) {
662: return _disabled;
663: }
664: ValueExpression expression = getValueExpression("disabled");
665: if (expression != null) {
666: return (Boolean) expression.getValue(getFacesContext()
667: .getELContext());
668: }
669: return false;
670: }
671:
672: /**
673: * Sets When true, this element cannot receive focus.
674: *
675: * @param disabled the new disabled value
676: */
677: public void setDisabled(boolean disabled) {
678: this ._disabled = disabled;
679: this ._disabledSet = true;
680: }
681:
682: // Property: rel
683: private String _rel;
684:
685: /**
686: * Gets A space-separated list of links defining the relationship from the current document
687: * to the anchor specified by this hyperlink
688: *
689: * @return the new rel value
690: */
691: public String getRel() {
692: if (_rel != null) {
693: return _rel;
694: }
695: ValueExpression expression = getValueExpression("rel");
696: if (expression != null) {
697: return (String) expression.getValue(getFacesContext()
698: .getELContext());
699: }
700: return null;
701: }
702:
703: /**
704: * Sets A space-separated list of links defining the relationship from the current document
705: * to the anchor specified by this hyperlink
706: *
707: * @param rel the new rel value
708: */
709: public void setRel(String rel) {
710: this ._rel = rel;
711: }
712:
713: // Property: rev
714: private String _rev;
715:
716: /**
717: * Gets A space-separated list of Reverselinks.
718: *
719: * @return the new rev value
720: */
721: public String getRev() {
722: if (_rev != null) {
723: return _rev;
724: }
725: ValueExpression expression = getValueExpression("rev");
726: if (expression != null) {
727: return (String) expression.getValue(getFacesContext()
728: .getELContext());
729: }
730: return null;
731: }
732:
733: /**
734: * Sets A space-separated list of Reverselinks.
735: *
736: * @param rev the new rev value
737: */
738: public void setRev(String rev) {
739: this ._rev = rev;
740: }
741:
742: // Property: shape
743: private String _shape;
744:
745: /**
746: * Gets The shape of the hot spot on the screen (for use in client-side image maps). Valid values are: default (entire region); rect (rectangular region); circle (circular region); and poly (polygonal region).
747: *
748: * @return the new shape value
749: */
750: public String getShape() {
751: if (_shape != null) {
752: return _shape;
753: }
754: ValueExpression expression = getValueExpression("shape");
755: if (expression != null) {
756: return (String) expression.getValue(getFacesContext()
757: .getELContext());
758: }
759: return null;
760: }
761:
762: /**
763: * Sets The shape of the hot spot on the screen (for use in client-side image maps). Valid values are: default (entire region); rect (rectangular region); circle (circular region); and poly (polygonal region).
764: *
765: * @param shape the new shape value
766: */
767: public void setShape(String shape) {
768: this ._shape = shape;
769: }
770:
771: // Property: target
772: private String _target;
773:
774: /**
775: * Gets Names the frame that should display content generated by invoking this action.
776: *
777: * @return the new target value
778: */
779: public String getTarget() {
780: if (_target != null) {
781: return _target;
782: }
783: ValueExpression expression = getValueExpression("target");
784: if (expression != null) {
785: return (String) expression.getValue(getFacesContext()
786: .getELContext());
787: }
788: return null;
789: }
790:
791: /**
792: * Sets Names the frame that should display content generated by invoking this action.
793: *
794: * @param target the new target value
795: */
796: public void setTarget(String target) {
797: this ._target = target;
798: }
799:
800: // Property: tabindex
801: private String _tabindex;
802:
803: /**
804: * Gets Specifies the position of this element within the tab order of the document.
805: *
806: * @return the new tabindex value
807: */
808: public String getTabindex() {
809: if (_tabindex != null) {
810: return _tabindex;
811: }
812: ValueExpression expression = getValueExpression("tabindex");
813: if (expression != null) {
814: return (String) expression.getValue(getFacesContext()
815: .getELContext());
816: }
817: return null;
818: }
819:
820: /**
821: * Sets Specifies the position of this element within the tab order of the document.
822: *
823: * @param tabindex the new tabindex value
824: */
825: public void setTabindex(String tabindex) {
826: this ._tabindex = tabindex;
827: }
828:
829: // Property: type
830: private String _type;
831:
832: /**
833: * Gets A hint to the user agent about the content type of the linked resource.
834: *
835: * @return the new type value
836: */
837: public String getType() {
838: if (_type != null) {
839: return _type;
840: }
841: ValueExpression expression = getValueExpression("type");
842: if (expression != null) {
843: return (String) expression.getValue(getFacesContext()
844: .getELContext());
845: }
846: return null;
847: }
848:
849: /**
850: * Sets A hint to the user agent about the content type of the linked resource.
851: *
852: * @param type the new type value
853: */
854: public void setType(String type) {
855: this ._type = type;
856: }
857:
858: @Override
859: public Object saveState(FacesContext facesContext) {
860: Object[] values = new Object[30];
861: values[0] = super .saveState(facesContext);
862: values[1] = _style;
863: values[2] = _styleClass;
864: values[3] = _dir;
865: values[4] = _lang;
866: values[5] = _title;
867: values[6] = _onclick;
868: values[7] = _ondblclick;
869: values[8] = _onmousedown;
870: values[9] = _onmouseup;
871: values[10] = _onmouseover;
872: values[11] = _onmousemove;
873: values[12] = _onmouseout;
874: values[13] = _onkeypress;
875: values[14] = _onkeydown;
876: values[15] = _onkeyup;
877: values[16] = _onblur;
878: values[17] = _onfocus;
879: values[18] = _accesskey;
880: values[19] = _charset;
881: values[20] = _coords;
882: values[21] = _hreflang;
883: values[22] = _disabled;
884: values[23] = _disabledSet;
885: values[24] = _rel;
886: values[25] = _rev;
887: values[26] = _shape;
888: values[27] = _target;
889: values[28] = _tabindex;
890: values[29] = _type;
891:
892: return values;
893: }
894:
895: @Override
896: public void restoreState(FacesContext facesContext, Object state) {
897: Object[] values = (Object[]) state;
898: super .restoreState(facesContext, values[0]);
899: _style = (String) values[1];
900: _styleClass = (String) values[2];
901: _dir = (String) values[3];
902: _lang = (String) values[4];
903: _title = (String) values[5];
904: _onclick = (String) values[6];
905: _ondblclick = (String) values[7];
906: _onmousedown = (String) values[8];
907: _onmouseup = (String) values[9];
908: _onmouseover = (String) values[10];
909: _onmousemove = (String) values[11];
910: _onmouseout = (String) values[12];
911: _onkeypress = (String) values[13];
912: _onkeydown = (String) values[14];
913: _onkeyup = (String) values[15];
914: _onblur = (String) values[16];
915: _onfocus = (String) values[17];
916: _accesskey = (String) values[18];
917: _charset = (String) values[19];
918: _coords = (String) values[20];
919: _hreflang = (String) values[21];
920: _disabled = (Boolean) values[22];
921: _disabledSet = (Boolean) values[23];
922: _rel = (String) values[24];
923: _rev = (String) values[25];
924: _shape = (String) values[26];
925: _target = (String) values[27];
926: _tabindex = (String) values[28];
927: _type = (String) values[29];
928: }
929:
930: @Override
931: public String getFamily() {
932: return COMPONENT_FAMILY;
933: }
934: }
|