KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > j2ee > blueprints > catalog > validator > ScriptTag


1 /* Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at: http://developer.sun.com/berkeley_license.html
2 $Id: ScriptTag.java,v 1.2 2005/03/23 14:49:22 jenniferb Exp $ */

3  
4
5 package com.sun.j2ee.blueprints.catalog.validator;
6
7 import javax.faces.component.UIComponent;
8 import javax.faces.component.UIOutput;
9 import javax.faces.webapp.UIComponentTag;
10
11
12 /**
13  * <p>This class is the tag handler class for a <code>UIOutput</code>
14  * component associated with a <code>ColorRenderer</code> renderer. The tag that this
15  * class processes renders a script tag.</p>
16  */

17
18 public class ScriptTag extends UIComponentTag {
19
20     private String JavaDoc language = null;
21
22
23     public void setLanguage(String JavaDoc language) {
24         this.language = language;
25     }
26
27     /**
28      * Gets the type of the component associated wit hthe tag.
29      * @return the name of the component type
30      */

31     public String JavaDoc getComponentType() {
32         return ("javax.faces.Output");
33     }
34
35     /**
36      * Gets the type of the renderer that will render this tag.
37      * @return the type of the renderer that renders this tag
38      */

39     public String JavaDoc getRendererType() {
40         return ("Color");
41     }
42
43
44     /**
45      * Releases resources allocated during the execution of this tag handler.
46      */

47     public void release() {
48         super.release();
49         this.language = null;
50     }
51
52     /**
53      * Sets the properties of the specified component.
54      * @param component the component associated with this tag
55      */

56     protected void setProperties(UIComponent component) {
57         super.setProperties(component);
58     }
59
60 }
61
62
Popular Tags