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 | |
import javax.faces.convert.Converter; |
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
public class HtmlOutcomeTargetLink extends javax.faces.component.UIOutcomeTarget |
33 | |
implements javax.faces.component.behavior.ClientBehaviorHolder |
34 | |
{ |
35 | |
|
36 | |
static public final String COMPONENT_FAMILY = |
37 | |
"javax.faces.OutcomeTarget"; |
38 | |
static public final String COMPONENT_TYPE = |
39 | |
"javax.faces.HtmlOutcomeTargetLink"; |
40 | |
|
41 | |
|
42 | |
public HtmlOutcomeTargetLink() |
43 | 0 | { |
44 | 0 | setRendererType("javax.faces.Link"); |
45 | 0 | } |
46 | |
|
47 | |
@Override |
48 | |
public String getFamily() |
49 | |
{ |
50 | 0 | return COMPONENT_FAMILY; |
51 | |
} |
52 | |
|
53 | |
|
54 | 0 | static private final java.util.Collection<String> CLIENT_EVENTS_LIST = |
55 | |
java.util.Collections.unmodifiableCollection( |
56 | |
java.util.Arrays.asList( |
57 | |
"blur" |
58 | |
, "focus" |
59 | |
, "click" |
60 | |
, "dblclick" |
61 | |
, "keydown" |
62 | |
, "keypress" |
63 | |
, "keyup" |
64 | |
, "mousedown" |
65 | |
, "mousemove" |
66 | |
, "mouseout" |
67 | |
, "mouseover" |
68 | |
, "mouseup" |
69 | |
)); |
70 | |
|
71 | |
public java.util.Collection<String> getEventNames() |
72 | |
{ |
73 | 0 | return CLIENT_EVENTS_LIST; |
74 | |
} |
75 | |
|
76 | |
@Override |
77 | |
public void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior) |
78 | |
{ |
79 | 0 | super.addClientBehavior(eventName, behavior); |
80 | 0 | _CommonEventConstants.markEvent(this, eventName); |
81 | 0 | } |
82 | |
|
83 | |
|
84 | |
|
85 | |
|
86 | |
public String getStyle() |
87 | |
{ |
88 | 0 | return (String) getStateHelper().eval(PropertyKeys.style); |
89 | |
} |
90 | |
|
91 | |
public void setStyle(String style) |
92 | |
{ |
93 | 0 | getStateHelper().put(PropertyKeys.style, style ); |
94 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP); |
95 | 0 | } |
96 | |
|
97 | |
|
98 | |
public String getStyleClass() |
99 | |
{ |
100 | 0 | return (String) getStateHelper().eval(PropertyKeys.styleClass); |
101 | |
} |
102 | |
|
103 | |
public void setStyleClass(String styleClass) |
104 | |
{ |
105 | 0 | getStateHelper().put(PropertyKeys.styleClass, styleClass ); |
106 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP); |
107 | 0 | } |
108 | |
|
109 | |
|
110 | |
public String getTabindex() |
111 | |
{ |
112 | 0 | return (String) getStateHelper().eval(PropertyKeys.tabindex); |
113 | |
} |
114 | |
|
115 | |
public void setTabindex(String tabindex) |
116 | |
{ |
117 | 0 | getStateHelper().put(PropertyKeys.tabindex, tabindex ); |
118 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TABINDEX_PROP); |
119 | 0 | } |
120 | |
|
121 | |
|
122 | |
public String getOnblur() |
123 | |
{ |
124 | 0 | return (String) getStateHelper().eval(PropertyKeys.onblur); |
125 | |
} |
126 | |
|
127 | |
public void setOnblur(String onblur) |
128 | |
{ |
129 | 0 | getStateHelper().put(PropertyKeys.onblur, onblur ); |
130 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONBLUR_PROP); |
131 | 0 | } |
132 | |
|
133 | |
|
134 | |
public String getOnfocus() |
135 | |
{ |
136 | 0 | return (String) getStateHelper().eval(PropertyKeys.onfocus); |
137 | |
} |
138 | |
|
139 | |
public void setOnfocus(String onfocus) |
140 | |
{ |
141 | 0 | getStateHelper().put(PropertyKeys.onfocus, onfocus ); |
142 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONFOCUS_PROP); |
143 | 0 | } |
144 | |
|
145 | |
|
146 | |
public String getAccesskey() |
147 | |
{ |
148 | 0 | return (String) getStateHelper().eval(PropertyKeys.accesskey); |
149 | |
} |
150 | |
|
151 | |
public void setAccesskey(String accesskey) |
152 | |
{ |
153 | 0 | getStateHelper().put(PropertyKeys.accesskey, accesskey ); |
154 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ACCESSKEY_PROP); |
155 | 0 | } |
156 | |
|
157 | |
|
158 | |
public String getRole() |
159 | |
{ |
160 | 0 | return (String) getStateHelper().eval(PropertyKeys.role); |
161 | |
} |
162 | |
|
163 | |
public void setRole(String role) |
164 | |
{ |
165 | 0 | getStateHelper().put(PropertyKeys.role, role ); |
166 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP); |
167 | 0 | } |
168 | |
|
169 | |
|
170 | |
public String getOnclick() |
171 | |
{ |
172 | 0 | return (String) getStateHelper().eval(PropertyKeys.onclick); |
173 | |
} |
174 | |
|
175 | |
public void setOnclick(String onclick) |
176 | |
{ |
177 | 0 | getStateHelper().put(PropertyKeys.onclick, onclick ); |
178 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONCLICK_PROP); |
179 | 0 | } |
180 | |
|
181 | |
|
182 | |
public String getOndblclick() |
183 | |
{ |
184 | 0 | return (String) getStateHelper().eval(PropertyKeys.ondblclick); |
185 | |
} |
186 | |
|
187 | |
public void setOndblclick(String ondblclick) |
188 | |
{ |
189 | 0 | getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); |
190 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONDBLCLICK_PROP); |
191 | 0 | } |
192 | |
|
193 | |
|
194 | |
public String getOnkeydown() |
195 | |
{ |
196 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeydown); |
197 | |
} |
198 | |
|
199 | |
public void setOnkeydown(String onkeydown) |
200 | |
{ |
201 | 0 | getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); |
202 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYDOWN_PROP); |
203 | 0 | } |
204 | |
|
205 | |
|
206 | |
public String getOnkeypress() |
207 | |
{ |
208 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeypress); |
209 | |
} |
210 | |
|
211 | |
public void setOnkeypress(String onkeypress) |
212 | |
{ |
213 | 0 | getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); |
214 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYPRESS_PROP); |
215 | 0 | } |
216 | |
|
217 | |
|
218 | |
public String getOnkeyup() |
219 | |
{ |
220 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeyup); |
221 | |
} |
222 | |
|
223 | |
public void setOnkeyup(String onkeyup) |
224 | |
{ |
225 | 0 | getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); |
226 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONKEYUP_PROP); |
227 | 0 | } |
228 | |
|
229 | |
|
230 | |
public String getOnmousedown() |
231 | |
{ |
232 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousedown); |
233 | |
} |
234 | |
|
235 | |
public void setOnmousedown(String onmousedown) |
236 | |
{ |
237 | 0 | getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); |
238 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEDOWN_PROP); |
239 | 0 | } |
240 | |
|
241 | |
|
242 | |
public String getOnmousemove() |
243 | |
{ |
244 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousemove); |
245 | |
} |
246 | |
|
247 | |
public void setOnmousemove(String onmousemove) |
248 | |
{ |
249 | 0 | getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); |
250 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEMOVE_PROP); |
251 | 0 | } |
252 | |
|
253 | |
|
254 | |
public String getOnmouseout() |
255 | |
{ |
256 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseout); |
257 | |
} |
258 | |
|
259 | |
public void setOnmouseout(String onmouseout) |
260 | |
{ |
261 | 0 | getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); |
262 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOUT_PROP); |
263 | 0 | } |
264 | |
|
265 | |
|
266 | |
public String getOnmouseover() |
267 | |
{ |
268 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseover); |
269 | |
} |
270 | |
|
271 | |
public void setOnmouseover(String onmouseover) |
272 | |
{ |
273 | 0 | getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); |
274 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEOVER_PROP); |
275 | 0 | } |
276 | |
|
277 | |
|
278 | |
public String getOnmouseup() |
279 | |
{ |
280 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseup); |
281 | |
} |
282 | |
|
283 | |
public void setOnmouseup(String onmouseup) |
284 | |
{ |
285 | 0 | getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); |
286 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ONMOUSEUP_PROP); |
287 | 0 | } |
288 | |
|
289 | |
|
290 | |
public String getDir() |
291 | |
{ |
292 | 0 | return (String) getStateHelper().eval(PropertyKeys.dir); |
293 | |
} |
294 | |
|
295 | |
public void setDir(String dir) |
296 | |
{ |
297 | 0 | getStateHelper().put(PropertyKeys.dir, dir ); |
298 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP); |
299 | 0 | } |
300 | |
|
301 | |
|
302 | |
public String getLang() |
303 | |
{ |
304 | 0 | return (String) getStateHelper().eval(PropertyKeys.lang); |
305 | |
} |
306 | |
|
307 | |
public void setLang(String lang) |
308 | |
{ |
309 | 0 | getStateHelper().put(PropertyKeys.lang, lang ); |
310 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP); |
311 | 0 | } |
312 | |
|
313 | |
|
314 | |
public String getTitle() |
315 | |
{ |
316 | 0 | return (String) getStateHelper().eval(PropertyKeys.title); |
317 | |
} |
318 | |
|
319 | |
public void setTitle(String title) |
320 | |
{ |
321 | 0 | getStateHelper().put(PropertyKeys.title, title ); |
322 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP); |
323 | 0 | } |
324 | |
|
325 | |
|
326 | |
public String getCharset() |
327 | |
{ |
328 | 0 | return (String) getStateHelper().eval(PropertyKeys.charset); |
329 | |
} |
330 | |
|
331 | |
public void setCharset(String charset) |
332 | |
{ |
333 | 0 | getStateHelper().put(PropertyKeys.charset, charset ); |
334 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.CHARSET_PROP); |
335 | 0 | } |
336 | |
|
337 | |
|
338 | |
public String getCoords() |
339 | |
{ |
340 | 0 | return (String) getStateHelper().eval(PropertyKeys.coords); |
341 | |
} |
342 | |
|
343 | |
public void setCoords(String coords) |
344 | |
{ |
345 | 0 | getStateHelper().put(PropertyKeys.coords, coords ); |
346 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.COORDS_PROP); |
347 | 0 | } |
348 | |
|
349 | |
|
350 | |
public String getHreflang() |
351 | |
{ |
352 | 0 | return (String) getStateHelper().eval(PropertyKeys.hreflang); |
353 | |
} |
354 | |
|
355 | |
public void setHreflang(String hreflang) |
356 | |
{ |
357 | 0 | getStateHelper().put(PropertyKeys.hreflang, hreflang ); |
358 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.HREFLANG_PROP); |
359 | 0 | } |
360 | |
|
361 | |
|
362 | |
public String getRel() |
363 | |
{ |
364 | 0 | return (String) getStateHelper().eval(PropertyKeys.rel); |
365 | |
} |
366 | |
|
367 | |
public void setRel(String rel) |
368 | |
{ |
369 | 0 | getStateHelper().put(PropertyKeys.rel, rel ); |
370 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.REL_PROP); |
371 | 0 | } |
372 | |
|
373 | |
|
374 | |
public String getRev() |
375 | |
{ |
376 | 0 | return (String) getStateHelper().eval(PropertyKeys.rev); |
377 | |
} |
378 | |
|
379 | |
public void setRev(String rev) |
380 | |
{ |
381 | 0 | getStateHelper().put(PropertyKeys.rev, rev ); |
382 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.REV_PROP); |
383 | 0 | } |
384 | |
|
385 | |
|
386 | |
public String getShape() |
387 | |
{ |
388 | 0 | return (String) getStateHelper().eval(PropertyKeys.shape); |
389 | |
} |
390 | |
|
391 | |
public void setShape(String shape) |
392 | |
{ |
393 | 0 | getStateHelper().put(PropertyKeys.shape, shape ); |
394 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.SHAPE_PROP); |
395 | 0 | } |
396 | |
|
397 | |
|
398 | |
public String getTarget() |
399 | |
{ |
400 | 0 | return (String) getStateHelper().eval(PropertyKeys.target); |
401 | |
} |
402 | |
|
403 | |
public void setTarget(String target) |
404 | |
{ |
405 | 0 | getStateHelper().put(PropertyKeys.target, target ); |
406 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TARGET_PROP); |
407 | 0 | } |
408 | |
|
409 | |
|
410 | |
public String getType() |
411 | |
{ |
412 | 0 | return (String) getStateHelper().eval(PropertyKeys.type); |
413 | |
} |
414 | |
|
415 | |
public void setType(String type) |
416 | |
{ |
417 | 0 | getStateHelper().put(PropertyKeys.type, type ); |
418 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TYPE_PROP); |
419 | 0 | } |
420 | |
|
421 | |
|
422 | |
public boolean isDisabled() |
423 | |
{ |
424 | 0 | return (Boolean) getStateHelper().eval(PropertyKeys.disabled, false); |
425 | |
} |
426 | |
|
427 | |
public void setDisabled(boolean disabled) |
428 | |
{ |
429 | 0 | getStateHelper().put(PropertyKeys.disabled, disabled ); |
430 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DISABLED_PROP); |
431 | 0 | } |
432 | |
|
433 | |
public void setValueBinding(String name, ValueBinding binding) |
434 | |
{ |
435 | 0 | super.setValueBinding(name, binding); |
436 | 0 | _CommonPropertyConstants.markProperty(this, name); |
437 | 0 | } |
438 | |
|
439 | |
public void setValueExpression(String name, ValueExpression expression) |
440 | |
{ |
441 | 0 | super.setValueExpression(name, expression); |
442 | 0 | _CommonPropertyConstants.markProperty(this, name); |
443 | 0 | } |
444 | |
|
445 | 0 | protected enum PropertyKeys |
446 | |
{ |
447 | 0 | style |
448 | 0 | , styleClass |
449 | 0 | , tabindex |
450 | 0 | , onblur |
451 | 0 | , onfocus |
452 | 0 | , accesskey |
453 | 0 | , role |
454 | 0 | , onclick |
455 | 0 | , ondblclick |
456 | 0 | , onkeydown |
457 | 0 | , onkeypress |
458 | 0 | , onkeyup |
459 | 0 | , onmousedown |
460 | 0 | , onmousemove |
461 | 0 | , onmouseout |
462 | 0 | , onmouseover |
463 | 0 | , onmouseup |
464 | 0 | , dir |
465 | 0 | , lang |
466 | 0 | , title |
467 | 0 | , charset |
468 | 0 | , coords |
469 | 0 | , hreflang |
470 | 0 | , rel |
471 | 0 | , rev |
472 | 0 | , shape |
473 | 0 | , target |
474 | 0 | , type |
475 | 0 | , disabled |
476 | |
} |
477 | |
|
478 | |
} |