Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlCommandLinkELTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlCommandLinkELTagBase
0%
0/69
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.MethodExpression;
 24  
 import javax.el.ValueExpression;
 25  
 import javax.faces.component.UIComponent;
 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 HtmlCommandLinkELTagBase extends HtmlComponentELTagBase
 33  
 {
 34  
     //private static final Log log = LogFactory.getLog(HtmlCommandLinkTag.class);
 35  
 
 36  
     // UIComponent attributes --> already implemented in UIComponentTagBase
 37  
 
 38  
     // user role attributes --> already implemented in UIComponentTagBase
 39  
 
 40  
     // HTML universal attributes --> already implemented in HtmlComponentTagBase
 41  
 
 42  
     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
 43  
 
 44  
     // HTML anchor attributes relevant for command link
 45  
     private ValueExpression _accesskey;
 46  
     private ValueExpression _charset;
 47  
     private ValueExpression _coords;
 48  
     private ValueExpression _disabled;
 49  
     private ValueExpression _hreflang;
 50  
     private ValueExpression _rel;
 51  
     private ValueExpression _rev;
 52  
     private ValueExpression _shape;
 53  
     private ValueExpression _tabindex;
 54  
     private ValueExpression _type;
 55  
     private ValueExpression _target;
 56  
     //HtmlCommandLink Attributes
 57  
     //FIXME: is mentioned in JSF API, but is no official anchor-attribute of HTML 4.0... what to do?
 58  
     private ValueExpression _onblur;
 59  
     //FIXME: is mentioned in JSF API, but is no official anchor-attribute of HTML 4.0... what to do?
 60  
     private ValueExpression _onfocus;
 61  
 
 62  
     // UICommand attributes
 63  
     private MethodExpression _action;
 64  
     private ValueExpression _immediate;
 65  
     private MethodExpression _actionListener;
 66  
 
 67  
     public void release() {
 68  0
         super.release();
 69  0
         _accesskey=null;
 70  0
         _charset=null;
 71  0
         _coords=null;
 72  0
         _disabled=null;
 73  0
         _hreflang=null;
 74  0
         _rel=null;
 75  0
         _rev=null;
 76  0
         _shape=null;
 77  0
         _tabindex=null;
 78  0
         _type=null;
 79  0
         _target=null;
 80  0
         _onblur=null;
 81  0
         _onfocus=null;
 82  0
         _action=null;
 83  0
         _immediate=null;
 84  0
         _actionListener=null;
 85  0
     }
 86  
 
 87  
     protected void setProperties(UIComponent component)
 88  
     {
 89  0
         super.setProperties(component);
 90  
 
 91  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ACCESSKEY_ATTR, _accesskey);
 92  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.CHARSET_ATTR, _charset);
 93  0
         setStringProperty(component, HTML.COORDS_ATTR, _coords);
 94  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.DISABLED_ATTR, _disabled);
 95  0
         setStringProperty(component, HTML.HREFLANG_ATTR, _hreflang);
 96  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.REL_ATTR, _rel);
 97  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.REV_ATTR, _rev);
 98  0
         setStringProperty(component, HTML.SHAPE_ATTR, _shape);
 99  0
         setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex);
 100  0
         setStringProperty(component, HTML.TYPE_ATTR, _type);
 101  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONBLUR_ATTR, _onblur);
 102  0
         setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus);
 103  0
         setStringProperty(component, HTML.TARGET_ATTR, _target);
 104  0
         setActionProperty(component, _action);
 105  0
         setActionListenerProperty(component, _actionListener);
 106  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.IMMEDIATE_ATTR, _immediate);
 107  0
    }
 108  
 
 109  
     public void setAccesskey(ValueExpression accesskey)
 110  
     {
 111  0
         _accesskey = accesskey;
 112  0
     }
 113  
 
 114  
     public void setCharset(ValueExpression charset)
 115  
     {
 116  0
         _charset = charset;
 117  0
     }
 118  
 
 119  
     public void setCoords(ValueExpression coords)
 120  
     {
 121  0
         _coords = coords;
 122  0
     }
 123  
     
 124  
     public void setDisabled(ValueExpression disabled)
 125  
     {
 126  0
         _disabled = disabled;
 127  0
     }    
 128  
 
 129  
     public void setHreflang(ValueExpression hreflang)
 130  
     {
 131  0
         _hreflang = hreflang;
 132  0
     }
 133  
 
 134  
     public void setOnblur(ValueExpression onblur)
 135  
     {
 136  0
         _onblur = onblur;
 137  0
     }
 138  
 
 139  
     public void setOnfocus(ValueExpression onfocus)
 140  
     {
 141  0
         _onfocus = onfocus;
 142  0
     }
 143  
 
 144  
     public void setRel(ValueExpression rel)
 145  
     {
 146  0
         _rel = rel;
 147  0
     }
 148  
 
 149  
     public void setRev(ValueExpression rev)
 150  
     {
 151  0
         _rev = rev;
 152  0
     }
 153  
 
 154  
     public void setShape(ValueExpression shape)
 155  
     {
 156  0
         _shape = shape;
 157  0
     }
 158  
 
 159  
     public void setTabindex(ValueExpression tabindex)
 160  
     {
 161  0
         _tabindex = tabindex;
 162  0
     }
 163  
 
 164  
     public void setType(ValueExpression type)
 165  
     {
 166  0
         _type = type;
 167  0
     }
 168  
 
 169  
     public void setAction(MethodExpression action)
 170  
     {
 171  0
         _action = action;
 172  0
     }
 173  
 
 174  
     public void setImmediate(ValueExpression immediate)
 175  
     {
 176  0
         _immediate = immediate;
 177  0
     }
 178  
 
 179  
     public void setActionListener(MethodExpression actionListener)
 180  
     {
 181  0
         _actionListener = actionListener;
 182  0
     }
 183  
 
 184  
 
 185  
     public void setTarget(ValueExpression target)
 186  
     {
 187  0
         this._target = target;
 188  0
     }
 189  
 }