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