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