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