KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > taglib > html > ext > HtmlInputTextareaTag


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.ext;
17
18 import org.apache.myfaces.component.UserRoleAware;
19 import org.apache.myfaces.component.html.ext.HtmlInputTextarea;
20 import org.apache.myfaces.taglib.html.HtmlInputTextareaTagBase;
21
22 import javax.faces.component.UIComponent;
23
24 /**
25  * @author Manfred Geiler (latest modification by $Author: matzew $)
26  * @version $Revision: 1.3 $ $Date: 2005/02/18 17:19:29 $
27  * $Log: HtmlInputTextareaTag.java,v $
28  * Revision 1.3 2005/02/18 17:19:29 matzew
29  * added release() to tag clazzes.
30  *
31  * Revision 1.2 2004/10/13 11:50:59 matze
32  * renamed packages to org.apache
33  *
34  * Revision 1.1 2004/08/12 14:24:04 manolito
35  * Extended HtmlInputTextarea component
36  *
37  */

38 public class HtmlInputTextareaTag
39         extends HtmlInputTextareaTagBase
40 {
41     public String JavaDoc getComponentType()
42     {
43         return HtmlInputTextarea.COMPONENT_TYPE;
44     }
45
46     public String JavaDoc getRendererType()
47     {
48         return "org.apache.myfaces.Textarea";
49     }
50
51     private String JavaDoc _enabledOnUserRole;
52     private String JavaDoc _visibleOnUserRole;
53
54     public void release() {
55         super.release();
56
57         _enabledOnUserRole=null;
58         _visibleOnUserRole=null;
59     }
60     
61     protected void setProperties(UIComponent component)
62     {
63         super.setProperties(component);
64         setStringProperty(component, UserRoleAware.ENABLED_ON_USER_ROLE_ATTR, _enabledOnUserRole);
65         setStringProperty(component, UserRoleAware.VISIBLE_ON_USER_ROLE_ATTR, _visibleOnUserRole);
66     }
67
68     public void setEnabledOnUserRole(String JavaDoc enabledOnUserRole)
69     {
70         _enabledOnUserRole = enabledOnUserRole;
71     }
72
73     public void setVisibleOnUserRole(String JavaDoc visibleOnUserRole)
74     {
75         _visibleOnUserRole = visibleOnUserRole;
76     }
77
78 }
79
Popular Tags