View Javadoc

1   /*
2    *  Licensed to the Apache Software Foundation (ASF) under one
3    *  or more contributor license agreements.  See the NOTICE file
4    *  distributed with this work for additional information
5    *  regarding copyright ownership.  The ASF licenses this file
6    *  to you under the Apache License, Version 2.0 (the
7    *  "License"); you may not use this file except in compliance
8    *  with the License.  You may obtain a copy of the License at
9    * 
10   *  http://www.apache.org/licenses/LICENSE-2.0
11   * 
12   *  Unless required by applicable law or agreed to in writing,
13   *  software distributed under the License is distributed on an
14   *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   *  KIND, either express or implied.  See the License for the
16   *  specific language governing permissions and limitations
17   *  under the License.
18   */
19  package javax.faces.component.html;
20  
21  import javax.faces.el.ValueBinding;
22  import javax.el.ValueExpression;
23  import javax.faces.context.FacesContext;
24  import javax.faces.component.UIComponent;
25  
26  
27  // Generated from class javax.faces.component.html._HtmlMessages.
28  //
29  // WARNING: This file was automatically generated. Do not edit it directly,
30  //          or you will lose your changes.
31  public class HtmlMessages extends javax.faces.component.UIMessages
32  {
33  
34      static public final String COMPONENT_FAMILY =
35          "javax.faces.Messages";
36      static public final String COMPONENT_TYPE =
37          "javax.faces.HtmlMessages";
38  
39  
40      public HtmlMessages()
41      {
42          setRendererType("javax.faces.Messages");
43      }
44  
45      @Override    
46      public String getFamily()
47      {
48          return COMPONENT_FAMILY;
49      }
50  
51  
52  
53      
54      // Property: layout
55  
56      public String getLayout()
57      {
58          return (String) getStateHelper().eval(PropertyKeys.layout, "list");
59      }
60      
61      public void setLayout(String layout)
62      {
63          getStateHelper().put(PropertyKeys.layout, layout ); 
64      }
65      // Property: style
66  
67      public String getStyle()
68      {
69          return (String) getStateHelper().eval(PropertyKeys.style);
70      }
71      
72      public void setStyle(String style)
73      {
74          getStateHelper().put(PropertyKeys.style, style ); 
75          _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP);
76      }
77      // Property: styleClass
78  
79      public String getStyleClass()
80      {
81          return (String) getStateHelper().eval(PropertyKeys.styleClass);
82      }
83      
84      public void setStyleClass(String styleClass)
85      {
86          getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
87          _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
88      }
89      // Property: errorClass
90  
91      public String getErrorClass()
92      {
93          return (String) getStateHelper().eval(PropertyKeys.errorClass);
94      }
95      
96      public void setErrorClass(String errorClass)
97      {
98          getStateHelper().put(PropertyKeys.errorClass, errorClass ); 
99      }
100     // Property: errorStyle
101 
102     public String getErrorStyle()
103     {
104         return (String) getStateHelper().eval(PropertyKeys.errorStyle);
105     }
106     
107     public void setErrorStyle(String errorStyle)
108     {
109         getStateHelper().put(PropertyKeys.errorStyle, errorStyle ); 
110     }
111     // Property: fatalClass
112 
113     public String getFatalClass()
114     {
115         return (String) getStateHelper().eval(PropertyKeys.fatalClass);
116     }
117     
118     public void setFatalClass(String fatalClass)
119     {
120         getStateHelper().put(PropertyKeys.fatalClass, fatalClass ); 
121     }
122     // Property: fatalStyle
123 
124     public String getFatalStyle()
125     {
126         return (String) getStateHelper().eval(PropertyKeys.fatalStyle);
127     }
128     
129     public void setFatalStyle(String fatalStyle)
130     {
131         getStateHelper().put(PropertyKeys.fatalStyle, fatalStyle ); 
132     }
133     // Property: infoClass
134 
135     public String getInfoClass()
136     {
137         return (String) getStateHelper().eval(PropertyKeys.infoClass);
138     }
139     
140     public void setInfoClass(String infoClass)
141     {
142         getStateHelper().put(PropertyKeys.infoClass, infoClass ); 
143     }
144     // Property: infoStyle
145 
146     public String getInfoStyle()
147     {
148         return (String) getStateHelper().eval(PropertyKeys.infoStyle);
149     }
150     
151     public void setInfoStyle(String infoStyle)
152     {
153         getStateHelper().put(PropertyKeys.infoStyle, infoStyle ); 
154     }
155     // Property: tooltip
156 
157     public boolean isTooltip()
158     {
159         return (Boolean) getStateHelper().eval(PropertyKeys.tooltip, false);
160     }
161     
162     public void setTooltip(boolean tooltip)
163     {
164         getStateHelper().put(PropertyKeys.tooltip, tooltip ); 
165     }
166     // Property: warnClass
167 
168     public String getWarnClass()
169     {
170         return (String) getStateHelper().eval(PropertyKeys.warnClass);
171     }
172     
173     public void setWarnClass(String warnClass)
174     {
175         getStateHelper().put(PropertyKeys.warnClass, warnClass ); 
176     }
177     // Property: warnStyle
178 
179     public String getWarnStyle()
180     {
181         return (String) getStateHelper().eval(PropertyKeys.warnStyle);
182     }
183     
184     public void setWarnStyle(String warnStyle)
185     {
186         getStateHelper().put(PropertyKeys.warnStyle, warnStyle ); 
187     }
188     // Property: role
189 
190     public String getRole()
191     {
192         return (String) getStateHelper().eval(PropertyKeys.role);
193     }
194     
195     public void setRole(String role)
196     {
197         getStateHelper().put(PropertyKeys.role, role ); 
198         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP);
199     }
200     // Property: dir
201 
202     public String getDir()
203     {
204         return (String) getStateHelper().eval(PropertyKeys.dir);
205     }
206     
207     public void setDir(String dir)
208     {
209         getStateHelper().put(PropertyKeys.dir, dir ); 
210         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP);
211     }
212     // Property: lang
213 
214     public String getLang()
215     {
216         return (String) getStateHelper().eval(PropertyKeys.lang);
217     }
218     
219     public void setLang(String lang)
220     {
221         getStateHelper().put(PropertyKeys.lang, lang ); 
222         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP);
223     }
224     // Property: title
225 
226     public String getTitle()
227     {
228         return (String) getStateHelper().eval(PropertyKeys.title);
229     }
230     
231     public void setTitle(String title)
232     {
233         getStateHelper().put(PropertyKeys.title, title ); 
234         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP);
235     }
236 
237     public void setValueBinding(String name, ValueBinding binding)
238     {
239         super.setValueBinding(name, binding);
240         _CommonPropertyConstants.markProperty(this, name);
241     }
242 
243     public void setValueExpression(String name, ValueExpression expression)
244     {
245         super.setValueExpression(name, expression);
246         _CommonPropertyConstants.markProperty(this, name);
247     }
248 
249     protected enum PropertyKeys
250     {
251          layout
252         , style
253         , styleClass
254         , errorClass
255         , errorStyle
256         , fatalClass
257         , fatalStyle
258         , infoClass
259         , infoStyle
260         , tooltip
261         , warnClass
262         , warnStyle
263         , role
264         , dir
265         , lang
266         , title
267     }
268 
269  }