Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlInputELTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlInputELTagBase
0%
0/25
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.MethodExpression;
 24  
 import javax.el.ValueExpression;
 25  
 import javax.faces.component.UIComponent;
 26  
 
 27  
 
 28  
 /**
 29  
  * @author Manfred Geiler (latest modification by $Author: cagatay $)
 30  
  * @version $Revision: 606793 $ $Date: 2007-12-25 10:20:46 -0500 (Tue, 25 Dec 2007) $
 31  
  */
 32  0
 public abstract class HtmlInputELTagBase
 33  
     extends org.apache.myfaces.shared_impl.taglib.html.HtmlComponentELTagBase
 34  
 {
 35  
     // UIComponent attributes --> already implemented in UIComponentTagBase
 36  
 
 37  
     // UIOutput attributes
 38  
     // value and converterId --> already implemented in UIComponentTagBase
 39  
 
 40  
     // UIInput attributes
 41  
     private ValueExpression _immediate;
 42  
     private ValueExpression _required;
 43  
     private MethodExpression _validator;
 44  
     private MethodExpression _valueChangeListener;
 45  
     private ValueExpression _readonly;
 46  
 
 47  
     public void release() {
 48  0
         super.release();
 49  
 
 50  0
         _immediate=null;
 51  0
         _required=null;
 52  0
         _validator=null;
 53  0
         _valueChangeListener=null;
 54  0
         _readonly=null;
 55  0
     }
 56  
 
 57  
     protected void setProperties(UIComponent component)
 58  
     {
 59  0
         super.setProperties(component);
 60  
 
 61  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.IMMEDIATE_ATTR, _immediate);
 62  0
         setBooleanProperty(component, JSFAttr.REQUIRED_ATTR, _required);
 63  0
         addValidatorProperty(component, _validator);
 64  0
         addValueChangedListenerProperty(component, _valueChangeListener);
 65  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.html.HTML.READONLY_ATTR, _readonly);
 66  0
     }
 67  
 
 68  
     public void setImmediate(ValueExpression immediate)
 69  
     {
 70  0
         _immediate = immediate;
 71  0
     }
 72  
 
 73  
     public void setRequired(ValueExpression required)
 74  
     {
 75  0
         _required = required;
 76  0
     }
 77  
 
 78  
     public void setValidator(MethodExpression validator)
 79  
     {
 80  0
         _validator = validator;
 81  0
     }
 82  
 
 83  
     public void setValueChangeListener(MethodExpression valueChangeListener)
 84  
     {
 85  0
         _valueChangeListener = valueChangeListener;
 86  0
     }
 87  
     public void setReadonly(ValueExpression _readonly) {
 88  0
         this._readonly = _readonly;
 89  0
     }
 90  
 
 91  
 }