Coverage Report - javax.faces.component.html.HtmlInputText
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlInputText
0%
0/302
0%
0/112
0
 
 1  
 /*
 2  
  *  Licensed to the Apache Software Foundation (ASF) under one
 3  
  *  or more contributor license agreements.  See the NOTICE file
 4  
  *  distributed with this work for additional information
 5  
  *  regarding copyright ownership.  The ASF licenses this file
 6  
  *  to you under the Apache License, Version 2.0 (the
 7  
  *  "License"); you may not use this file except in compliance
 8  
  *  with the License.  You may obtain a copy of the License at
 9  
  * 
 10  
  *  http://www.apache.org/licenses/LICENSE-2.0
 11  
  * 
 12  
  *  Unless required by applicable law or agreed to in writing,
 13  
  *  software distributed under the License is distributed on an
 14  
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 15  
  *  KIND, either express or implied.  See the License for the
 16  
  *  specific language governing permissions and limitations
 17  
  *  under the License.
 18  
  */
 19  
 package javax.faces.component.html;
 20  
 
 21  
 import javax.el.ValueExpression;
 22  
 import javax.faces.context.FacesContext;
 23  
 import javax.faces.component.UIComponent;
 24  
 import javax.faces.convert.Converter;
 25  
 import javax.faces.el.MethodBinding;
 26  
 
 27  
 
 28  
 // Generated from class javax.faces.component.html._HtmlInputText.
 29  
 //
 30  
 // WARNING: This file was automatically generated. Do not edit it directly,
 31  
 //          or you will lose your changes.
 32  
 public class HtmlInputText extends javax.faces.component.UIInput
 33  
 {
 34  
 
 35  
     static public final String COMPONENT_FAMILY =
 36  
         "javax.faces.Input";
 37  
     static public final String COMPONENT_TYPE =
 38  
         "javax.faces.HtmlInputText";
 39  
 
 40  
 
 41  
     public HtmlInputText()
 42  0
     {
 43  0
         setRendererType("javax.faces.Text");
 44  0
     }
 45  
 
 46  
     @Override    
 47  
     public String getFamily()
 48  
     {
 49  0
         return COMPONENT_FAMILY;
 50  
     }
 51  
     
 52  
 
 53  
     // Property: maxlength
 54  
     private int _maxlength;
 55  
     
 56  
     private boolean _maxlengthSet;
 57  
     
 58  
     public int getMaxlength()
 59  
     {
 60  0
         if (_maxlengthSet)
 61  
         {
 62  0
             return _maxlength;
 63  
         }
 64  0
         ValueExpression vb = getValueExpression("maxlength");
 65  0
         if (vb != null)
 66  
         {
 67  0
             return ((Integer) vb.getValue(getFacesContext().getELContext())).intValue();
 68  
         }
 69  0
         return Integer.MIN_VALUE; 
 70  
     }
 71  
 
 72  
     public void setMaxlength(int maxlength)
 73  
     {
 74  0
         this._maxlength = maxlength;
 75  0
         this._maxlengthSet = true;        
 76  0
     }
 77  
     // Property: size
 78  
     private int _size;
 79  
     
 80  
     private boolean _sizeSet;
 81  
     
 82  
     public int getSize()
 83  
     {
 84  0
         if (_sizeSet)
 85  
         {
 86  0
             return _size;
 87  
         }
 88  0
         ValueExpression vb = getValueExpression("size");
 89  0
         if (vb != null)
 90  
         {
 91  0
             return ((Integer) vb.getValue(getFacesContext().getELContext())).intValue();
 92  
         }
 93  0
         return Integer.MIN_VALUE; 
 94  
     }
 95  
 
 96  
     public void setSize(int size)
 97  
     {
 98  0
         this._size = size;
 99  0
         this._sizeSet = true;        
 100  0
     }
 101  
     // Property: autocomplete
 102  
     private String _autocomplete;
 103  
     
 104  
     public String getAutocomplete()
 105  
     {
 106  0
         if (_autocomplete != null)
 107  
         {
 108  0
             return _autocomplete;
 109  
         }
 110  0
         ValueExpression vb = getValueExpression("autocomplete");
 111  0
         if (vb != null)
 112  
         {
 113  0
             return (String) vb.getValue(getFacesContext().getELContext());
 114  
         }
 115  0
         return null;
 116  
     }
 117  
 
 118  
     public void setAutocomplete(String autocomplete)
 119  
     {
 120  0
         this._autocomplete = autocomplete;
 121  0
     }
 122  
     // Property: label
 123  
     private String _label;
 124  
     
 125  
     public String getLabel()
 126  
     {
 127  0
         if (_label != null)
 128  
         {
 129  0
             return _label;
 130  
         }
 131  0
         ValueExpression vb = getValueExpression("label");
 132  0
         if (vb != null)
 133  
         {
 134  0
             return (String) vb.getValue(getFacesContext().getELContext());
 135  
         }
 136  0
         return null;
 137  
     }
 138  
 
 139  
     public void setLabel(String label)
 140  
     {
 141  0
         this._label = label;
 142  0
     }
 143  
     // Property: style
 144  
     private String _style;
 145  
     
 146  
     public String getStyle()
 147  
     {
 148  0
         if (_style != null)
 149  
         {
 150  0
             return _style;
 151  
         }
 152  0
         ValueExpression vb = getValueExpression("style");
 153  0
         if (vb != null)
 154  
         {
 155  0
             return (String) vb.getValue(getFacesContext().getELContext());
 156  
         }
 157  0
         return null;
 158  
     }
 159  
 
 160  
     public void setStyle(String style)
 161  
     {
 162  0
         this._style = style;
 163  0
     }
 164  
     // Property: styleClass
 165  
     private String _styleClass;
 166  
     
 167  
     public String getStyleClass()
 168  
     {
 169  0
         if (_styleClass != null)
 170  
         {
 171  0
             return _styleClass;
 172  
         }
 173  0
         ValueExpression vb = getValueExpression("styleClass");
 174  0
         if (vb != null)
 175  
         {
 176  0
             return (String) vb.getValue(getFacesContext().getELContext());
 177  
         }
 178  0
         return null;
 179  
     }
 180  
 
 181  
     public void setStyleClass(String styleClass)
 182  
     {
 183  0
         this._styleClass = styleClass;
 184  0
     }
 185  
     // Property: alt
 186  
     private String _alt;
 187  
     
 188  
     public String getAlt()
 189  
     {
 190  0
         if (_alt != null)
 191  
         {
 192  0
             return _alt;
 193  
         }
 194  0
         ValueExpression vb = getValueExpression("alt");
 195  0
         if (vb != null)
 196  
         {
 197  0
             return (String) vb.getValue(getFacesContext().getELContext());
 198  
         }
 199  0
         return null;
 200  
     }
 201  
 
 202  
     public void setAlt(String alt)
 203  
     {
 204  0
         this._alt = alt;
 205  0
     }
 206  
     // Property: tabindex
 207  
     private String _tabindex;
 208  
     
 209  
     public String getTabindex()
 210  
     {
 211  0
         if (_tabindex != null)
 212  
         {
 213  0
             return _tabindex;
 214  
         }
 215  0
         ValueExpression vb = getValueExpression("tabindex");
 216  0
         if (vb != null)
 217  
         {
 218  0
             return (String) vb.getValue(getFacesContext().getELContext());
 219  
         }
 220  0
         return null;
 221  
     }
 222  
 
 223  
     public void setTabindex(String tabindex)
 224  
     {
 225  0
         this._tabindex = tabindex;
 226  0
     }
 227  
     // Property: onblur
 228  
     private String _onblur;
 229  
     
 230  
     public String getOnblur()
 231  
     {
 232  0
         if (_onblur != null)
 233  
         {
 234  0
             return _onblur;
 235  
         }
 236  0
         ValueExpression vb = getValueExpression("onblur");
 237  0
         if (vb != null)
 238  
         {
 239  0
             return (String) vb.getValue(getFacesContext().getELContext());
 240  
         }
 241  0
         return null;
 242  
     }
 243  
 
 244  
     public void setOnblur(String onblur)
 245  
     {
 246  0
         this._onblur = onblur;
 247  0
     }
 248  
     // Property: onfocus
 249  
     private String _onfocus;
 250  
     
 251  
     public String getOnfocus()
 252  
     {
 253  0
         if (_onfocus != null)
 254  
         {
 255  0
             return _onfocus;
 256  
         }
 257  0
         ValueExpression vb = getValueExpression("onfocus");
 258  0
         if (vb != null)
 259  
         {
 260  0
             return (String) vb.getValue(getFacesContext().getELContext());
 261  
         }
 262  0
         return null;
 263  
     }
 264  
 
 265  
     public void setOnfocus(String onfocus)
 266  
     {
 267  0
         this._onfocus = onfocus;
 268  0
     }
 269  
     // Property: accesskey
 270  
     private String _accesskey;
 271  
     
 272  
     public String getAccesskey()
 273  
     {
 274  0
         if (_accesskey != null)
 275  
         {
 276  0
             return _accesskey;
 277  
         }
 278  0
         ValueExpression vb = getValueExpression("accesskey");
 279  0
         if (vb != null)
 280  
         {
 281  0
             return (String) vb.getValue(getFacesContext().getELContext());
 282  
         }
 283  0
         return null;
 284  
     }
 285  
 
 286  
     public void setAccesskey(String accesskey)
 287  
     {
 288  0
         this._accesskey = accesskey;
 289  0
     }
 290  
     // Property: onclick
 291  
     private String _onclick;
 292  
     
 293  
     public String getOnclick()
 294  
     {
 295  0
         if (_onclick != null)
 296  
         {
 297  0
             return _onclick;
 298  
         }
 299  0
         ValueExpression vb = getValueExpression("onclick");
 300  0
         if (vb != null)
 301  
         {
 302  0
             return (String) vb.getValue(getFacesContext().getELContext());
 303  
         }
 304  0
         return null;
 305  
     }
 306  
 
 307  
     public void setOnclick(String onclick)
 308  
     {
 309  0
         this._onclick = onclick;
 310  0
     }
 311  
     // Property: ondblclick
 312  
     private String _ondblclick;
 313  
     
 314  
     public String getOndblclick()
 315  
     {
 316  0
         if (_ondblclick != null)
 317  
         {
 318  0
             return _ondblclick;
 319  
         }
 320  0
         ValueExpression vb = getValueExpression("ondblclick");
 321  0
         if (vb != null)
 322  
         {
 323  0
             return (String) vb.getValue(getFacesContext().getELContext());
 324  
         }
 325  0
         return null;
 326  
     }
 327  
 
 328  
     public void setOndblclick(String ondblclick)
 329  
     {
 330  0
         this._ondblclick = ondblclick;
 331  0
     }
 332  
     // Property: onkeydown
 333  
     private String _onkeydown;
 334  
     
 335  
     public String getOnkeydown()
 336  
     {
 337  0
         if (_onkeydown != null)
 338  
         {
 339  0
             return _onkeydown;
 340  
         }
 341  0
         ValueExpression vb = getValueExpression("onkeydown");
 342  0
         if (vb != null)
 343  
         {
 344  0
             return (String) vb.getValue(getFacesContext().getELContext());
 345  
         }
 346  0
         return null;
 347  
     }
 348  
 
 349  
     public void setOnkeydown(String onkeydown)
 350  
     {
 351  0
         this._onkeydown = onkeydown;
 352  0
     }
 353  
     // Property: onkeypress
 354  
     private String _onkeypress;
 355  
     
 356  
     public String getOnkeypress()
 357  
     {
 358  0
         if (_onkeypress != null)
 359  
         {
 360  0
             return _onkeypress;
 361  
         }
 362  0
         ValueExpression vb = getValueExpression("onkeypress");
 363  0
         if (vb != null)
 364  
         {
 365  0
             return (String) vb.getValue(getFacesContext().getELContext());
 366  
         }
 367  0
         return null;
 368  
     }
 369  
 
 370  
     public void setOnkeypress(String onkeypress)
 371  
     {
 372  0
         this._onkeypress = onkeypress;
 373  0
     }
 374  
     // Property: onkeyup
 375  
     private String _onkeyup;
 376  
     
 377  
     public String getOnkeyup()
 378  
     {
 379  0
         if (_onkeyup != null)
 380  
         {
 381  0
             return _onkeyup;
 382  
         }
 383  0
         ValueExpression vb = getValueExpression("onkeyup");
 384  0
         if (vb != null)
 385  
         {
 386  0
             return (String) vb.getValue(getFacesContext().getELContext());
 387  
         }
 388  0
         return null;
 389  
     }
 390  
 
 391  
     public void setOnkeyup(String onkeyup)
 392  
     {
 393  0
         this._onkeyup = onkeyup;
 394  0
     }
 395  
     // Property: onmousedown
 396  
     private String _onmousedown;
 397  
     
 398  
     public String getOnmousedown()
 399  
     {
 400  0
         if (_onmousedown != null)
 401  
         {
 402  0
             return _onmousedown;
 403  
         }
 404  0
         ValueExpression vb = getValueExpression("onmousedown");
 405  0
         if (vb != null)
 406  
         {
 407  0
             return (String) vb.getValue(getFacesContext().getELContext());
 408  
         }
 409  0
         return null;
 410  
     }
 411  
 
 412  
     public void setOnmousedown(String onmousedown)
 413  
     {
 414  0
         this._onmousedown = onmousedown;
 415  0
     }
 416  
     // Property: onmousemove
 417  
     private String _onmousemove;
 418  
     
 419  
     public String getOnmousemove()
 420  
     {
 421  0
         if (_onmousemove != null)
 422  
         {
 423  0
             return _onmousemove;
 424  
         }
 425  0
         ValueExpression vb = getValueExpression("onmousemove");
 426  0
         if (vb != null)
 427  
         {
 428  0
             return (String) vb.getValue(getFacesContext().getELContext());
 429  
         }
 430  0
         return null;
 431  
     }
 432  
 
 433  
     public void setOnmousemove(String onmousemove)
 434  
     {
 435  0
         this._onmousemove = onmousemove;
 436  0
     }
 437  
     // Property: onmouseout
 438  
     private String _onmouseout;
 439  
     
 440  
     public String getOnmouseout()
 441  
     {
 442  0
         if (_onmouseout != null)
 443  
         {
 444  0
             return _onmouseout;
 445  
         }
 446  0
         ValueExpression vb = getValueExpression("onmouseout");
 447  0
         if (vb != null)
 448  
         {
 449  0
             return (String) vb.getValue(getFacesContext().getELContext());
 450  
         }
 451  0
         return null;
 452  
     }
 453  
 
 454  
     public void setOnmouseout(String onmouseout)
 455  
     {
 456  0
         this._onmouseout = onmouseout;
 457  0
     }
 458  
     // Property: onmouseover
 459  
     private String _onmouseover;
 460  
     
 461  
     public String getOnmouseover()
 462  
     {
 463  0
         if (_onmouseover != null)
 464  
         {
 465  0
             return _onmouseover;
 466  
         }
 467  0
         ValueExpression vb = getValueExpression("onmouseover");
 468  0
         if (vb != null)
 469  
         {
 470  0
             return (String) vb.getValue(getFacesContext().getELContext());
 471  
         }
 472  0
         return null;
 473  
     }
 474  
 
 475  
     public void setOnmouseover(String onmouseover)
 476  
     {
 477  0
         this._onmouseover = onmouseover;
 478  0
     }
 479  
     // Property: onmouseup
 480  
     private String _onmouseup;
 481  
     
 482  
     public String getOnmouseup()
 483  
     {
 484  0
         if (_onmouseup != null)
 485  
         {
 486  0
             return _onmouseup;
 487  
         }
 488  0
         ValueExpression vb = getValueExpression("onmouseup");
 489  0
         if (vb != null)
 490  
         {
 491  0
             return (String) vb.getValue(getFacesContext().getELContext());
 492  
         }
 493  0
         return null;
 494  
     }
 495  
 
 496  
     public void setOnmouseup(String onmouseup)
 497  
     {
 498  0
         this._onmouseup = onmouseup;
 499  0
     }
 500  
     // Property: onchange
 501  
     private String _onchange;
 502  
     
 503  
     public String getOnchange()
 504  
     {
 505  0
         if (_onchange != null)
 506  
         {
 507  0
             return _onchange;
 508  
         }
 509  0
         ValueExpression vb = getValueExpression("onchange");
 510  0
         if (vb != null)
 511  
         {
 512  0
             return (String) vb.getValue(getFacesContext().getELContext());
 513  
         }
 514  0
         return null;
 515  
     }
 516  
 
 517  
     public void setOnchange(String onchange)
 518  
     {
 519  0
         this._onchange = onchange;
 520  0
     }
 521  
     // Property: onselect
 522  
     private String _onselect;
 523  
     
 524  
     public String getOnselect()
 525  
     {
 526  0
         if (_onselect != null)
 527  
         {
 528  0
             return _onselect;
 529  
         }
 530  0
         ValueExpression vb = getValueExpression("onselect");
 531  0
         if (vb != null)
 532  
         {
 533  0
             return (String) vb.getValue(getFacesContext().getELContext());
 534  
         }
 535  0
         return null;
 536  
     }
 537  
 
 538  
     public void setOnselect(String onselect)
 539  
     {
 540  0
         this._onselect = onselect;
 541  0
     }
 542  
     // Property: dir
 543  
     private String _dir;
 544  
     
 545  
     public String getDir()
 546  
     {
 547  0
         if (_dir != null)
 548  
         {
 549  0
             return _dir;
 550  
         }
 551  0
         ValueExpression vb = getValueExpression("dir");
 552  0
         if (vb != null)
 553  
         {
 554  0
             return (String) vb.getValue(getFacesContext().getELContext());
 555  
         }
 556  0
         return null;
 557  
     }
 558  
 
 559  
     public void setDir(String dir)
 560  
     {
 561  0
         this._dir = dir;
 562  0
     }
 563  
     // Property: lang
 564  
     private String _lang;
 565  
     
 566  
     public String getLang()
 567  
     {
 568  0
         if (_lang != null)
 569  
         {
 570  0
             return _lang;
 571  
         }
 572  0
         ValueExpression vb = getValueExpression("lang");
 573  0
         if (vb != null)
 574  
         {
 575  0
             return (String) vb.getValue(getFacesContext().getELContext());
 576  
         }
 577  0
         return null;
 578  
     }
 579  
 
 580  
     public void setLang(String lang)
 581  
     {
 582  0
         this._lang = lang;
 583  0
     }
 584  
     // Property: title
 585  
     private String _title;
 586  
     
 587  
     public String getTitle()
 588  
     {
 589  0
         if (_title != null)
 590  
         {
 591  0
             return _title;
 592  
         }
 593  0
         ValueExpression vb = getValueExpression("title");
 594  0
         if (vb != null)
 595  
         {
 596  0
             return (String) vb.getValue(getFacesContext().getELContext());
 597  
         }
 598  0
         return null;
 599  
     }
 600  
 
 601  
     public void setTitle(String title)
 602  
     {
 603  0
         this._title = title;
 604  0
     }
 605  
     // Property: disabled
 606  
     private boolean _disabled;
 607  
     
 608  
     private boolean _disabledSet;
 609  
     
 610  
     public boolean isDisabled()
 611  
     {
 612  0
         if (_disabledSet)
 613  
         {
 614  0
             return _disabled;
 615  
         }
 616  0
         ValueExpression vb = getValueExpression("disabled");
 617  0
         if (vb != null)
 618  
         {
 619  0
             return ((Boolean) vb.getValue(getFacesContext().getELContext())).booleanValue();
 620  
         }
 621  0
         return false; 
 622  
     }
 623  
 
 624  
     public void setDisabled(boolean disabled)
 625  
     {
 626  0
         this._disabled = disabled;
 627  0
         this._disabledSet = true;        
 628  0
     }
 629  
     // Property: readonly
 630  
     private boolean _readonly;
 631  
     
 632  
     private boolean _readonlySet;
 633  
     
 634  
     public boolean isReadonly()
 635  
     {
 636  0
         if (_readonlySet)
 637  
         {
 638  0
             return _readonly;
 639  
         }
 640  0
         ValueExpression vb = getValueExpression("readonly");
 641  0
         if (vb != null)
 642  
         {
 643  0
             return ((Boolean) vb.getValue(getFacesContext().getELContext())).booleanValue();
 644  
         }
 645  0
         return false; 
 646  
     }
 647  
 
 648  
     public void setReadonly(boolean readonly)
 649  
     {
 650  0
         this._readonly = readonly;
 651  0
         this._readonlySet = true;        
 652  0
     }
 653  
 
 654  
     @Override
 655  
     public Object saveState(FacesContext facesContext)
 656  
     {
 657  0
         Object[] values = new Object[33];
 658  0
         values[0] = super.saveState(facesContext);
 659  0
         values[1] = Integer.valueOf(_maxlength);
 660  0
         values[2] = Boolean.valueOf(_maxlengthSet);
 661  0
         values[3] = Integer.valueOf(_size);
 662  0
         values[4] = Boolean.valueOf(_sizeSet);
 663  0
         values[5] = _autocomplete;
 664  0
         values[6] = _label;
 665  0
         values[7] = _style;
 666  0
         values[8] = _styleClass;
 667  0
         values[9] = _alt;
 668  0
         values[10] = _tabindex;
 669  0
         values[11] = _onblur;
 670  0
         values[12] = _onfocus;
 671  0
         values[13] = _accesskey;
 672  0
         values[14] = _onclick;
 673  0
         values[15] = _ondblclick;
 674  0
         values[16] = _onkeydown;
 675  0
         values[17] = _onkeypress;
 676  0
         values[18] = _onkeyup;
 677  0
         values[19] = _onmousedown;
 678  0
         values[20] = _onmousemove;
 679  0
         values[21] = _onmouseout;
 680  0
         values[22] = _onmouseover;
 681  0
         values[23] = _onmouseup;
 682  0
         values[24] = _onchange;
 683  0
         values[25] = _onselect;
 684  0
         values[26] = _dir;
 685  0
         values[27] = _lang;
 686  0
         values[28] = _title;
 687  0
         values[29] = Boolean.valueOf(_disabled);
 688  0
         values[30] = Boolean.valueOf(_disabledSet);
 689  0
         values[31] = Boolean.valueOf(_readonly);
 690  0
         values[32] = Boolean.valueOf(_readonlySet);
 691  0
         return values; 
 692  
     }
 693  
 
 694  
     @Override
 695  
     public void restoreState(FacesContext facesContext, Object state)
 696  
     {
 697  0
         Object[] values = (Object[])state;
 698  0
         super.restoreState(facesContext,values[0]);
 699  0
         _maxlength = ((Integer) values[1]).intValue();
 700  0
         _maxlengthSet = ((Boolean) values[2]).booleanValue();
 701  0
         _size = ((Integer) values[3]).intValue();
 702  0
         _sizeSet = ((Boolean) values[4]).booleanValue();
 703  0
         _autocomplete = (java.lang.String) values[5];
 704  0
         _label = (java.lang.String) values[6];
 705  0
         _style = (java.lang.String) values[7];
 706  0
         _styleClass = (java.lang.String) values[8];
 707  0
         _alt = (java.lang.String) values[9];
 708  0
         _tabindex = (java.lang.String) values[10];
 709  0
         _onblur = (java.lang.String) values[11];
 710  0
         _onfocus = (java.lang.String) values[12];
 711  0
         _accesskey = (java.lang.String) values[13];
 712  0
         _onclick = (java.lang.String) values[14];
 713  0
         _ondblclick = (java.lang.String) values[15];
 714  0
         _onkeydown = (java.lang.String) values[16];
 715  0
         _onkeypress = (java.lang.String) values[17];
 716  0
         _onkeyup = (java.lang.String) values[18];
 717  0
         _onmousedown = (java.lang.String) values[19];
 718  0
         _onmousemove = (java.lang.String) values[20];
 719  0
         _onmouseout = (java.lang.String) values[21];
 720  0
         _onmouseover = (java.lang.String) values[22];
 721  0
         _onmouseup = (java.lang.String) values[23];
 722  0
         _onchange = (java.lang.String) values[24];
 723  0
         _onselect = (java.lang.String) values[25];
 724  0
         _dir = (java.lang.String) values[26];
 725  0
         _lang = (java.lang.String) values[27];
 726  0
         _title = (java.lang.String) values[28];
 727  0
         _disabled = ((Boolean) values[29]).booleanValue();
 728  0
         _disabledSet = ((Boolean) values[30]).booleanValue();
 729  0
         _readonly = ((Boolean) values[31]).booleanValue();
 730  0
         _readonlySet = ((Boolean) values[32]).booleanValue();
 731  0
     }
 732  
 }