View Javadoc

1   // WARNING: This file was automatically generated. Do not edit it directly,
2   //          or you will lose your changes.
3   /*
4    *  Licensed to the Apache Software Foundation (ASF) under one
5    *  or more contributor license agreements.  See the NOTICE file
6    *  distributed with this work for additional information
7    *  regarding copyright ownership.  The ASF licenses this file
8    *  to you under the Apache License, Version 2.0 (the
9    *  "License"); you may not use this file except in compliance
10   *  with the License.  You may obtain a copy of the License at
11   * 
12   *  http://www.apache.org/licenses/LICENSE-2.0
13   * 
14   *  Unless required by applicable law or agreed to in writing,
15   *  software distributed under the License is distributed on an
16   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   *  KIND, either express or implied.  See the License for the
18   *  specific language governing permissions and limitations
19   *  under the License.
20   */
21  package org.apache.myfaces.taglib.html;
22  
23  import javax.faces.component.UIComponent;
24  import javax.el.ValueExpression;
25  import javax.el.MethodExpression;
26  import javax.faces.component.UIComponent;
27  
28  
29  // Generated from class javax.faces.component.html._HtmlColumn.
30  //
31  // WARNING: This file was automatically generated. Do not edit it directly,
32  //          or you will lose your changes.
33  public class HtmlColumnTag
34      extends javax.faces.webapp.UIComponentELTag
35  {
36      public HtmlColumnTag()
37      {    
38      }
39      
40      @Override
41      public String getComponentType()
42      {
43          return "javax.faces.Column";
44      }
45  
46      public String getRendererType()
47      {
48          return null;
49      }
50  
51      private ValueExpression _headerClass;
52      
53      public void setHeaderClass(ValueExpression headerClass)
54      {
55          _headerClass = headerClass;
56      }
57      private ValueExpression _footerClass;
58      
59      public void setFooterClass(ValueExpression footerClass)
60      {
61          _footerClass = footerClass;
62      }
63      private ValueExpression _rowHeader;
64      
65      public void setRowHeader(ValueExpression rowHeader)
66      {
67          _rowHeader = rowHeader;
68      }
69      private ValueExpression _rendered;
70      
71      public void setRendered(ValueExpression rendered)
72      {
73          _rendered = rendered;
74      }
75  
76      @Override
77      protected void setProperties(UIComponent component)
78      {
79          if (!(component instanceof javax.faces.component.UIColumn ))
80          {
81              throw new IllegalArgumentException("Component "+
82                  component.getClass().getName() +" is no javax.faces.component.html.HtmlColumn");
83          }
84          
85          javax.faces.component.UIColumn comp = (javax.faces.component.UIColumn) component;
86          
87          super.setProperties(component);
88          
89  
90          if (_headerClass != null)
91          {
92              comp.setValueExpression("headerClass", _headerClass);
93          } 
94          if (_footerClass != null)
95          {
96              comp.setValueExpression("footerClass", _footerClass);
97          } 
98          if (_rowHeader != null)
99          {
100             comp.setValueExpression("rowHeader", _rowHeader);
101         } 
102         if (_rendered != null)
103         {
104             comp.setValueExpression("rendered", _rendered);
105         } 
106     }
107 
108     @Override
109     public void release()
110     {
111         super.release();
112         _headerClass = null;
113         _footerClass = null;
114         _rowHeader = null;
115         _rendered = null;
116     }
117 }