Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlGraphicImageELTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlGraphicImageELTagBase
0%
0/44
N/A
1
 
 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 org.apache.myfaces.shared_impl.taglib.html;
 20  
 
 21  
 import org.apache.myfaces.shared_impl.renderkit.html.HTML;
 22  
 
 23  
 import javax.el.ValueExpression;
 24  
 import javax.faces.component.UIComponent;
 25  
 
 26  
 
 27  
 /**
 28  
  * @author Manfred Geiler (latest modification by $Author: cagatay $)
 29  
  * @author Martin Marinschek
 30  
  * @version $Revision: 606793 $ $Date: 2007-12-25 10:20:46 -0500 (Tue, 25 Dec 2007) $
 31  
  */
 32  0
 public abstract class HtmlGraphicImageELTagBase
 33  
     extends org.apache.myfaces.shared_impl.taglib.html.HtmlComponentELTagBase
 34  
 {
 35  
     // UIComponent attributes --> already implemented in UIComponentTagBase
 36  
 
 37  
     // user role attributes --> already implemented in UIComponentTagBase
 38  
 
 39  
     // HTML universal attributes --> already implemented in HtmlComponentTagBase
 40  
 
 41  
     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
 42  
 
 43  
     // HTML img attributes relevant for graphic-image
 44  
     private ValueExpression _alt;
 45  
     private ValueExpression _height;
 46  
     private ValueExpression _ismap;
 47  
     private ValueExpression _longdesc;
 48  
     private ValueExpression _onblur;
 49  
     private ValueExpression _onchange;
 50  
     private ValueExpression _onfocus;
 51  
     private ValueExpression _usemap;
 52  
     private ValueExpression _width;
 53  
 
 54  
     //UIGraphic attributes
 55  
     private ValueExpression _url;
 56  
 
 57  
     // HtmlGraphicImage attributes
 58  
     //none so far
 59  
 
 60  
     public void release() {
 61  0
         super.release();
 62  0
         _alt=null;
 63  0
         _height=null;
 64  0
         _ismap=null;
 65  0
         _longdesc=null;
 66  0
         _onblur=null;
 67  0
         _onchange=null;
 68  0
         _onfocus=null;
 69  0
         _usemap=null;
 70  0
         _width=null;
 71  0
     }
 72  
 
 73  
     protected void setProperties(UIComponent component)
 74  
     {
 75  0
         super.setProperties(component);
 76  
 
 77  0
         setStringProperty(component, HTML.ALT_ATTR, _alt);
 78  0
         setStringProperty(component, HTML.HEIGHT_ATTR, _height);
 79  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ISMAP_ATTR, _ismap);
 80  0
         setStringProperty(component, HTML.LONGDESC_ATTR, _longdesc);
 81  0
         setStringProperty(component, HTML.ONBLUR_ATTR, _onblur);
 82  0
         setStringProperty(component, HTML.ONCHANGE_ATTR, _onchange);
 83  0
         setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus);
 84  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.USEMAP_ATTR, _usemap);
 85  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.WIDTH_ATTR, _width);
 86  
 
 87  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.URL_ATTR, _url);
 88  0
    }
 89  
 
 90  
     public void setAlt(ValueExpression alt)
 91  
     {
 92  0
         _alt = alt;
 93  0
     }
 94  
 
 95  
     public void setHeight(ValueExpression height)
 96  
     {
 97  0
         _height = height;
 98  0
     }
 99  
 
 100  
     public void setIsmap(ValueExpression ismap)
 101  
     {
 102  0
         _ismap = ismap;
 103  0
     }
 104  
 
 105  
     public void setLongdesc(ValueExpression longdesc)
 106  
     {
 107  0
         _longdesc = longdesc;
 108  0
     }
 109  
 
 110  
     public void setOnblur(ValueExpression onblur)
 111  
     {
 112  0
         _onblur = onblur;
 113  0
     }
 114  
 
 115  
     public void setOnchange(ValueExpression onchange)
 116  
     {
 117  0
         _onchange = onchange;
 118  0
     }
 119  
 
 120  
     public void setOnfocus(ValueExpression onfocus)
 121  
     {
 122  0
         _onfocus = onfocus;
 123  0
     }
 124  
 
 125  
     public void setUsemap(ValueExpression usemap)
 126  
     {
 127  0
         _usemap = usemap;
 128  0
     }
 129  
 
 130  
     public void setWidth(ValueExpression width)
 131  
     {
 132  0
         _width = width;
 133  0
     }
 134  
 
 135  
     public void setUrl(ValueExpression url)
 136  
     {
 137  0
         _url = url;
 138  0
     }
 139  
 }