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

Save This Page
Home » mojarra-1.2_09-b02-FCS-source » javax.faces.component.html » [javadoc | source]