Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlCommandButtonELTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlCommandButtonELTagBase
0%
0/61
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.JSFAttr;
 22  
 import org.apache.myfaces.shared_impl.renderkit.html.HTML;
 23  
 
 24  
 import javax.el.MethodExpression;
 25  
 import javax.el.ValueExpression;
 26  
 import javax.faces.component.UIComponent;
 27  
 
 28  
 
 29  
 /**
 30  
  * @author Manfred Geiler (latest modification by $Author: cagatay $)
 31  
  * @author Martin Marinschek
 32  
  * @version $Revision: 606793 $ $Date: 2007-12-25 10:20:46 -0500 (Tue, 25 Dec 2007) $
 33  
  */
 34  0
 public abstract class HtmlCommandButtonELTagBase extends HtmlComponentELTagBase
 35  
 {
 36  
     //private static final Log log = LogFactory.getLog(HtmlCommandButtonTag.class);
 37  
 
 38  
     // UIComponent attributes --> already implemented in UIComponentTagBase
 39  
 
 40  
     // user role attributes --> already implemented in UIComponentTagBase
 41  
 
 42  
     // HTML universal attributes --> already implemented in HtmlComponentTagBase
 43  
 
 44  
     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
 45  
 
 46  
     // HTML input attributes relevant for command-button
 47  
     private ValueExpression _accesskey;
 48  
     private ValueExpression _alt;
 49  
     private ValueExpression _disabled;
 50  
     private ValueExpression _onblur;
 51  
     private ValueExpression _onchange;
 52  
     private ValueExpression _onfocus;
 53  
     private ValueExpression _onselect;
 54  
     private ValueExpression _size;
 55  
     private ValueExpression _tabindex;
 56  
     private ValueExpression _type;
 57  
 
 58  
     // UICommand attributes
 59  
     private MethodExpression _action;
 60  
     private ValueExpression _immediate;
 61  
     private MethodExpression _actionListener;
 62  
 
 63  
     // HtmlCommandButton attributes
 64  
     private ValueExpression _image;
 65  
 
 66  
     public void release() {
 67  0
         super.release();
 68  0
         _accesskey=null;
 69  0
         _alt=null;
 70  0
         _disabled=null;
 71  0
         _onblur=null;
 72  0
         _onchange=null;
 73  0
         _onfocus=null;
 74  0
         _onselect=null;
 75  0
         _size=null;
 76  0
         _tabindex=null;
 77  0
         _type=null;
 78  0
         _action=null;
 79  0
         _immediate=null;
 80  0
         _actionListener=null;
 81  0
         _image=null;
 82  0
     }
 83  
 
 84  
     protected void setProperties(UIComponent component)
 85  
     {
 86  0
         super.setProperties(component);
 87  
 
 88  0
         setStringProperty(component, HTML.ACCESSKEY_ATTR, _accesskey);
 89  0
         setStringProperty(component, HTML.ALT_ATTR, _alt);
 90  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.DISABLED_ATTR, _disabled);
 91  0
         setStringProperty(component, HTML.ONBLUR_ATTR, _onblur);
 92  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONCHANGE_ATTR, _onchange);
 93  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONFOCUS_ATTR, _onfocus);
 94  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONSELECT_ATTR, _onselect);
 95  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.SIZE_ATTR, _size);
 96  0
         setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex);
 97  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.TYPE_ATTR, _type);
 98  0
         setActionProperty(component, _action);
 99  0
         setActionListenerProperty(component, _actionListener);
 100  0
         setBooleanProperty(component, JSFAttr.IMMEDIATE_ATTR, _immediate);
 101  0
         setStringProperty(component, JSFAttr.IMAGE_ATTR, _image);
 102  0
    }
 103  
 
 104  
     public void setAccesskey(ValueExpression accesskey)
 105  
     {
 106  0
         _accesskey = accesskey;
 107  0
     }
 108  
 
 109  
     public void setAlt(ValueExpression alt)
 110  
     {
 111  0
         _alt = alt;
 112  0
     }
 113  
 
 114  
     public void setDisabled(ValueExpression disabled)
 115  
     {
 116  0
         _disabled = disabled;
 117  0
     }
 118  
 
 119  
     public void setOnblur(ValueExpression onblur)
 120  
     {
 121  0
         _onblur = onblur;
 122  0
     }
 123  
 
 124  
     public void setOnchange(ValueExpression onchange)
 125  
     {
 126  0
         _onchange = onchange;
 127  0
     }
 128  
 
 129  
     public void setOnfocus(ValueExpression onfocus)
 130  
     {
 131  0
         _onfocus = onfocus;
 132  0
     }
 133  
 
 134  
     public void setOnselect(ValueExpression onselect)
 135  
     {
 136  0
         _onselect = onselect;
 137  0
     }
 138  
 
 139  
     public void setSize(ValueExpression size)
 140  
     {
 141  0
         _size = size;
 142  0
     }
 143  
 
 144  
     public void setTabindex(ValueExpression tabindex)
 145  
     {
 146  0
         _tabindex = tabindex;
 147  0
     }
 148  
 
 149  
     public void setType(ValueExpression type)
 150  
     {
 151  0
         _type = type;
 152  0
     }
 153  
 
 154  
     public void setAction(MethodExpression action)
 155  
     {
 156  0
         _action = action;
 157  0
     }
 158  
 
 159  
     public void setImmediate(ValueExpression immediate)
 160  
     {
 161  0
         _immediate = immediate;
 162  0
     }
 163  
 
 164  
     public void setImage(ValueExpression image)
 165  
     {
 166  0
         _image = image;
 167  0
     }
 168  
 
 169  
     public void setActionListener(MethodExpression actionListener)
 170  
     {
 171  0
         _actionListener = actionListener;
 172  0
     }
 173  
 }