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 | |
import javax.faces.convert.Converter; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
public class HtmlOutcomeTargetButton extends javax.faces.component.UIOutcomeTarget |
32 | |
implements javax.faces.component.behavior.ClientBehaviorHolder |
33 | |
{ |
34 | |
|
35 | |
static public final String COMPONENT_FAMILY = |
36 | |
"javax.faces.OutcomeTarget"; |
37 | |
static public final String COMPONENT_TYPE = |
38 | |
"javax.faces.HtmlOutcomeTargetButton"; |
39 | |
|
40 | |
|
41 | |
public HtmlOutcomeTargetButton() |
42 | 0 | { |
43 | 0 | setRendererType("javax.faces.Button"); |
44 | 0 | } |
45 | |
|
46 | |
@Override |
47 | |
public String getFamily() |
48 | |
{ |
49 | 0 | return COMPONENT_FAMILY; |
50 | |
} |
51 | |
|
52 | |
|
53 | 0 | static private final java.util.Collection<String> CLIENT_EVENTS_LIST = |
54 | |
java.util.Collections.unmodifiableCollection( |
55 | |
java.util.Arrays.asList( |
56 | |
"blur" |
57 | |
, "focus" |
58 | |
, "click" |
59 | |
, "dblclick" |
60 | |
, "keydown" |
61 | |
, "keypress" |
62 | |
, "keyup" |
63 | |
, "mousedown" |
64 | |
, "mousemove" |
65 | |
, "mouseout" |
66 | |
, "mouseover" |
67 | |
, "mouseup" |
68 | |
)); |
69 | |
|
70 | |
public java.util.Collection<String> getEventNames() |
71 | |
{ |
72 | 0 | return CLIENT_EVENTS_LIST; |
73 | |
} |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
public String getImage() |
79 | |
{ |
80 | 0 | return (String) getStateHelper().eval(PropertyKeys.image); |
81 | |
} |
82 | |
|
83 | |
public void setImage(String image) |
84 | |
{ |
85 | 0 | getStateHelper().put(PropertyKeys.image, image ); |
86 | 0 | } |
87 | |
|
88 | |
|
89 | |
public String getStyle() |
90 | |
{ |
91 | 0 | return (String) getStateHelper().eval(PropertyKeys.style); |
92 | |
} |
93 | |
|
94 | |
public void setStyle(String style) |
95 | |
{ |
96 | 0 | getStateHelper().put(PropertyKeys.style, style ); |
97 | 0 | } |
98 | |
|
99 | |
|
100 | |
public String getStyleClass() |
101 | |
{ |
102 | 0 | return (String) getStateHelper().eval(PropertyKeys.styleClass); |
103 | |
} |
104 | |
|
105 | |
public void setStyleClass(String styleClass) |
106 | |
{ |
107 | 0 | getStateHelper().put(PropertyKeys.styleClass, styleClass ); |
108 | 0 | } |
109 | |
|
110 | |
|
111 | |
public String getAlt() |
112 | |
{ |
113 | 0 | return (String) getStateHelper().eval(PropertyKeys.alt); |
114 | |
} |
115 | |
|
116 | |
public void setAlt(String alt) |
117 | |
{ |
118 | 0 | getStateHelper().put(PropertyKeys.alt, alt ); |
119 | 0 | } |
120 | |
|
121 | |
|
122 | |
public String getTabindex() |
123 | |
{ |
124 | 0 | return (String) getStateHelper().eval(PropertyKeys.tabindex); |
125 | |
} |
126 | |
|
127 | |
public void setTabindex(String tabindex) |
128 | |
{ |
129 | 0 | getStateHelper().put(PropertyKeys.tabindex, tabindex ); |
130 | 0 | } |
131 | |
|
132 | |
|
133 | |
public String getOnblur() |
134 | |
{ |
135 | 0 | return (String) getStateHelper().eval(PropertyKeys.onblur); |
136 | |
} |
137 | |
|
138 | |
public void setOnblur(String onblur) |
139 | |
{ |
140 | 0 | getStateHelper().put(PropertyKeys.onblur, onblur ); |
141 | 0 | } |
142 | |
|
143 | |
|
144 | |
public String getOnfocus() |
145 | |
{ |
146 | 0 | return (String) getStateHelper().eval(PropertyKeys.onfocus); |
147 | |
} |
148 | |
|
149 | |
public void setOnfocus(String onfocus) |
150 | |
{ |
151 | 0 | getStateHelper().put(PropertyKeys.onfocus, onfocus ); |
152 | 0 | } |
153 | |
|
154 | |
|
155 | |
public String getAccesskey() |
156 | |
{ |
157 | 0 | return (String) getStateHelper().eval(PropertyKeys.accesskey); |
158 | |
} |
159 | |
|
160 | |
public void setAccesskey(String accesskey) |
161 | |
{ |
162 | 0 | getStateHelper().put(PropertyKeys.accesskey, accesskey ); |
163 | 0 | } |
164 | |
|
165 | |
|
166 | |
public String getOnclick() |
167 | |
{ |
168 | 0 | return (String) getStateHelper().eval(PropertyKeys.onclick); |
169 | |
} |
170 | |
|
171 | |
public void setOnclick(String onclick) |
172 | |
{ |
173 | 0 | getStateHelper().put(PropertyKeys.onclick, onclick ); |
174 | 0 | } |
175 | |
|
176 | |
|
177 | |
public String getOndblclick() |
178 | |
{ |
179 | 0 | return (String) getStateHelper().eval(PropertyKeys.ondblclick); |
180 | |
} |
181 | |
|
182 | |
public void setOndblclick(String ondblclick) |
183 | |
{ |
184 | 0 | getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); |
185 | 0 | } |
186 | |
|
187 | |
|
188 | |
public String getOnkeydown() |
189 | |
{ |
190 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeydown); |
191 | |
} |
192 | |
|
193 | |
public void setOnkeydown(String onkeydown) |
194 | |
{ |
195 | 0 | getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); |
196 | 0 | } |
197 | |
|
198 | |
|
199 | |
public String getOnkeypress() |
200 | |
{ |
201 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeypress); |
202 | |
} |
203 | |
|
204 | |
public void setOnkeypress(String onkeypress) |
205 | |
{ |
206 | 0 | getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); |
207 | 0 | } |
208 | |
|
209 | |
|
210 | |
public String getOnkeyup() |
211 | |
{ |
212 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeyup); |
213 | |
} |
214 | |
|
215 | |
public void setOnkeyup(String onkeyup) |
216 | |
{ |
217 | 0 | getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); |
218 | 0 | } |
219 | |
|
220 | |
|
221 | |
public String getOnmousedown() |
222 | |
{ |
223 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousedown); |
224 | |
} |
225 | |
|
226 | |
public void setOnmousedown(String onmousedown) |
227 | |
{ |
228 | 0 | getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); |
229 | 0 | } |
230 | |
|
231 | |
|
232 | |
public String getOnmousemove() |
233 | |
{ |
234 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousemove); |
235 | |
} |
236 | |
|
237 | |
public void setOnmousemove(String onmousemove) |
238 | |
{ |
239 | 0 | getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); |
240 | 0 | } |
241 | |
|
242 | |
|
243 | |
public String getOnmouseout() |
244 | |
{ |
245 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseout); |
246 | |
} |
247 | |
|
248 | |
public void setOnmouseout(String onmouseout) |
249 | |
{ |
250 | 0 | getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); |
251 | 0 | } |
252 | |
|
253 | |
|
254 | |
public String getOnmouseover() |
255 | |
{ |
256 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseover); |
257 | |
} |
258 | |
|
259 | |
public void setOnmouseover(String onmouseover) |
260 | |
{ |
261 | 0 | getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); |
262 | 0 | } |
263 | |
|
264 | |
|
265 | |
public String getOnmouseup() |
266 | |
{ |
267 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseup); |
268 | |
} |
269 | |
|
270 | |
public void setOnmouseup(String onmouseup) |
271 | |
{ |
272 | 0 | getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); |
273 | 0 | } |
274 | |
|
275 | |
|
276 | |
public String getDir() |
277 | |
{ |
278 | 0 | return (String) getStateHelper().eval(PropertyKeys.dir); |
279 | |
} |
280 | |
|
281 | |
public void setDir(String dir) |
282 | |
{ |
283 | 0 | getStateHelper().put(PropertyKeys.dir, dir ); |
284 | 0 | } |
285 | |
|
286 | |
|
287 | |
public String getLang() |
288 | |
{ |
289 | 0 | return (String) getStateHelper().eval(PropertyKeys.lang); |
290 | |
} |
291 | |
|
292 | |
public void setLang(String lang) |
293 | |
{ |
294 | 0 | getStateHelper().put(PropertyKeys.lang, lang ); |
295 | 0 | } |
296 | |
|
297 | |
|
298 | |
public String getTitle() |
299 | |
{ |
300 | 0 | return (String) getStateHelper().eval(PropertyKeys.title); |
301 | |
} |
302 | |
|
303 | |
public void setTitle(String title) |
304 | |
{ |
305 | 0 | getStateHelper().put(PropertyKeys.title, title ); |
306 | 0 | } |
307 | |
|
308 | 0 | protected enum PropertyKeys |
309 | |
{ |
310 | 0 | image |
311 | 0 | , style |
312 | 0 | , styleClass |
313 | 0 | , alt |
314 | 0 | , tabindex |
315 | 0 | , onblur |
316 | 0 | , onfocus |
317 | 0 | , accesskey |
318 | 0 | , onclick |
319 | 0 | , ondblclick |
320 | 0 | , onkeydown |
321 | 0 | , onkeypress |
322 | 0 | , onkeyup |
323 | 0 | , onmousedown |
324 | 0 | , onmousemove |
325 | 0 | , onmouseout |
326 | 0 | , onmouseover |
327 | 0 | , onmouseup |
328 | 0 | , dir |
329 | 0 | , lang |
330 | 0 | , title |
331 | |
} |
332 | |
|
333 | |
} |