KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
24  * @author Manfred Geiler (latest modification by $Author: matzew $)
25  * @version $Revision: 1.4 $ $Date: 2005/02/18 17:19:29 $
26  * $Log: HtmlOutputTextTagBase.java,v $
27  * Revision 1.4 2005/02/18 17:19:29 matzew
28  * added release() to tag clazzes.
29  *
30  * Revision 1.3 2004/10/13 11:51:01 matze
31  * renamed packages to org.apache
32  *
33  * Revision 1.2 2004/07/01 22:01:11 mwessendorf
34  * ASF switch
35  *
36  * Revision 1.1 2004/04/01 12:57:44 manolito
37  * additional extended component classes for user role support
38  *
39  */

40 public abstract class HtmlOutputTextTagBase
41     extends HtmlComponentTagBase
42 {
43     // UIComponent attributes --> already implemented in UIComponentTagBase
44

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

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

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

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

54     // HtmlOutputText attributes
55
private String JavaDoc _escape;
56     
57     public void release() {
58         super.release();
59         _escape=null;
60     }
61
62
63     protected void setProperties(UIComponent component)
64     {
65         super.setProperties(component);
66
67         setBooleanProperty(component, JSFAttr.ESCAPE_ATTR, _escape);
68
69         //TODO: idea: set transient and override setValue method in UIOutput so that
70
//transient is set to false when a new value is set
71
}
72
73     public void setEscape(String JavaDoc escape)
74     {
75         _escape = escape;
76     }
77 }
78
Popular Tags