Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlOutputLinkELTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlOutputLinkELTagBase
0%
0/57
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 HtmlOutputLinkELTagBase
 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 anchor attributes relevant for command link
 44  
     private ValueExpression _accesskey;
 45  
     private ValueExpression _charset;
 46  
     private ValueExpression _coords;
 47  
     private ValueExpression _disabled;
 48  
     private ValueExpression _hreflang;
 49  
     private ValueExpression _rel;
 50  
     private ValueExpression _rev;
 51  
     private ValueExpression _shape;
 52  
     private ValueExpression _tabindex;
 53  
     private ValueExpression _target;
 54  
     private ValueExpression _type;
 55  
     //FIXME: is mentioned in JSF API, but is no official anchor-attribute of HTML 4.0... what to do?
 56  
     private ValueExpression _onblur;
 57  
     //FIXME: is mentioned in JSF API, but is no official anchor-attribute of HTML 4.0... what to do?
 58  
     private ValueExpression _onfocus;
 59  
 
 60  
     // UIOutput attributes
 61  
     // value and converterId --> already implemented in UIComponentTagBase
 62  
 
 63  
     //HtmlCommandLink Attributes
 64  
 
 65  
     public void release() {
 66  0
         super.release();
 67  0
         _accesskey=null;
 68  0
         _charset=null;
 69  0
         _coords=null;
 70  0
         _disabled=null;
 71  0
         _hreflang=null;
 72  0
         _rel=null;
 73  0
         _rev=null;
 74  0
         _shape=null;
 75  0
         _tabindex=null;
 76  0
         _target=null;
 77  0
         _type=null;
 78  0
         _onblur=null;
 79  0
         _onfocus=null;
 80  0
     }
 81  
 
 82  
     protected void setProperties(UIComponent component)
 83  
     {
 84  0
         super.setProperties(component);
 85  
 
 86  0
         setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey);
 87  0
         setStringProperty(component, HTML.CHARSET_ATTR, _charset);
 88  0
         setStringProperty(component, HTML.COORDS_ATTR, _coords);
 89  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.DISABLED_ATTR, _disabled);
 90  0
         setStringProperty(component, HTML.HREFLANG_ATTR, _hreflang);
 91  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.REL_ATTR, _rel);
 92  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.REV_ATTR, _rev);
 93  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.SHAPE_ATTR, _shape);
 94  0
         setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex);
 95  0
         setStringProperty(component, HTML.TARGET_ATTR, _target);
 96  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.TYPE_ATTR, _type);
 97  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONBLUR_ATTR, _onblur);
 98  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONFOCUS_ATTR, _onfocus);
 99  0
    }
 100  
 
 101  
     public void setAccesskey(ValueExpression accesskey)
 102  
     {
 103  0
         _accesskey = accesskey;
 104  0
     }
 105  
 
 106  
     public void setCharset(ValueExpression charset)
 107  
     {
 108  0
         _charset = charset;
 109  0
     }
 110  
 
 111  
     public void setCoords(ValueExpression coords)
 112  
     {
 113  0
         _coords = coords;
 114  0
     }
 115  
 
 116  
     public void setDisabled(ValueExpression disabled)
 117  
     {
 118  0
         _disabled = disabled;
 119  0
     }
 120  
 
 121  
     public void setHreflang(ValueExpression hreflang)
 122  
     {
 123  0
         _hreflang = hreflang;
 124  0
     }
 125  
 
 126  
     public void setOnblur(ValueExpression onblur)
 127  
     {
 128  0
         _onblur = onblur;
 129  0
     }
 130  
 
 131  
     public void setOnfocus(ValueExpression onfocus)
 132  
     {
 133  0
         _onfocus = onfocus;
 134  0
     }
 135  
 
 136  
     public void setRel(ValueExpression rel)
 137  
     {
 138  0
         _rel = rel;
 139  0
     }
 140  
 
 141  
     public void setRev(ValueExpression rev)
 142  
     {
 143  0
         _rev = rev;
 144  0
     }
 145  
 
 146  
     public void setShape(ValueExpression shape)
 147  
     {
 148  0
         _shape = shape;
 149  0
     }
 150  
 
 151  
     public void setTabindex(ValueExpression tabindex)
 152  
     {
 153  0
         _tabindex = tabindex;
 154  0
     }
 155  
 
 156  
     public void setTarget(ValueExpression target)
 157  
     {
 158  0
         _target = target;
 159  0
     }
 160  
 
 161  
     public void setType(ValueExpression type)
 162  
     {
 163  0
         _type = type;
 164  0
     }
 165  
 }