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._HtmlMessage.
28  //
29  // WARNING: This file was automatically generated. Do not edit it directly,
30  //          or you will lose your changes.
31  public class HtmlMessage extends javax.faces.component.UIMessage
32  {
33  
34      static public final String COMPONENT_FAMILY =
35          "javax.faces.Message";
36      static public final String COMPONENT_TYPE =
37          "javax.faces.HtmlMessage";
38  
39  
40      public HtmlMessage()
41      {
42          setRendererType("javax.faces.Message");
43      }
44  
45      @Override    
46      public String getFamily()
47      {
48          return COMPONENT_FAMILY;
49      }
50  
51  
52  
53      
54      // Property: style
55  
56      public String getStyle()
57      {
58          return (String) getStateHelper().eval(PropertyKeys.style);
59      }
60      
61      public void setStyle(String style)
62      {
63          getStateHelper().put(PropertyKeys.style, style ); 
64          _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP);
65      }
66      // Property: styleClass
67  
68      public String getStyleClass()
69      {
70          return (String) getStateHelper().eval(PropertyKeys.styleClass);
71      }
72      
73      public void setStyleClass(String styleClass)
74      {
75          getStateHelper().put(PropertyKeys.styleClass, styleClass ); 
76          _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP);
77      }
78      // Property: errorClass
79  
80      public String getErrorClass()
81      {
82          return (String) getStateHelper().eval(PropertyKeys.errorClass);
83      }
84      
85      public void setErrorClass(String errorClass)
86      {
87          getStateHelper().put(PropertyKeys.errorClass, errorClass ); 
88      }
89      // Property: errorStyle
90  
91      public String getErrorStyle()
92      {
93          return (String) getStateHelper().eval(PropertyKeys.errorStyle);
94      }
95      
96      public void setErrorStyle(String errorStyle)
97      {
98          getStateHelper().put(PropertyKeys.errorStyle, errorStyle ); 
99      }
100     // Property: fatalClass
101 
102     public String getFatalClass()
103     {
104         return (String) getStateHelper().eval(PropertyKeys.fatalClass);
105     }
106     
107     public void setFatalClass(String fatalClass)
108     {
109         getStateHelper().put(PropertyKeys.fatalClass, fatalClass ); 
110     }
111     // Property: fatalStyle
112 
113     public String getFatalStyle()
114     {
115         return (String) getStateHelper().eval(PropertyKeys.fatalStyle);
116     }
117     
118     public void setFatalStyle(String fatalStyle)
119     {
120         getStateHelper().put(PropertyKeys.fatalStyle, fatalStyle ); 
121     }
122     // Property: infoClass
123 
124     public String getInfoClass()
125     {
126         return (String) getStateHelper().eval(PropertyKeys.infoClass);
127     }
128     
129     public void setInfoClass(String infoClass)
130     {
131         getStateHelper().put(PropertyKeys.infoClass, infoClass ); 
132     }
133     // Property: infoStyle
134 
135     public String getInfoStyle()
136     {
137         return (String) getStateHelper().eval(PropertyKeys.infoStyle);
138     }
139     
140     public void setInfoStyle(String infoStyle)
141     {
142         getStateHelper().put(PropertyKeys.infoStyle, infoStyle ); 
143     }
144     // Property: tooltip
145 
146     public boolean isTooltip()
147     {
148         return (Boolean) getStateHelper().eval(PropertyKeys.tooltip, false);
149     }
150     
151     public void setTooltip(boolean tooltip)
152     {
153         getStateHelper().put(PropertyKeys.tooltip, tooltip ); 
154     }
155     // Property: warnClass
156 
157     public String getWarnClass()
158     {
159         return (String) getStateHelper().eval(PropertyKeys.warnClass);
160     }
161     
162     public void setWarnClass(String warnClass)
163     {
164         getStateHelper().put(PropertyKeys.warnClass, warnClass ); 
165     }
166     // Property: warnStyle
167 
168     public String getWarnStyle()
169     {
170         return (String) getStateHelper().eval(PropertyKeys.warnStyle);
171     }
172     
173     public void setWarnStyle(String warnStyle)
174     {
175         getStateHelper().put(PropertyKeys.warnStyle, warnStyle ); 
176     }
177     // Property: role
178 
179     public String getRole()
180     {
181         return (String) getStateHelper().eval(PropertyKeys.role);
182     }
183     
184     public void setRole(String role)
185     {
186         getStateHelper().put(PropertyKeys.role, role ); 
187         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP);
188     }
189     // Property: dir
190 
191     public String getDir()
192     {
193         return (String) getStateHelper().eval(PropertyKeys.dir);
194     }
195     
196     public void setDir(String dir)
197     {
198         getStateHelper().put(PropertyKeys.dir, dir ); 
199         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP);
200     }
201     // Property: lang
202 
203     public String getLang()
204     {
205         return (String) getStateHelper().eval(PropertyKeys.lang);
206     }
207     
208     public void setLang(String lang)
209     {
210         getStateHelper().put(PropertyKeys.lang, lang ); 
211         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP);
212     }
213     // Property: title
214 
215     public String getTitle()
216     {
217         return (String) getStateHelper().eval(PropertyKeys.title);
218     }
219     
220     public void setTitle(String title)
221     {
222         getStateHelper().put(PropertyKeys.title, title ); 
223         _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP);
224     }
225 
226     public void setValueBinding(String name, ValueBinding binding)
227     {
228         super.setValueBinding(name, binding);
229         _CommonPropertyConstants.markProperty(this, name);
230     }
231 
232     public void setValueExpression(String name, ValueExpression expression)
233     {
234         super.setValueExpression(name, expression);
235         _CommonPropertyConstants.markProperty(this, name);
236     }
237 
238     protected enum PropertyKeys
239     {
240          style
241         , styleClass
242         , errorClass
243         , errorStyle
244         , fatalClass
245         , fatalStyle
246         , infoClass
247         , infoStyle
248         , tooltip
249         , warnClass
250         , warnStyle
251         , role
252         , dir
253         , lang
254         , title
255     }
256 
257  }