KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > web > ui > repo > tag > shelf > ShelfGroupTag


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.repo.tag.shelf;
18
19 import javax.faces.component.UIComponent;
20
21 import org.alfresco.web.ui.common.tag.HtmlComponentTag;
22
23 /**
24  * @author Kevin Roast
25  */

26 public class ShelfGroupTag extends HtmlComponentTag
27 {
28    /**
29     * @see javax.faces.webapp.UIComponentTag#getComponentType()
30     */

31    public String JavaDoc getComponentType()
32    {
33       return "org.alfresco.faces.ShelfGroup";
34    }
35
36    /**
37     * @see javax.faces.webapp.UIComponentTag#getRendererType()
38     */

39    public String JavaDoc getRendererType()
40    {
41       // self rendering component
42
return null;
43    }
44    
45    /**
46     * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
47     */

48    protected void setProperties(UIComponent component)
49    {
50       super.setProperties(component);
51       
52       setStringProperty(component, "label", this.label);
53       setBooleanProperty(component, "expanded", this.expanded);
54    }
55    
56    /**
57     * @see org.alfresco.web.ui.common.tag.HtmlComponentTag#release()
58     */

59    public void release()
60    {
61       super.release();
62       
63       this.label = null;
64       this.expanded = null;
65    }
66    
67    /**
68     * Set the label
69     *
70     * @param label the label
71     */

72    public void setLabel(String JavaDoc label)
73    {
74       this.label = label;
75    }
76
77    /**
78     * Set the expanded flag
79     *
80     * @param expanded the expanded flag
81     */

82    public void setExpanded(String JavaDoc expanded)
83    {
84       this.expanded = expanded;
85    }
86
87
88    /** the label */
89    private String JavaDoc label;
90
91    /** the expanded */
92    private String JavaDoc expanded;
93 }
94
Popular Tags