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