KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > custom > jsvalueset > HtmlJsValueSetTag


1 /*
2  * Copyright (c) 2004 Your Corporation. All Rights Reserved.
3  */

4 package org.apache.myfaces.custom.jsvalueset;
5
6 import org.apache.myfaces.taglib.UIComponentTagBase;
7
8 import javax.faces.component.UIComponent;
9
10 /**
11  * @author Martin Marinschek (latest modification by $Author: matzew $)
12  * @version $Revision: 1.3 $ $Date: 2005/02/18 17:19:31 $
13  * $Log: HtmlJsValueSetTag.java,v $
14  * Revision 1.3 2005/02/18 17:19:31 matzew
15  * added release() to tag clazzes.
16  *
17  * Revision 1.2 2005/01/04 16:09:57 mmarinschek
18  * ChangeListener now uses renderer
19  *
20  * Revision 1.1 2004/12/19 00:50:55 mmarinschek
21  * JsValueSetTag
22  *
23  * Revision 1.1 2004/12/17 13:19:10 mmarinschek
24  * new component jsValueChangeListener
25  *
26  *
27  */

28 public class HtmlJsValueSetTag
29         extends UIComponentTagBase
30 {
31     //private static final Log log = LogFactory.getLog(HtmlInputFileUploadTag.class);
32

33     public String JavaDoc getComponentType()
34     {
35         return HtmlJsValueSet.COMPONENT_TYPE;
36     }
37
38     public String JavaDoc getRendererType()
39     {
40         return "org.apache.myfaces.JsValueSet";
41     }
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     // HtmlJsValueSet attributes
52
private String JavaDoc _name;
53     
54     public void release() {
55         super.release();
56         _name=null;
57     }
58
59     protected void setProperties(UIComponent component)
60     {
61         super.setProperties(component);
62
63         setStringProperty(component, "name", _name);
64     }
65
66     public void setName(String JavaDoc name)
67     {
68         _name = name;
69     }
70 }
71
72
73
Popular Tags