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.el.ValueExpression; |
22 | |
import javax.faces.context.FacesContext; |
23 | |
import javax.faces.component.UIComponent; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
public class HtmlMessages extends javax.faces.component.UIMessages |
31 | |
{ |
32 | |
|
33 | |
static public final String COMPONENT_FAMILY = |
34 | |
"javax.faces.Messages"; |
35 | |
static public final String COMPONENT_TYPE = |
36 | |
"javax.faces.HtmlMessages"; |
37 | |
|
38 | |
|
39 | |
public HtmlMessages() |
40 | 0 | { |
41 | 0 | setRendererType("javax.faces.Messages"); |
42 | 0 | } |
43 | |
|
44 | |
@Override |
45 | |
public String getFamily() |
46 | |
{ |
47 | 0 | return COMPONENT_FAMILY; |
48 | |
} |
49 | |
|
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
public String getLayout() |
56 | |
{ |
57 | 0 | return (String) getStateHelper().eval(PropertyKeys.layout, "list"); |
58 | |
} |
59 | |
|
60 | |
public void setLayout(String layout) |
61 | |
{ |
62 | 0 | getStateHelper().put(PropertyKeys.layout, layout ); |
63 | 0 | } |
64 | |
|
65 | |
|
66 | |
public String getStyle() |
67 | |
{ |
68 | 0 | return (String) getStateHelper().eval(PropertyKeys.style); |
69 | |
} |
70 | |
|
71 | |
public void setStyle(String style) |
72 | |
{ |
73 | 0 | getStateHelper().put(PropertyKeys.style, style ); |
74 | 0 | } |
75 | |
|
76 | |
|
77 | |
public String getStyleClass() |
78 | |
{ |
79 | 0 | return (String) getStateHelper().eval(PropertyKeys.styleClass); |
80 | |
} |
81 | |
|
82 | |
public void setStyleClass(String styleClass) |
83 | |
{ |
84 | 0 | getStateHelper().put(PropertyKeys.styleClass, styleClass ); |
85 | 0 | } |
86 | |
|
87 | |
|
88 | |
public String getErrorClass() |
89 | |
{ |
90 | 0 | return (String) getStateHelper().eval(PropertyKeys.errorClass); |
91 | |
} |
92 | |
|
93 | |
public void setErrorClass(String errorClass) |
94 | |
{ |
95 | 0 | getStateHelper().put(PropertyKeys.errorClass, errorClass ); |
96 | 0 | } |
97 | |
|
98 | |
|
99 | |
public String getErrorStyle() |
100 | |
{ |
101 | 0 | return (String) getStateHelper().eval(PropertyKeys.errorStyle); |
102 | |
} |
103 | |
|
104 | |
public void setErrorStyle(String errorStyle) |
105 | |
{ |
106 | 0 | getStateHelper().put(PropertyKeys.errorStyle, errorStyle ); |
107 | 0 | } |
108 | |
|
109 | |
|
110 | |
public String getFatalClass() |
111 | |
{ |
112 | 0 | return (String) getStateHelper().eval(PropertyKeys.fatalClass); |
113 | |
} |
114 | |
|
115 | |
public void setFatalClass(String fatalClass) |
116 | |
{ |
117 | 0 | getStateHelper().put(PropertyKeys.fatalClass, fatalClass ); |
118 | 0 | } |
119 | |
|
120 | |
|
121 | |
public String getFatalStyle() |
122 | |
{ |
123 | 0 | return (String) getStateHelper().eval(PropertyKeys.fatalStyle); |
124 | |
} |
125 | |
|
126 | |
public void setFatalStyle(String fatalStyle) |
127 | |
{ |
128 | 0 | getStateHelper().put(PropertyKeys.fatalStyle, fatalStyle ); |
129 | 0 | } |
130 | |
|
131 | |
|
132 | |
public String getInfoClass() |
133 | |
{ |
134 | 0 | return (String) getStateHelper().eval(PropertyKeys.infoClass); |
135 | |
} |
136 | |
|
137 | |
public void setInfoClass(String infoClass) |
138 | |
{ |
139 | 0 | getStateHelper().put(PropertyKeys.infoClass, infoClass ); |
140 | 0 | } |
141 | |
|
142 | |
|
143 | |
public String getInfoStyle() |
144 | |
{ |
145 | 0 | return (String) getStateHelper().eval(PropertyKeys.infoStyle); |
146 | |
} |
147 | |
|
148 | |
public void setInfoStyle(String infoStyle) |
149 | |
{ |
150 | 0 | getStateHelper().put(PropertyKeys.infoStyle, infoStyle ); |
151 | 0 | } |
152 | |
|
153 | |
|
154 | |
public boolean isTooltip() |
155 | |
{ |
156 | 0 | return (Boolean) getStateHelper().eval(PropertyKeys.tooltip, false); |
157 | |
} |
158 | |
|
159 | |
public void setTooltip(boolean tooltip) |
160 | |
{ |
161 | 0 | getStateHelper().put(PropertyKeys.tooltip, tooltip ); |
162 | 0 | } |
163 | |
|
164 | |
|
165 | |
public String getWarnClass() |
166 | |
{ |
167 | 0 | return (String) getStateHelper().eval(PropertyKeys.warnClass); |
168 | |
} |
169 | |
|
170 | |
public void setWarnClass(String warnClass) |
171 | |
{ |
172 | 0 | getStateHelper().put(PropertyKeys.warnClass, warnClass ); |
173 | 0 | } |
174 | |
|
175 | |
|
176 | |
public String getWarnStyle() |
177 | |
{ |
178 | 0 | return (String) getStateHelper().eval(PropertyKeys.warnStyle); |
179 | |
} |
180 | |
|
181 | |
public void setWarnStyle(String warnStyle) |
182 | |
{ |
183 | 0 | getStateHelper().put(PropertyKeys.warnStyle, warnStyle ); |
184 | 0 | } |
185 | |
|
186 | |
|
187 | |
public String getDir() |
188 | |
{ |
189 | 0 | return (String) getStateHelper().eval(PropertyKeys.dir); |
190 | |
} |
191 | |
|
192 | |
public void setDir(String dir) |
193 | |
{ |
194 | 0 | getStateHelper().put(PropertyKeys.dir, dir ); |
195 | 0 | } |
196 | |
|
197 | |
|
198 | |
public String getLang() |
199 | |
{ |
200 | 0 | return (String) getStateHelper().eval(PropertyKeys.lang); |
201 | |
} |
202 | |
|
203 | |
public void setLang(String lang) |
204 | |
{ |
205 | 0 | getStateHelper().put(PropertyKeys.lang, lang ); |
206 | 0 | } |
207 | |
|
208 | |
|
209 | |
public String getTitle() |
210 | |
{ |
211 | 0 | return (String) getStateHelper().eval(PropertyKeys.title); |
212 | |
} |
213 | |
|
214 | |
public void setTitle(String title) |
215 | |
{ |
216 | 0 | getStateHelper().put(PropertyKeys.title, title ); |
217 | 0 | } |
218 | |
|
219 | 0 | protected enum PropertyKeys |
220 | |
{ |
221 | 0 | layout |
222 | 0 | , style |
223 | 0 | , styleClass |
224 | 0 | , errorClass |
225 | 0 | , errorStyle |
226 | 0 | , fatalClass |
227 | 0 | , fatalStyle |
228 | 0 | , infoClass |
229 | 0 | , infoStyle |
230 | 0 | , tooltip |
231 | 0 | , warnClass |
232 | 0 | , warnStyle |
233 | 0 | , dir |
234 | 0 | , lang |
235 | 0 | , title |
236 | |
} |
237 | |
|
238 | |
} |