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

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