View Javadoc

1   // WARNING: This file was automatically generated. Do not edit it directly,
2   //          or you will lose your changes.
3   /*
4    *  Licensed to the Apache Software Foundation (ASF) under one
5    *  or more contributor license agreements.  See the NOTICE file
6    *  distributed with this work for additional information
7    *  regarding copyright ownership.  The ASF licenses this file
8    *  to you under the Apache License, Version 2.0 (the
9    *  "License"); you may not use this file except in compliance
10   *  with the License.  You may obtain a copy of the License at
11   * 
12   *  http://www.apache.org/licenses/LICENSE-2.0
13   * 
14   *  Unless required by applicable law or agreed to in writing,
15   *  software distributed under the License is distributed on an
16   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   *  KIND, either express or implied.  See the License for the
18   *  specific language governing permissions and limitations
19   *  under the License.
20   */
21  package org.apache.myfaces.taglib.html;
22  
23  import javax.faces.component.UIComponent;
24  import javax.el.ValueExpression;
25  import javax.el.MethodExpression;
26  import javax.faces.component.UIComponent;
27  import javax.faces.convert.Converter;
28  
29  
30  // Generated from class javax.faces.component.html._HtmlOutputFormat.
31  //
32  // WARNING: This file was automatically generated. Do not edit it directly,
33  //          or you will lose your changes.
34  public class HtmlOutputFormatTag
35      extends javax.faces.webapp.UIComponentELTag
36  {
37      public HtmlOutputFormatTag()
38      {    
39      }
40      
41      @Override
42      public String getComponentType()
43      {
44          return "javax.faces.HtmlOutputFormat";
45      }
46  
47      public String getRendererType()
48      {
49          return "javax.faces.Format";
50      }
51  
52      private ValueExpression _style;
53      
54      public void setStyle(ValueExpression style)
55      {
56          _style = style;
57      }
58      private ValueExpression _styleClass;
59      
60      public void setStyleClass(ValueExpression styleClass)
61      {
62          _styleClass = styleClass;
63      }
64      private ValueExpression _title;
65      
66      public void setTitle(ValueExpression title)
67      {
68          _title = title;
69      }
70      private ValueExpression _escape;
71      
72      public void setEscape(ValueExpression escape)
73      {
74          _escape = escape;
75      }
76      private ValueExpression _role;
77      
78      public void setRole(ValueExpression role)
79      {
80          _role = role;
81      }
82      private ValueExpression _dir;
83      
84      public void setDir(ValueExpression dir)
85      {
86          _dir = dir;
87      }
88      private ValueExpression _lang;
89      
90      public void setLang(ValueExpression lang)
91      {
92          _lang = lang;
93      }
94      private ValueExpression _value;
95      
96      public void setValue(ValueExpression value)
97      {
98          _value = value;
99      }
100     private ValueExpression _converter;
101     
102     public void setConverter(ValueExpression converter)
103     {
104         _converter = converter;
105     }
106 
107     @Override
108     protected void setProperties(UIComponent component)
109     {
110         if (!(component instanceof javax.faces.component.html.HtmlOutputFormat ))
111         {
112             throw new IllegalArgumentException("Component "+
113                 component.getClass().getName() +" is no javax.faces.component.html.HtmlOutputFormat");
114         }
115         
116         javax.faces.component.html.HtmlOutputFormat comp = (javax.faces.component.html.HtmlOutputFormat) component;
117         
118         super.setProperties(component);
119         
120 
121         if (_style != null)
122         {
123             comp.setValueExpression("style", _style);
124         } 
125         if (_styleClass != null)
126         {
127             comp.setValueExpression("styleClass", _styleClass);
128         } 
129         if (_title != null)
130         {
131             comp.setValueExpression("title", _title);
132         } 
133         if (_escape != null)
134         {
135             comp.setValueExpression("escape", _escape);
136         } 
137         if (_role != null)
138         {
139             comp.setValueExpression("role", _role);
140         } 
141         if (_dir != null)
142         {
143             comp.setValueExpression("dir", _dir);
144         } 
145         if (_lang != null)
146         {
147             comp.setValueExpression("lang", _lang);
148         } 
149         if (_value != null)
150         {
151             comp.setValueExpression("value", _value);
152         } 
153         if (_converter != null)
154         {
155             if (!_converter.isLiteralText())
156             {
157                 comp.setValueExpression("converter", _converter);
158             }
159             else
160             {
161                 String s = _converter.getExpressionString();
162                 if (s != null)
163                 {            
164                     Converter converter = getFacesContext().getApplication().createConverter(s);
165                     comp.setConverter(converter);
166                 }
167             }
168         }
169     }
170 
171     @Override
172     public void release()
173     {
174         super.release();
175         _style = null;
176         _styleClass = null;
177         _title = null;
178         _escape = null;
179         _role = null;
180         _dir = null;
181         _lang = null;
182         _value = null;
183         _converter = null;
184     }
185 }