KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > taglib > html > HtmlOutputFormatTagBase


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.taglib.html;
17
18 import org.apache.myfaces.renderkit.JSFAttr;
19
20 import javax.faces.component.UIComponent;
21
22 /**
23  * @author Manfred Geiler (latest modification by $Author: matzew $)
24  * @version $Revision: 1.4 $ $Date: 2005/02/18 18:24:35 $
25  * $Log: HtmlOutputFormatTagBase.java,v $
26  * Revision 1.4 2005/02/18 18:24:35 matzew
27  * added release() to tag clazzes.
28  *
29  * Revision 1.3 2004/10/13 11:51:01 matze
30  * renamed packages to org.apache
31  *
32  * Revision 1.2 2004/07/01 22:01:11 mwessendorf
33  * ASF switch
34  *
35  * Revision 1.1 2004/04/01 12:57:44 manolito
36  * additional extended component classes for user role support
37  *
38  */

39 public abstract class HtmlOutputFormatTagBase
40         extends HtmlComponentTagBase
41 {
42     //private static final Log log = LogFactory.getLog(HtmlOutputFormatTag.class);
43

44     // UIComponent attributes --> already implemented in UIComponentTagBase
45

46     // user role attributes --> already implemented in UIComponentTagBase
47

48     // HTML universal attributes --> already implemented in HtmlComponentTagBase
49

50     // HTML event handler attributes --> already implemented in HtmlComponentTagBase
51

52     // UIOutput attributes
53
// value and converterId --> already implemented in UIComponentTagBase
54

55     // HtmlOutputMessage attributes
56
private String JavaDoc _escape;
57     
58     public void release() {
59         super.release();
60         _escape=null;
61     }
62
63     protected void setProperties(UIComponent component)
64     {
65         super.setProperties(component);
66
67         setBooleanProperty(component, JSFAttr.ESCAPE_ATTR, _escape);
68     }
69
70     public void setEscape(String JavaDoc escape)
71     {
72         _escape = escape;
73     }
74 }
75
Popular Tags