01: // WARNING: This file was automatically generated. Do not edit it directly,
02: // or you will lose your changes.
03:
04: /*
05: * Licensed to the Apache Software Foundation (ASF) under one
06: * or more contributor license agreements. See the NOTICE file
07: * distributed with this work for additional information
08: * regarding copyright ownership. The ASF licenses this file
09: * to you under the Apache License, Version 2.0 (the
10: * "License"); you may not use this file except in compliance
11: * with the License. You may obtain a copy of the License at
12: *
13: * http://www.apache.org/licenses/LICENSE-2.0
14: *
15: * Unless required by applicable law or agreed to in writing,
16: * software distributed under the License is distributed on an
17: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18: * KIND, either express or implied. See the License for the
19: * specific language governing permissions and limitations
20: * under the License.
21: */
22: package org.apache.myfaces.taglib.html;
23:
24: import javax.el.ValueExpression;
25: import javax.faces.component.UIColumn;
26: import javax.faces.component.UIComponent;
27: import javax.faces.component.html.HtmlColumn;
28: import javax.faces.webapp.UIComponentELTag;
29:
30: /**
31: * Auto-generated tag class.
32: */
33: public class HtmlColumnTag extends UIComponentELTag {
34:
35: /**
36: * Construct an instance of the HtmlColumnTag.
37: */
38: public HtmlColumnTag() {
39: }
40:
41: public String getComponentType() {
42: return "javax.faces.HtmlColumn";
43: }
44:
45: public String getRendererType() {
46: return null;
47: }
48:
49: private ValueExpression _headerClass;
50:
51: public void setHeaderClass(ValueExpression headerClass) {
52: _headerClass = headerClass;
53: }
54:
55: private ValueExpression _footerClass;
56:
57: public void setFooterClass(ValueExpression footerClass) {
58: _footerClass = footerClass;
59: }
60:
61: @Override
62: protected void setProperties(UIComponent component) {
63: if (!(component instanceof HtmlColumn)) {
64: throw new IllegalArgumentException("Component "
65: + component.getClass().getName()
66: + " is no HtmlColumn");
67: }
68: HtmlColumn comp = (HtmlColumn) component;
69:
70: super .setProperties(component);
71:
72: if (_footerClass != null) {
73: comp.setValueExpression("footerClass", _footerClass);
74: }
75: if (_headerClass != null) {
76: comp.setValueExpression("headerClass", _headerClass);
77: }
78: }
79:
80: @Override
81: public void release() {
82: super.release();
83: _footerClass = null;
84: _headerClass = null;
85: }
86: }
|