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