Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlComponentTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlComponentTagBase
0%
0/65
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  
 import org.apache.myfaces.shared_impl.taglib.UIComponentELTagBase;
 23  
 import org.apache.myfaces.shared_impl.taglib.UIComponentTagBase;
 24  
 
 25  
 import javax.faces.component.UIComponent;
 26  
 
 27  
 /**
 28  
  * @author Manfred Geiler (latest modification by $Author: cagatay $)
 29  
  * @version $Revision: 606701 $ $Date: 2007-12-24 09:33:56 -0500 (Mon, 24 Dec 2007) $
 30  
  * @deprecated use {@link HtmlComponentTagELBase} instead
 31  
  */
 32  0
 public abstract class HtmlComponentTagBase
 33  
         extends UIComponentTagBase
 34  
 {
 35  
     //private static final Log log = LogFactory.getLog(HtmlComponentTag.class);
 36  
 
 37  
     //HTML universal attributes
 38  
     private String _dir;
 39  
     private String _lang;
 40  
     private String _style;
 41  
     private String _styleClass;
 42  
     private String _title;
 43  
 
 44  
     //HTML event handler attributes
 45  
     private String _onclick;
 46  
     private String _ondblclick;
 47  
     private String _onkeydown;
 48  
     private String _onkeypress;
 49  
     private String _onkeyup;
 50  
     private String _onmousedown;
 51  
     private String _onmousemove;
 52  
     private String _onmouseout;
 53  
     private String _onmouseover;
 54  
     private String _onmouseup;
 55  
 
 56  
     public void release() {
 57  0
         super.release();
 58  
 
 59  0
         _dir=null;
 60  0
         _lang=null;
 61  0
         _style=null;
 62  0
         _styleClass=null;
 63  0
         _title=null;
 64  0
         _onclick=null;
 65  0
         _ondblclick=null;
 66  0
         _onkeydown=null;
 67  0
         _onkeypress=null;
 68  0
         _onkeyup=null;
 69  0
         _onmousedown=null;
 70  0
         _onmousemove=null;
 71  0
         _onmouseout=null;
 72  0
         _onmouseover=null;
 73  0
         _onmouseup=null;
 74  
 
 75  0
     }
 76  
 
 77  
     protected void setProperties(UIComponent component)
 78  
     {
 79  0
         super.setProperties(component);
 80  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.DIR_ATTR, _dir);
 81  0
         setStringProperty(component, HTML.LANG_ATTR, _lang);
 82  0
         setStringProperty(component, HTML.STYLE_ATTR, _style);
 83  0
         setStringProperty(component, HTML.TITLE_ATTR, _title);
 84  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.STYLE_CLASS_ATTR, _styleClass);
 85  0
         setStringProperty(component, HTML.ONCLICK_ATTR, _onclick);
 86  0
         setStringProperty(component, HTML.ONDBLCLICK_ATTR, _ondblclick);
 87  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONMOUSEDOWN_ATTR, _onmousedown);
 88  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONMOUSEUP_ATTR, _onmouseup);
 89  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONMOUSEOVER_ATTR, _onmouseover);
 90  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONMOUSEMOVE_ATTR, _onmousemove);
 91  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONMOUSEOUT_ATTR, _onmouseout);
 92  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONKEYPRESS_ATTR, _onkeypress);
 93  0
         setStringProperty(component, HTML.ONKEYDOWN_ATTR, _onkeydown);
 94  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONKEYUP_ATTR, _onkeyup);
 95  0
     }
 96  
 
 97  
     public void setStyleClass(String styleClass)
 98  
     {
 99  0
         _styleClass = styleClass;
 100  0
     }
 101  
 
 102  
     public void setDir(String dir)
 103  
     {
 104  0
         _dir = dir;
 105  0
     }
 106  
 
 107  
     public void setLang(String lang)
 108  
     {
 109  0
         _lang = lang;
 110  0
     }
 111  
 
 112  
     public void setStyle(String style)
 113  
     {
 114  0
         _style = style;
 115  0
     }
 116  
 
 117  
     public void setTitle(String title)
 118  
     {
 119  0
         _title = title;
 120  0
     }
 121  
 
 122  
     public void setOnclick(String onclick)
 123  
     {
 124  0
         _onclick = onclick;
 125  0
     }
 126  
 
 127  
     public void setOndblclick(String ondblclick)
 128  
     {
 129  0
         _ondblclick = ondblclick;
 130  0
     }
 131  
 
 132  
     public void setOnmousedown(String onmousedown)
 133  
     {
 134  0
         _onmousedown = onmousedown;
 135  0
     }
 136  
 
 137  
     public void setOnmouseup(String onmouseup)
 138  
     {
 139  0
         _onmouseup = onmouseup;
 140  0
     }
 141  
 
 142  
     public void setOnmouseover(String onmouseover)
 143  
     {
 144  0
         _onmouseover = onmouseover;
 145  0
     }
 146  
 
 147  
     public void setOnmousemove(String onmousemove)
 148  
     {
 149  0
         _onmousemove = onmousemove;
 150  0
     }
 151  
 
 152  
     public void setOnmouseout(String onmouseout)
 153  
     {
 154  0
         _onmouseout = onmouseout;
 155  0
     }
 156  
 
 157  
     public void setOnkeypress(String onkeypress)
 158  
     {
 159  0
         _onkeypress = onkeypress;
 160  0
     }
 161  
 
 162  
     public void setOnkeydown(String onkeydown)
 163  
     {
 164  0
         _onkeydown = onkeydown;
 165  0
     }
 166  
 
 167  
     public void setOnkeyup(String onkeyup)
 168  
     {
 169  0
         _onkeyup = onkeyup;
 170  0
     }
 171  
 }