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.UIComponent;
26: import javax.faces.component.UIPanel;
27: import javax.faces.component.html.HtmlPanelGroup;
28: import javax.faces.webapp.UIComponentELTag;
29:
30: /**
31: * Auto-generated tag class.
32: */
33: public class HtmlPanelGroupTag extends UIComponentELTag {
34:
35: /**
36: * Construct an instance of the HtmlPanelGroupTag.
37: */
38: public HtmlPanelGroupTag() {
39: }
40:
41: public String getComponentType() {
42: return "javax.faces.HtmlPanelGroup";
43: }
44:
45: public String getRendererType() {
46: return "javax.faces.Group";
47: }
48:
49: private ValueExpression _style;
50:
51: public void setStyle(ValueExpression style) {
52: _style = style;
53: }
54:
55: private ValueExpression _styleClass;
56:
57: public void setStyleClass(ValueExpression styleClass) {
58: _styleClass = styleClass;
59: }
60:
61: private ValueExpression _layout;
62:
63: public void setLayout(ValueExpression layout) {
64: _layout = layout;
65: }
66:
67: @Override
68: protected void setProperties(UIComponent component) {
69: if (!(component instanceof HtmlPanelGroup)) {
70: throw new IllegalArgumentException("Component "
71: + component.getClass().getName()
72: + " is no HtmlPanelGroup");
73: }
74: HtmlPanelGroup comp = (HtmlPanelGroup) component;
75:
76: super .setProperties(component);
77:
78: if (_style != null) {
79: comp.setValueExpression("style", _style);
80: }
81: if (_layout != null) {
82: comp.setValueExpression("layout", _layout);
83: }
84: if (_styleClass != null) {
85: comp.setValueExpression("styleClass", _styleClass);
86: }
87: }
88:
89: @Override
90: public void release() {
91: super.release();
92: _style = null;
93: _layout = null;
94: _styleClass = null;
95: }
96: }
|