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