KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > custom > crosstable > HtmlColumnsTag


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.custom.crosstable;
17
18 import javax.faces.component.UIComponent;
19
20 import org.apache.myfaces.component.UIColumns;
21 import org.apache.myfaces.renderkit.JSFAttr;
22 import org.apache.myfaces.taglib.html.HtmlComponentBodyTagBase;
23
24 /**
25  * @author Mathias Broekelmann (latest modification by $Author: matzew $)
26  * @version $Revision: 1.1 $ $Date: 2005/03/29 11:40:50 $
27  * $Log: HtmlColumnsTag.java,v $
28  * Revision 1.1 2005/03/29 11:40:50 matzew
29  * added new crosstable component (x:columns). Contributed by Mathias Broekelmann
30  *
31  */

32 public class HtmlColumnsTag extends HtmlComponentBodyTagBase
33 {
34   private String JavaDoc mVar;
35
36   /**
37    * @see javax.faces.webapp.UIComponentTag#getComponentType()
38    */

39   public String JavaDoc getComponentType()
40   {
41     return UIColumns.COMPONENT_TYPE;
42   }
43
44   /**
45    * @see javax.faces.webapp.UIComponentTag#getRendererType()
46    */

47   public String JavaDoc getRendererType()
48   {
49     return null;
50   }
51
52   public void setVar(String JavaDoc var)
53   {
54     mVar = var;
55   }
56
57   protected void setProperties(UIComponent component)
58   {
59     super.setProperties(component);
60
61     setStringProperty(component, JSFAttr.VAR_ATTR, mVar);
62   }
63 }
64
Popular Tags