Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlCommandButtonTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlCommandButtonTagBase
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.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  
  * @deprecated use {@link HtmlCommandButtonELTagBase} instead
 32  
  */
 33  0
 public abstract class HtmlCommandButtonTagBase
 34  
     extends HtmlComponentTagBase
 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 String _accesskey;
 48  
     private String _alt;
 49  
     private String _disabled;
 50  
     private String _onblur;
 51  
     private String _onchange;
 52  
     private String _onfocus;
 53  
     private String _onselect;
 54  
     private String _size;
 55  
     private String _tabindex;
 56  
     private String _type;
 57  
 
 58  
     // UICommand attributes
 59  
     private String _action;
 60  
     private String _immediate;
 61  
     private String _actionListener;
 62  
 
 63  
     // HtmlCommandButton attributes
 64  
     private String _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(String accesskey)
 105  
     {
 106  0
         _accesskey = accesskey;
 107  0
     }
 108  
 
 109  
     public void setAlt(String alt)
 110  
     {
 111  0
         _alt = alt;
 112  0
     }
 113  
 
 114  
     public void setDisabled(String disabled)
 115  
     {
 116  0
         _disabled = disabled;
 117  0
     }
 118  
 
 119  
     public void setOnblur(String onblur)
 120  
     {
 121  0
         _onblur = onblur;
 122  0
     }
 123  
 
 124  
     public void setOnchange(String onchange)
 125  
     {
 126  0
         _onchange = onchange;
 127  0
     }
 128  
 
 129  
     public void setOnfocus(String onfocus)
 130  
     {
 131  0
         _onfocus = onfocus;
 132  0
     }
 133  
 
 134  
     public void setOnselect(String onselect)
 135  
     {
 136  0
         _onselect = onselect;
 137  0
     }
 138  
 
 139  
     public void setSize(String size)
 140  
     {
 141  0
         _size = size;
 142  0
     }
 143  
 
 144  
     public void setTabindex(String tabindex)
 145  
     {
 146  0
         _tabindex = tabindex;
 147  0
     }
 148  
 
 149  
     public void setType(String type)
 150  
     {
 151  0
         _type = type;
 152  0
     }
 153  
 
 154  
     public void setAction(String action)
 155  
     {
 156  0
         _action = action;
 157  0
     }
 158  
 
 159  
     public void setImmediate(String immediate)
 160  
     {
 161  0
         _immediate = immediate;
 162  0
     }
 163  
 
 164  
     public void setImage(String image)
 165  
     {
 166  0
         _image = image;
 167  0
     }
 168  
 
 169  
     public void setActionListener(String actionListener)
 170  
     {
 171  0
         _actionListener = actionListener;
 172  0
     }
 173  
 }