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.UIMessage;
027: import javax.faces.component.html.HtmlMessage;
028: import javax.faces.webapp.UIComponentELTag;
029:
030: /**
031: * Auto-generated tag class.
032: */
033: public class HtmlMessageTag extends UIComponentELTag {
034:
035: /**
036: * Construct an instance of the HtmlMessageTag.
037: */
038: public HtmlMessageTag() {
039: }
040:
041: public String getComponentType() {
042: return "javax.faces.HtmlMessage";
043: }
044:
045: public String getRendererType() {
046: return "javax.faces.Message";
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 _for;
134:
135: public void setFor(ValueExpression forParam) {
136: _for = forParam;
137: }
138:
139: private ValueExpression _showDetail;
140:
141: public void setShowDetail(ValueExpression showDetail) {
142: _showDetail = showDetail;
143: }
144:
145: private ValueExpression _showSummary;
146:
147: public void setShowSummary(ValueExpression showSummary) {
148: _showSummary = showSummary;
149: }
150:
151: @Override
152: protected void setProperties(UIComponent component) {
153: if (!(component instanceof HtmlMessage)) {
154: throw new IllegalArgumentException("Component "
155: + component.getClass().getName()
156: + " is no HtmlMessage");
157: }
158: HtmlMessage comp = (HtmlMessage) component;
159:
160: super .setProperties(component);
161:
162: if (_style != null) {
163: comp.setValueExpression("style", _style);
164: }
165: if (_fatalClass != null) {
166: comp.setValueExpression("fatalClass", _fatalClass);
167: }
168: if (_infoStyle != null) {
169: comp.setValueExpression("infoStyle", _infoStyle);
170: }
171: if (_errorStyle != null) {
172: comp.setValueExpression("errorStyle", _errorStyle);
173: }
174: if (_fatalStyle != null) {
175: comp.setValueExpression("fatalStyle", _fatalStyle);
176: }
177: if (_errorClass != null) {
178: comp.setValueExpression("errorClass", _errorClass);
179: }
180: if (_lang != null) {
181: comp.setValueExpression("lang", _lang);
182: }
183: if (_showSummary != null) {
184: comp.setValueExpression("showSummary", _showSummary);
185: }
186: if (_showDetail != null) {
187: comp.setValueExpression("showDetail", _showDetail);
188: }
189: if (_warnStyle != null) {
190: comp.setValueExpression("warnStyle", _warnStyle);
191: }
192: if (_dir != null) {
193: comp.setValueExpression("dir", _dir);
194: }
195: if (_for != null) {
196: comp.setValueExpression("for", _for);
197: }
198: if (_warnClass != null) {
199: comp.setValueExpression("warnClass", _warnClass);
200: }
201: if (_tooltip != null) {
202: comp.setValueExpression("tooltip", _tooltip);
203: }
204: if (_infoClass != null) {
205: comp.setValueExpression("infoClass", _infoClass);
206: }
207: if (_styleClass != null) {
208: comp.setValueExpression("styleClass", _styleClass);
209: }
210: if (_title != null) {
211: comp.setValueExpression("title", _title);
212: }
213: }
214:
215: @Override
216: public void release() {
217: super.release();
218: _style = null;
219: _fatalClass = null;
220: _infoStyle = null;
221: _errorStyle = null;
222: _fatalStyle = null;
223: _errorClass = null;
224: _lang = null;
225: _showSummary = null;
226: _showDetail = null;
227: _warnStyle = null;
228: _dir = null;
229: _for = null;
230: _warnClass = null;
231: _tooltip = null;
232: _infoClass = null;
233: _styleClass = null;
234: _title = null;
235: }
236: }
|