KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > web > ui > common > tag > data > RichListTag


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.data;
18
19 import javax.faces.component.UIComponent;
20
21 import org.alfresco.web.ui.common.tag.BaseComponentTag;
22
23
24 /**
25  * @author kevinr
26  */

27 public class RichListTag extends BaseComponentTag
28 {
29    // ------------------------------------------------------------------------------
30
// Component methods
31

32    /**
33     * @see javax.faces.webapp.UIComponentTag#getComponentType()
34     */

35    public String JavaDoc getComponentType()
36    {
37       return "org.alfresco.faces.RichList";
38    }
39
40    /**
41     * @see javax.faces.webapp.UIComponentTag#getRendererType()
42     */

43    public String JavaDoc getRendererType()
44    {
45       return "org.alfresco.faces.RichListRenderer";
46    }
47
48    /**
49     * @see javax.servlet.jsp.tagext.Tag#release()
50     */

51    public void release()
52    {
53       super.release();
54       this.value = null;
55       this.var = null;
56       this.initialSortColumn = null;
57       this.initialSortDescending = null;
58       this.listConfig = null;
59       this.viewMode = null;
60       this.style = null;
61       this.styleClass = null;
62       this.rowStyleClass = null;
63       this.altRowStyleClass = null;
64       this.headerStyleClass = null;
65       this.width = null;
66       this.pageSize = null;
67    }
68    
69    /**
70     * @see javax.faces.webapp.UIComponentTag#setProperties(javax.faces.component.UIComponent)
71     */

72    protected void setProperties(UIComponent component)
73    {
74       super.setProperties(component);
75       setStringBindingProperty(component, "value", this.value);
76       setStringStaticProperty(component, "var", this.var);
77       setStringProperty(component, "initialSortColumn", this.initialSortColumn);
78       setBooleanProperty(component, "initialSortDescending", this.initialSortDescending);
79       setStringProperty(component, "listConfig", this.listConfig);
80       setStringProperty(component, "viewMode", this.viewMode);
81       setStringProperty(component, "style", this.style);
82       setStringProperty(component, "styleClass", this.styleClass);
83       setStringProperty(component, "rowStyleClass", this.rowStyleClass);
84       setStringProperty(component, "altRowStyleClass", this.altRowStyleClass);
85       setStringProperty(component, "headerStyleClass", this.headerStyleClass);
86       setStringProperty(component, "width", this.width);
87       setIntProperty(component, "pageSize", this.pageSize);
88    }
89    
90    
91    // ------------------------------------------------------------------------------
92
// Bean implementation
93

94    /**
95     * Set the viewMode
96     *
97     * @param viewMode the viewMode
98     */

99    public void setViewMode(String JavaDoc viewMode)
100    {
101       this.viewMode = viewMode;
102    }
103    
104    /**
105     * Set the pageSize
106     *
107     * @param pageSize the pageSize
108     */

109    public void setPageSize(String JavaDoc pageSize)
110    {
111       this.pageSize = pageSize;
112    }
113    
114    /**
115     * Set the initialSortColumn
116     *
117     * @param initialSortColumn the initialSortColumn
118     */

119    public void setInitialSortColumn(String JavaDoc initialSortColumn)
120    {
121       this.initialSortColumn = initialSortColumn;
122    }
123    
124    /**
125     * Set the initialSortDescending
126     *
127     * @param initialSortDescending the initialSortDescending
128     */

129    public void setInitialSortDescending(String JavaDoc initialSortDescending)
130    {
131       this.initialSortDescending = initialSortDescending;
132    }
133    
134    /**
135     * Set the listConfig
136     *
137     * @param listConfig the listConfig
138     */

139    public void setListConfig(String JavaDoc listConfig)
140    {
141       this.listConfig = listConfig;
142    }
143
144    /**
145     * Set the value
146     *
147     * @param value the value
148     */

149    public void setValue(String JavaDoc value)
150    {
151       this.value = value;
152    }
153
154    /**
155     * Set the var
156     *
157     * @param var the var
158     */

159    public void setVar(String JavaDoc var)
160    {
161       this.var = var;
162    }
163    
164    /**
165     * Set the style
166     *
167     * @param style the style
168     */

169    public void setStyle(String JavaDoc style)
170    {
171       this.style = style;
172    }
173
174    /**
175     * Set the styleClass
176     *
177     * @param styleClass the styleClass
178     */

179    public void setStyleClass(String JavaDoc styleClass)
180    {
181       this.styleClass = styleClass;
182    }
183    
184    /**
185     * Set the the row CSS Class
186     *
187     * @param rowStyleClass the the row CSS Class
188     */

189    public void setRowStyleClass(String JavaDoc rowStyleClass)
190    {
191       this.rowStyleClass = rowStyleClass;
192    }
193
194    /**
195     * Set the alternate row CSS Class
196     *
197     * @param altRowStyleClass the alternate row CSS Class
198     */

199    public void setAltRowStyleClass(String JavaDoc altRowStyleClass)
200    {
201       this.altRowStyleClass = altRowStyleClass;
202    }
203    
204    /**
205     * Set the width
206     *
207     * @param width the width
208     */

209    public void setWidth(String JavaDoc width)
210    {
211       this.width = width;
212    }
213    
214    /**
215     * Set the header row CSS Class
216     *
217     * @param headerStyleClass the header row CSS Class
218     */

219    public void setHeaderStyleClass(String JavaDoc headerStyleClass)
220    {
221       this.headerStyleClass = headerStyleClass;
222    }
223
224
225    // ------------------------------------------------------------------------------
226
// Private data
227

228    /** the header row CSS Class */
229    private String JavaDoc headerStyleClass;
230    
231    /** the row CSS Class */
232    private String JavaDoc rowStyleClass;
233
234    /** the alternate row CSS Class */
235    private String JavaDoc altRowStyleClass;
236    
237    /** the style */
238    private String JavaDoc style;
239
240    /** the styleClass */
241    private String JavaDoc styleClass;
242    
243    /** the width */
244    private String JavaDoc width;
245
246    /** the value */
247    private String JavaDoc value;
248
249    /** the var */
250    private String JavaDoc var;
251
252    /** the viewMode */
253    private String JavaDoc viewMode;
254
255    /** the pageSize */
256    private String JavaDoc pageSize;
257
258    /** the initialSortColumn */
259    private String JavaDoc initialSortColumn;
260
261    /** the initialSortDescending */
262    private String JavaDoc initialSortDescending;
263
264    /** the listConfig */
265    private String JavaDoc listConfig;
266 }
267
Popular Tags