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.UIOutput;
027: import javax.faces.component.html.HtmlOutputFormat;
028: import javax.faces.convert.Converter;
029: import javax.faces.webapp.UIComponentELTag;
030:
031: /**
032: * Auto-generated tag class.
033: */
034: public class HtmlOutputFormatTag extends UIComponentELTag {
035:
036: /**
037: * Construct an instance of the HtmlOutputFormatTag.
038: */
039: public HtmlOutputFormatTag() {
040: }
041:
042: public String getComponentType() {
043: return "javax.faces.HtmlOutputFormat";
044: }
045:
046: public String getRendererType() {
047: return "javax.faces.Format";
048: }
049:
050: private ValueExpression _style;
051:
052: public void setStyle(ValueExpression style) {
053: _style = style;
054: }
055:
056: private ValueExpression _styleClass;
057:
058: public void setStyleClass(ValueExpression styleClass) {
059: _styleClass = styleClass;
060: }
061:
062: private ValueExpression _dir;
063:
064: public void setDir(ValueExpression dir) {
065: _dir = dir;
066: }
067:
068: private ValueExpression _lang;
069:
070: public void setLang(ValueExpression lang) {
071: _lang = lang;
072: }
073:
074: private ValueExpression _title;
075:
076: public void setTitle(ValueExpression title) {
077: _title = title;
078: }
079:
080: private ValueExpression _escape;
081:
082: public void setEscape(ValueExpression escape) {
083: _escape = escape;
084: }
085:
086: private ValueExpression _value;
087:
088: public void setValue(ValueExpression value) {
089: _value = value;
090: }
091:
092: private ValueExpression _converter;
093:
094: public void setConverter(ValueExpression converter) {
095: _converter = converter;
096: }
097:
098: @Override
099: protected void setProperties(UIComponent component) {
100: if (!(component instanceof HtmlOutputFormat)) {
101: throw new IllegalArgumentException("Component "
102: + component.getClass().getName()
103: + " is no HtmlOutputFormat");
104: }
105: HtmlOutputFormat comp = (HtmlOutputFormat) component;
106:
107: super .setProperties(component);
108:
109: if (_escape != null) {
110: comp.setValueExpression("escape", _escape);
111: }
112: if (_lang != null) {
113: comp.setValueExpression("lang", _lang);
114: }
115: if (_title != null) {
116: comp.setValueExpression("title", _title);
117: }
118: if (_styleClass != null) {
119: comp.setValueExpression("styleClass", _styleClass);
120: }
121: if (_style != null) {
122: comp.setValueExpression("style", _style);
123: }
124: if (_converter != null) {
125: if (!_converter.isLiteralText()) {
126: comp.setValueExpression("converter", _converter);
127: } else {
128: String s = _converter.getExpressionString();
129: if (s != null) {
130: Converter converter = getFacesContext()
131: .getApplication().createConverter(s);
132: comp.setConverter(converter);
133: }
134: }
135: }
136: if (_dir != null) {
137: comp.setValueExpression("dir", _dir);
138: }
139: if (_value != null) {
140: comp.setValueExpression("value", _value);
141: }
142: }
143:
144: @Override
145: public void release() {
146: super.release();
147: _escape = null;
148: _lang = null;
149: _title = null;
150: _styleClass = null;
151: _style = null;
152: _converter = null;
153: _dir = null;
154: _value = null;
155: }
156: }
|