Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlSelectMenuTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlSelectMenuTagBase
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.html.HTML;
 22  
 import org.apache.myfaces.shared_impl.renderkit.JSFAttr;
 23  
 
 24  
 import javax.faces.component.UIComponent;
 25  
 
 26  
 
 27  
 /**
 28  
  * Common base tag class for HtmlSelectOneMenu and HtmlSelectManyMenu 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  
  * @deprecated use {@link HtmlSelectMenuELTagBase} instead
 34  
  */
 35  0
 public abstract class HtmlSelectMenuTagBase
 36  
         extends org.apache.myfaces.shared_impl.taglib.html.HtmlInputTagBase
 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 menu
 47  
     private String _datafld;
 48  
     private String _datasrc;
 49  
     private String _dataformatas;
 50  
     private String _disabled;
 51  
     private String _name;
 52  
     private String _onblur;
 53  
     private String _onchange;
 54  
     private String _onfocus;
 55  
     private String _onselect;
 56  
     private String _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  
     //HtmlSelectManyMenu Attributes
 65  
     private String _border;
 66  
 
 67  
     // HTMLSelectManyAttributes attributes
 68  
     private String _disabledClass;
 69  
     private String _enabledClass;
 70  
 
 71  
 
 72  
     public void release() {
 73  0
         super.release();
 74  0
         _datafld=null;
 75  0
         _datasrc=null;
 76  0
         _dataformatas=null;
 77  0
         _disabled=null;
 78  0
         _name=null;
 79  0
         _onblur=null;
 80  0
         _onchange=null;
 81  0
         _onfocus=null;
 82  0
         _onselect=null;
 83  0
         _tabindex=null;
 84  0
         _border=null;
 85  0
         _disabledClass=null;
 86  0
         _enabledClass=null;
 87  0
     }
 88  
 
 89  
     protected void setProperties(UIComponent component)
 90  
     {
 91  0
         super.setProperties(component);
 92  
 
 93  0
         setBooleanProperty(component, HTML.DISABLED_ATTR, _disabled);
 94  0
         setStringProperty(component, HTML.NAME_ATTR, _name);
 95  0
         setStringProperty(component, HTML.ONBLUR_ATTR, _onblur);
 96  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.ONCHANGE_ATTR, _onchange);
 97  0
         setStringProperty(component, HTML.ONFOCUS_ATTR, _onfocus);
 98  0
         setStringProperty(component, HTML.ONSELECT_ATTR, _onselect);
 99  0
         setStringProperty(component, HTML.TABINDEX_ATTR, _tabindex);
 100  0
         setStringProperty(component, JSFAttr.DISABLED_CLASS_ATTR, _disabledClass);
 101  0
         setStringProperty(component, JSFAttr.ENABLED_CLASS_ATTR, _enabledClass);
 102  
 
 103  0
         setIntegerProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.BORDER_ATTR, _border);
 104  0
    }
 105  
 
 106  
     public void setBorder(String border)
 107  
     {
 108  0
         _border = border;
 109  0
     }
 110  
 
 111  
     public void setDatafld(String datafld)
 112  
     {
 113  0
         _datafld = datafld;
 114  0
     }
 115  
 
 116  
     public void setDatasrc(String datasrc)
 117  
     {
 118  0
         _datasrc = datasrc;
 119  0
     }
 120  
 
 121  
     public void setDataformatas(String dataformatas)
 122  
     {
 123  0
         _dataformatas = dataformatas;
 124  0
     }
 125  
 
 126  
     public void setDisabled(String disabled)
 127  
     {
 128  0
         _disabled = disabled;
 129  0
     }
 130  
 
 131  
     public void setName(String name)
 132  
     {
 133  0
         _name = name;
 134  0
     }
 135  
 
 136  
     public void setOnblur(String onblur)
 137  
     {
 138  0
         _onblur = onblur;
 139  0
     }
 140  
 
 141  
     public void setOnchange(String onchange)
 142  
     {
 143  0
         _onchange = onchange;
 144  0
     }
 145  
 
 146  
     public void setOnfocus(String onfocus)
 147  
     {
 148  0
         _onfocus = onfocus;
 149  0
     }
 150  
 
 151  
     public void setOnselect(String onselect)
 152  
     {
 153  0
         _onselect = onselect;
 154  0
     }
 155  
 
 156  
     public void setTabindex(String tabindex)
 157  
     {
 158  0
         _tabindex = tabindex;
 159  0
     }
 160  
 
 161  
     public void setDisabledClass(String disabledClass)
 162  
     {
 163  0
         _disabledClass = disabledClass;
 164  0
     }
 165  
 
 166  
     public void setEnabledClass(String enabledClass)
 167  
     {
 168  0
         _enabledClass = enabledClass;
 169  0
     }
 170  
 }