KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > web > ui > repo > tag > SearchCustomPropertiesTag


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;
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 SearchCustomPropertiesTag extends HtmlComponentTag
27 {
28    /**
29     * @see javax.faces.webapp.UIComponentTag#getComponentType()
30     */

31    public String JavaDoc getComponentType()
32    {
33       return "org.alfresco.faces.AdvancedSearch";
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, "bean", this.bean);
53       setStringProperty(component, "var", this.var);
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.bean = null;
64       this.var = null;
65    }
66    
67    /**
68     * Set the bean reference
69     *
70     * @param bean the bean reference
71     */

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

82    public void setVar(String JavaDoc var)
83    {
84       this.var = var;
85    }
86    
87    
88    /** the bean reference */
89    private String JavaDoc bean;
90
91    /** the variable Map reference */
92    private String JavaDoc var;
93 }
94
Popular Tags