Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlSelectListboxELTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlSelectListboxELTagBase
0%
0/54
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  
 
 23  
 import javax.el.ValueExpression;
 24  
 import javax.faces.component.UIComponent;
 25  
 
 26  
 
 27  
 /**
 28  
  * Common base tag class for HtmlSelectOneListbox and HtmlSelectManyListbox components.
 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 HtmlSelectListboxELTagBase
 35  
         extends org.apache.myfaces.shared_impl.taglib.html.HtmlInputELTagBase
 36  
 {
 37  
     // UIComponent attributes --> already implemented in UIComponentTagBase
 38  
 
 39  
     // user role attributes --> already implemented in UIComponentTagBase
 40  
 
 41  
     // HTML universal attributes --> already implemented in HtmlComponentTagBase
 42  
 
 43  
     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
 44  
 
 45  
     // HTML input attributes relevant for checkbox-input
 46  
     private ValueExpression _datafld;
 47  
     private ValueExpression _datasrc;
 48  
     private ValueExpression _dataformatas;
 49  
     private ValueExpression _disabled;
 50  
     private ValueExpression _name;
 51  
     private ValueExpression _onblur;
 52  
     private ValueExpression _onchange;
 53  
     private ValueExpression _onfocus;
 54  
     private ValueExpression _onselect;
 55  
     private ValueExpression _size;
 56  
     private ValueExpression _tabindex;
 57  
 
 58  
     // UIInput attributes
 59  
     // --> already implemented in HtmlInputTagBase
 60  
 
 61  
     // UISelectMany attributes
 62  
     //selectedValues cannot be set here, is set in JSP-parsing
 63  
 
 64  
     // HTMLSelectManyAttributes attributes
 65  
     private ValueExpression _disabledClass;
 66  
     private ValueExpression _enabledClass;
 67  
 
 68  
     public void release() {
 69  0
         super.release();
 70  0
         _datafld=null;
 71  0
         _datasrc=null;
 72  0
         _dataformatas=null;
 73  0
         _disabled=null;
 74  0
         _name=null;
 75  0
         _onblur=null;
 76  0
         _onchange=null;
 77  0
         _onfocus=null;
 78  0
         _onselect=null;
 79  0
         _size=null;
 80  0
         _tabindex=null;
 81  0
         _disabledClass = null;
 82  0
         _enabledClass = null;
 83  0
     }
 84  
 
 85  
     protected void setProperties(UIComponent component)
 86  
     {
 87  0
         super.setProperties(component);
 88  
 
 89  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.DISABLED_ATTR, _disabled);
 90  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.NAME_ATTR, _name);
 91  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.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
         setIntegerProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.SIZE_ATTR, _size);
 96  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.TABINDEX_ATTR, _tabindex);
 97  
 
 98  0
         setStringProperty(component, JSFAttr.DISABLED_CLASS_ATTR, _disabledClass);
 99  0
         setStringProperty(component, JSFAttr.ENABLED_CLASS_ATTR, _enabledClass);
 100  0
    }
 101  
 
 102  
     public void setDatafld(ValueExpression datafld)
 103  
     {
 104  0
         _datafld = datafld;
 105  0
     }
 106  
 
 107  
     public void setDatasrc(ValueExpression datasrc)
 108  
     {
 109  0
         _datasrc = datasrc;
 110  0
     }
 111  
 
 112  
     public void setDataformatas(ValueExpression dataformatas)
 113  
     {
 114  0
         _dataformatas = dataformatas;
 115  0
     }
 116  
 
 117  
     public void setDisabled(ValueExpression disabled)
 118  
     {
 119  0
         _disabled = disabled;
 120  0
     }
 121  
 
 122  
     public void setName(ValueExpression name)
 123  
     {
 124  0
         _name = name;
 125  0
     }
 126  
 
 127  
     public void setOnblur(ValueExpression onblur)
 128  
     {
 129  0
         _onblur = onblur;
 130  0
     }
 131  
 
 132  
     public void setOnchange(ValueExpression onchange)
 133  
     {
 134  0
         _onchange = onchange;
 135  0
     }
 136  
 
 137  
     public void setOnfocus(ValueExpression onfocus)
 138  
     {
 139  0
         _onfocus = onfocus;
 140  0
     }
 141  
 
 142  
     public void setOnselect(ValueExpression onselect)
 143  
     {
 144  0
         _onselect = onselect;
 145  0
     }
 146  
 
 147  
     public void setSize(ValueExpression size)
 148  
     {
 149  0
         _size = size;
 150  0
     }
 151  
 
 152  
     public void setTabindex(ValueExpression tabindex)
 153  
     {
 154  0
         _tabindex = tabindex;
 155  0
     }
 156  
 
 157  
     public void setDisabledClass(ValueExpression disabledClass)
 158  
     {
 159  0
         _disabledClass = disabledClass;
 160  0
     }
 161  
 
 162  
     public void setEnabledClass(ValueExpression enabledClass)
 163  
     {
 164  0
         _enabledClass = enabledClass;
 165  0
     }
 166  
 }