001: // WARNING: This file was automatically generated. Do not edit it directly,
002: // or you will lose your changes.
003:
004: /*
005: * Licensed to the Apache Software Foundation (ASF) under one
006: * or more contributor license agreements. See the NOTICE file
007: * distributed with this work for additional information
008: * regarding copyright ownership. The ASF licenses this file
009: * to you under the Apache License, Version 2.0 (the
010: * "License"); you may not use this file except in compliance
011: * with the License. You may obtain a copy of the License at
012: *
013: * http://www.apache.org/licenses/LICENSE-2.0
014: *
015: * Unless required by applicable law or agreed to in writing,
016: * software distributed under the License is distributed on an
017: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
018: * KIND, either express or implied. See the License for the
019: * specific language governing permissions and limitations
020: * under the License.
021: */
022: package org.apache.myfaces.taglib.html;
023:
024: import javax.el.ValueExpression;
025: import javax.faces.component.UIComponent;
026: import javax.faces.component.UIMessages;
027: import javax.faces.component.html.HtmlMessages;
028: import javax.faces.webapp.UIComponentELTag;
029:
030: /**
031: * Auto-generated tag class.
032: */
033: public class HtmlMessagesTag extends UIComponentELTag {
034:
035: /**
036: * Construct an instance of the HtmlMessagesTag.
037: */
038: public HtmlMessagesTag() {
039: }
040:
041: public String getComponentType() {
042: return "javax.faces.HtmlMessages";
043: }
044:
045: public String getRendererType() {
046: return "javax.faces.Messages";
047: }
048:
049: private ValueExpression _style;
050:
051: public void setStyle(ValueExpression style) {
052: _style = style;
053: }
054:
055: private ValueExpression _styleClass;
056:
057: public void setStyleClass(ValueExpression styleClass) {
058: _styleClass = styleClass;
059: }
060:
061: private ValueExpression _dir;
062:
063: public void setDir(ValueExpression dir) {
064: _dir = dir;
065: }
066:
067: private ValueExpression _lang;
068:
069: public void setLang(ValueExpression lang) {
070: _lang = lang;
071: }
072:
073: private ValueExpression _title;
074:
075: public void setTitle(ValueExpression title) {
076: _title = title;
077: }
078:
079: private ValueExpression _infoClass;
080:
081: public void setInfoClass(ValueExpression infoClass) {
082: _infoClass = infoClass;
083: }
084:
085: private ValueExpression _infoStyle;
086:
087: public void setInfoStyle(ValueExpression infoStyle) {
088: _infoStyle = infoStyle;
089: }
090:
091: private ValueExpression _warnClass;
092:
093: public void setWarnClass(ValueExpression warnClass) {
094: _warnClass = warnClass;
095: }
096:
097: private ValueExpression _warnStyle;
098:
099: public void setWarnStyle(ValueExpression warnStyle) {
100: _warnStyle = warnStyle;
101: }
102:
103: private ValueExpression _errorClass;
104:
105: public void setErrorClass(ValueExpression errorClass) {
106: _errorClass = errorClass;
107: }
108:
109: private ValueExpression _errorStyle;
110:
111: public void setErrorStyle(ValueExpression errorStyle) {
112: _errorStyle = errorStyle;
113: }
114:
115: private ValueExpression _fatalClass;
116:
117: public void setFatalClass(ValueExpression fatalClass) {
118: _fatalClass = fatalClass;
119: }
120:
121: private ValueExpression _fatalStyle;
122:
123: public void setFatalStyle(ValueExpression fatalStyle) {
124: _fatalStyle = fatalStyle;
125: }
126:
127: private ValueExpression _tooltip;
128:
129: public void setTooltip(ValueExpression tooltip) {
130: _tooltip = tooltip;
131: }
132:
133: private ValueExpression _layout;
134:
135: public void setLayout(ValueExpression layout) {
136: _layout = layout;
137: }
138:
139: private ValueExpression _globalOnly;
140:
141: public void setGlobalOnly(ValueExpression globalOnly) {
142: _globalOnly = globalOnly;
143: }
144:
145: private ValueExpression _showDetail;
146:
147: public void setShowDetail(ValueExpression showDetail) {
148: _showDetail = showDetail;
149: }
150:
151: private ValueExpression _showSummary;
152:
153: public void setShowSummary(ValueExpression showSummary) {
154: _showSummary = showSummary;
155: }
156:
157: @Override
158: protected void setProperties(UIComponent component) {
159: if (!(component instanceof HtmlMessages)) {
160: throw new IllegalArgumentException("Component "
161: + component.getClass().getName()
162: + " is no HtmlMessages");
163: }
164: HtmlMessages comp = (HtmlMessages) component;
165:
166: super .setProperties(component);
167:
168: if (_infoClass != null) {
169: comp.setValueExpression("infoClass", _infoClass);
170: }
171: if (_infoStyle != null) {
172: comp.setValueExpression("infoStyle", _infoStyle);
173: }
174: if (_showSummary != null) {
175: comp.setValueExpression("showSummary", _showSummary);
176: }
177: if (_errorStyle != null) {
178: comp.setValueExpression("errorStyle", _errorStyle);
179: }
180: if (_fatalStyle != null) {
181: comp.setValueExpression("fatalStyle", _fatalStyle);
182: }
183: if (_warnClass != null) {
184: comp.setValueExpression("warnClass", _warnClass);
185: }
186: if (_lang != null) {
187: comp.setValueExpression("lang", _lang);
188: }
189: if (_warnStyle != null) {
190: comp.setValueExpression("warnStyle", _warnStyle);
191: }
192: if (_errorClass != null) {
193: comp.setValueExpression("errorClass", _errorClass);
194: }
195: if (_layout != null) {
196: comp.setValueExpression("layout", _layout);
197: }
198: if (_styleClass != null) {
199: comp.setValueExpression("styleClass", _styleClass);
200: }
201: if (_fatalClass != null) {
202: comp.setValueExpression("fatalClass", _fatalClass);
203: }
204: if (_style != null) {
205: comp.setValueExpression("style", _style);
206: }
207: if (_globalOnly != null) {
208: comp.setValueExpression("globalOnly", _globalOnly);
209: }
210: if (_title != null) {
211: comp.setValueExpression("title", _title);
212: }
213: if (_tooltip != null) {
214: comp.setValueExpression("tooltip", _tooltip);
215: }
216: if (_dir != null) {
217: comp.setValueExpression("dir", _dir);
218: }
219: if (_showDetail != null) {
220: comp.setValueExpression("showDetail", _showDetail);
221: }
222: }
223:
224: @Override
225: public void release() {
226: super.release();
227: _infoClass = null;
228: _infoStyle = null;
229: _showSummary = null;
230: _errorStyle = null;
231: _fatalStyle = null;
232: _warnClass = null;
233: _lang = null;
234: _warnStyle = null;
235: _errorClass = null;
236: _layout = null;
237: _styleClass = null;
238: _fatalClass = null;
239: _style = null;
240: _globalOnly = null;
241: _title = null;
242: _tooltip = null;
243: _dir = null;
244: _showDetail = null;
245: }
246: }
|