Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlMessageTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlMessageTagBase
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.faces.component.UIComponent;
 24  
 
 25  
 /**
 26  
  * @author Manfred Geiler (latest modification by $Author: cagatay $)
 27  
  * @version $Revision: 606793 $ $Date: 2007-12-25 10:20:46 -0500 (Tue, 25 Dec 2007) $
 28  
  * @deprecated use {@link HtmlMessageELTagBase} instead
 29  
  */
 30  0
 public abstract class HtmlMessageTagBase
 31  
         extends org.apache.myfaces.shared_impl.taglib.html.HtmlComponentTagBase
 32  
 {
 33  
     //private static final Log log = LogFactory.getLog(HtmlOutputFormatTag.class);
 34  
 
 35  
     // UIComponent attributes --> already implemented in UIComponentTagBase
 36  
 
 37  
     // user role attributes --> already implemented in UIComponentTagBase
 38  
 
 39  
     // HTML universal attributes --> already implemented in HtmlComponentTagBase
 40  
 
 41  
     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
 42  
 
 43  
     // UIMessage attributes
 44  
     private String _for;
 45  
     private String _showSummary;
 46  
     private String _showDetail;
 47  
 
 48  
     // HtmlOutputMessage attributes
 49  
     private String _infoClass;
 50  
     private String _infoStyle;
 51  
     private String _warnClass;
 52  
     private String _warnStyle;
 53  
     private String _errorClass;
 54  
     private String _errorStyle;
 55  
     private String _fatalClass;
 56  
     private String _fatalStyle;
 57  
     private String _tooltip;
 58  
 
 59  
     public void release() {
 60  0
         super.release();
 61  0
         _for=null;
 62  0
         _showSummary=null;
 63  0
         _showDetail=null;
 64  0
         _infoClass=null;
 65  0
         _infoStyle=null;
 66  0
         _warnClass=null;
 67  0
         _warnStyle=null;
 68  0
         _errorClass=null;
 69  0
         _errorStyle=null;
 70  0
         _fatalClass=null;
 71  0
         _fatalStyle=null;
 72  0
         _tooltip=null;
 73  0
     }
 74  
 
 75  
     protected void setProperties(UIComponent component)
 76  
     {
 77  0
         super.setProperties(component);
 78  
 
 79  0
         setStringProperty(component, JSFAttr.FOR_ATTR, _for);
 80  0
         setBooleanProperty(component, JSFAttr.SHOW_SUMMARY_ATTR, _showSummary);
 81  0
         setBooleanProperty(component, JSFAttr.SHOW_DETAIL_ATTR, _showDetail);
 82  
 
 83  0
         setStringProperty(component, JSFAttr.INFO_CLASS_ATTR, _infoClass);
 84  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.INFO_STYLE_ATTR, _infoStyle);
 85  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.WARN_CLASS_ATTR, _warnClass);
 86  0
         setStringProperty(component, JSFAttr.WARN_STYLE_ATTR, _warnStyle);
 87  0
         setStringProperty(component, JSFAttr.ERROR_CLASS_ATTR, _errorClass);
 88  0
         setStringProperty(component, JSFAttr.ERROR_STYLE_ATTR, _errorStyle);
 89  0
         setStringProperty(component, JSFAttr.FATAL_CLASS_ATTR, _fatalClass);
 90  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FATAL_STYLE_ATTR, _fatalStyle);
 91  0
         setBooleanProperty(component, JSFAttr.TOOLTIP_ATTR, _tooltip);
 92  0
     }
 93  
 
 94  
     public void setFor(String aFor)
 95  
     {
 96  0
         _for = aFor;
 97  0
     }
 98  
 
 99  
     public String getFor()
 100  
     {
 101  0
         return _for;
 102  
     }
 103  
 
 104  
     public void setShowSummary(String showSummary)
 105  
     {
 106  0
         _showSummary = showSummary;
 107  0
     }
 108  
 
 109  
     public void setShowDetail(String showDetail)
 110  
     {
 111  0
         _showDetail = showDetail;
 112  0
     }
 113  
 
 114  
     public void setErrorClass(String errorClass)
 115  
     {
 116  0
         _errorClass = errorClass;
 117  0
     }
 118  
 
 119  
     public void setErrorStyle(String errorStyle)
 120  
     {
 121  0
         _errorStyle = errorStyle;
 122  0
     }
 123  
 
 124  
     public void setFatalClass(String fatalClass)
 125  
     {
 126  0
         _fatalClass = fatalClass;
 127  0
     }
 128  
 
 129  
     public void setFatalStyle(String fatalStyle)
 130  
     {
 131  0
         _fatalStyle = fatalStyle;
 132  0
     }
 133  
 
 134  
     public void setInfoClass(String infoClass)
 135  
     {
 136  0
         _infoClass = infoClass;
 137  0
     }
 138  
 
 139  
     public void setInfoStyle(String infoStyle)
 140  
     {
 141  0
         _infoStyle = infoStyle;
 142  0
     }
 143  
 
 144  
     public void setWarnClass(String warnClass)
 145  
     {
 146  0
         _warnClass = warnClass;
 147  0
     }
 148  
 
 149  
     public void setWarnStyle(String warnStyle)
 150  
     {
 151  0
         _warnStyle = warnStyle;
 152  0
     }
 153  
 
 154  
     public void setTooltip(String tooltip)
 155  
     {
 156  0
         _tooltip = tooltip;
 157  0
     }
 158  
 }