Coverage Report - org.apache.myfaces.shared_impl.taglib.html.HtmlMessagesTagBase
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlMessagesTagBase
0%
0/57
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 HtmlMessagesELTagBase} instead
 29  
  */
 30  0
 public abstract class HtmlMessagesTagBase
 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  
     // UIMessages attributes
 44  
     private String _showSummary;
 45  
     private String _showDetail;
 46  
     private String _globalOnly;
 47  
 
 48  
     // HtmlMessages 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 _layout;
 58  
     private String _tooltip;
 59  
 
 60  
     public void release() {
 61  0
         super.release();
 62  0
         _showSummary=null;
 63  0
         _showDetail=null;
 64  0
         _globalOnly=null;
 65  0
         _infoClass=null;
 66  0
         _infoStyle=null;
 67  0
         _warnClass=null;
 68  0
         _warnStyle=null;
 69  0
         _errorClass=null;
 70  0
         _errorStyle=null;
 71  0
         _fatalClass=null;
 72  0
         _fatalStyle=null;
 73  0
         _layout=null;
 74  0
         _tooltip=null;
 75  0
     }
 76  
     
 77  
     protected void setProperties(UIComponent component)
 78  
     {
 79  0
         super.setProperties(component);
 80  
 
 81  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.SHOW_SUMMARY_ATTR, _showSummary);
 82  0
         setBooleanProperty(component, JSFAttr.SHOW_DETAIL_ATTR, _showDetail);
 83  0
         setBooleanProperty(component, JSFAttr.GLOBAL_ONLY_ATTR, _globalOnly);
 84  
 
 85  0
         setStringProperty(component, JSFAttr.INFO_CLASS_ATTR, _infoClass);
 86  0
         setStringProperty(component, JSFAttr.INFO_STYLE_ATTR, _infoStyle);
 87  0
         setStringProperty(component, JSFAttr.WARN_CLASS_ATTR, _warnClass);
 88  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.WARN_STYLE_ATTR, _warnStyle);
 89  0
         setStringProperty(component, JSFAttr.ERROR_CLASS_ATTR, _errorClass);
 90  0
         setStringProperty(component, JSFAttr.ERROR_STYLE_ATTR, _errorStyle);
 91  0
         setStringProperty(component, JSFAttr.FATAL_CLASS_ATTR, _fatalClass);
 92  0
         setStringProperty(component, JSFAttr.FATAL_STYLE_ATTR, _fatalStyle);
 93  0
         setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.LAYOUT_ATTR, _layout);
 94  0
         setBooleanProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.TOOLTIP_ATTR, _tooltip);
 95  0
     }
 96  
 
 97  
     public void setShowSummary(String showSummary)
 98  
     {
 99  0
         _showSummary = showSummary;
 100  0
     }
 101  
 
 102  
     public void setShowDetail(String showDetail)
 103  
     {
 104  0
         _showDetail = showDetail;
 105  0
     }
 106  
 
 107  
     public void setGlobalOnly(String globalOnly)
 108  
     {
 109  0
         _globalOnly = globalOnly;
 110  0
     }
 111  
 
 112  
     public void setErrorClass(String errorClass)
 113  
     {
 114  0
         _errorClass = errorClass;
 115  0
     }
 116  
 
 117  
     public void setErrorStyle(String errorStyle)
 118  
     {
 119  0
         _errorStyle = errorStyle;
 120  0
     }
 121  
 
 122  
     public void setFatalClass(String fatalClass)
 123  
     {
 124  0
         _fatalClass = fatalClass;
 125  0
     }
 126  
 
 127  
     public void setFatalStyle(String fatalStyle)
 128  
     {
 129  0
         _fatalStyle = fatalStyle;
 130  0
     }
 131  
 
 132  
     public void setInfoClass(String infoClass)
 133  
     {
 134  0
         _infoClass = infoClass;
 135  0
     }
 136  
 
 137  
     public void setInfoStyle(String infoStyle)
 138  
     {
 139  0
         _infoStyle = infoStyle;
 140  0
     }
 141  
 
 142  
     public void setWarnClass(String warnClass)
 143  
     {
 144  0
         _warnClass = warnClass;
 145  0
     }
 146  
 
 147  
     public void setWarnStyle(String warnStyle)
 148  
     {
 149  0
         _warnStyle = warnStyle;
 150  0
     }
 151  
 
 152  
     public void setLayout(String layout)
 153  
     {
 154  0
         _layout = layout;
 155  0
     }
 156  
 
 157  
     public void setTooltip(String tooltip)
 158  
     {
 159  0
         _tooltip = tooltip;
 160  0
     }
 161  
 }