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