KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > web > ui > common > tag > debug > BaseDebugTag


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.web.ui.common.tag.debug;
18
19 import javax.faces.component.UIComponent;
20
21 import org.alfresco.web.ui.common.tag.HtmlComponentTag;
22
23 /**
24  * Base class for all debug tags.
25  *
26  * @author gavinc
27  */

28 public abstract class BaseDebugTag extends HtmlComponentTag
29 {
30    private String JavaDoc title;
31    
32    /**
33     * @see javax.faces.webapp.UIComponentTag#getRendererType()
34     */

35    public String JavaDoc getRendererType()
36    {
37       return null;
38    }
39    
40    /**
41     * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
42     */

43    protected void setProperties(UIComponent component)
44    {
45       super.setProperties(component);
46       
47       setStringProperty(component, "title", this.title);
48    }
49    
50    /**
51     * @see javax.servlet.jsp.tagext.Tag#release()
52     */

53    public void release()
54    {
55       super.release();
56       this.title = null;
57    }
58    
59    /**
60     * Sets the title
61     *
62     * @param title The title
63     */

64    public void setTitle(String JavaDoc title)
65    {
66       this.title = title;
67    }
68 }
69
Popular Tags