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 HtmlOutputLink extends javax.faces.component.UIOutput |
32 | |
implements javax.faces.component.behavior.ClientBehaviorHolder |
33 | |
{ |
34 | |
|
35 | |
static public final String COMPONENT_FAMILY = |
36 | |
"javax.faces.Output"; |
37 | |
static public final String COMPONENT_TYPE = |
38 | |
"javax.faces.HtmlOutputLink"; |
39 | |
|
40 | |
|
41 | |
public HtmlOutputLink() |
42 | 0 | { |
43 | 0 | setRendererType("javax.faces.Link"); |
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 getFragment() |
79 | |
{ |
80 | 0 | return (String) getStateHelper().eval(PropertyKeys.fragment); |
81 | |
} |
82 | |
|
83 | |
public void setFragment(String fragment) |
84 | |
{ |
85 | 0 | getStateHelper().put(PropertyKeys.fragment, fragment ); |
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 getTabindex() |
112 | |
{ |
113 | 0 | return (String) getStateHelper().eval(PropertyKeys.tabindex); |
114 | |
} |
115 | |
|
116 | |
public void setTabindex(String tabindex) |
117 | |
{ |
118 | 0 | getStateHelper().put(PropertyKeys.tabindex, tabindex ); |
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 | } |
131 | |
|
132 | |
|
133 | |
public String getOnfocus() |
134 | |
{ |
135 | 0 | return (String) getStateHelper().eval(PropertyKeys.onfocus); |
136 | |
} |
137 | |
|
138 | |
public void setOnfocus(String onfocus) |
139 | |
{ |
140 | 0 | getStateHelper().put(PropertyKeys.onfocus, onfocus ); |
141 | 0 | } |
142 | |
|
143 | |
|
144 | |
public String getAccesskey() |
145 | |
{ |
146 | 0 | return (String) getStateHelper().eval(PropertyKeys.accesskey); |
147 | |
} |
148 | |
|
149 | |
public void setAccesskey(String accesskey) |
150 | |
{ |
151 | 0 | getStateHelper().put(PropertyKeys.accesskey, accesskey ); |
152 | 0 | } |
153 | |
|
154 | |
|
155 | |
public String getOnclick() |
156 | |
{ |
157 | 0 | return (String) getStateHelper().eval(PropertyKeys.onclick); |
158 | |
} |
159 | |
|
160 | |
public void setOnclick(String onclick) |
161 | |
{ |
162 | 0 | getStateHelper().put(PropertyKeys.onclick, onclick ); |
163 | 0 | } |
164 | |
|
165 | |
|
166 | |
public String getOndblclick() |
167 | |
{ |
168 | 0 | return (String) getStateHelper().eval(PropertyKeys.ondblclick); |
169 | |
} |
170 | |
|
171 | |
public void setOndblclick(String ondblclick) |
172 | |
{ |
173 | 0 | getStateHelper().put(PropertyKeys.ondblclick, ondblclick ); |
174 | 0 | } |
175 | |
|
176 | |
|
177 | |
public String getOnkeydown() |
178 | |
{ |
179 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeydown); |
180 | |
} |
181 | |
|
182 | |
public void setOnkeydown(String onkeydown) |
183 | |
{ |
184 | 0 | getStateHelper().put(PropertyKeys.onkeydown, onkeydown ); |
185 | 0 | } |
186 | |
|
187 | |
|
188 | |
public String getOnkeypress() |
189 | |
{ |
190 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeypress); |
191 | |
} |
192 | |
|
193 | |
public void setOnkeypress(String onkeypress) |
194 | |
{ |
195 | 0 | getStateHelper().put(PropertyKeys.onkeypress, onkeypress ); |
196 | 0 | } |
197 | |
|
198 | |
|
199 | |
public String getOnkeyup() |
200 | |
{ |
201 | 0 | return (String) getStateHelper().eval(PropertyKeys.onkeyup); |
202 | |
} |
203 | |
|
204 | |
public void setOnkeyup(String onkeyup) |
205 | |
{ |
206 | 0 | getStateHelper().put(PropertyKeys.onkeyup, onkeyup ); |
207 | 0 | } |
208 | |
|
209 | |
|
210 | |
public String getOnmousedown() |
211 | |
{ |
212 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousedown); |
213 | |
} |
214 | |
|
215 | |
public void setOnmousedown(String onmousedown) |
216 | |
{ |
217 | 0 | getStateHelper().put(PropertyKeys.onmousedown, onmousedown ); |
218 | 0 | } |
219 | |
|
220 | |
|
221 | |
public String getOnmousemove() |
222 | |
{ |
223 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmousemove); |
224 | |
} |
225 | |
|
226 | |
public void setOnmousemove(String onmousemove) |
227 | |
{ |
228 | 0 | getStateHelper().put(PropertyKeys.onmousemove, onmousemove ); |
229 | 0 | } |
230 | |
|
231 | |
|
232 | |
public String getOnmouseout() |
233 | |
{ |
234 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseout); |
235 | |
} |
236 | |
|
237 | |
public void setOnmouseout(String onmouseout) |
238 | |
{ |
239 | 0 | getStateHelper().put(PropertyKeys.onmouseout, onmouseout ); |
240 | 0 | } |
241 | |
|
242 | |
|
243 | |
public String getOnmouseover() |
244 | |
{ |
245 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseover); |
246 | |
} |
247 | |
|
248 | |
public void setOnmouseover(String onmouseover) |
249 | |
{ |
250 | 0 | getStateHelper().put(PropertyKeys.onmouseover, onmouseover ); |
251 | 0 | } |
252 | |
|
253 | |
|
254 | |
public String getOnmouseup() |
255 | |
{ |
256 | 0 | return (String) getStateHelper().eval(PropertyKeys.onmouseup); |
257 | |
} |
258 | |
|
259 | |
public void setOnmouseup(String onmouseup) |
260 | |
{ |
261 | 0 | getStateHelper().put(PropertyKeys.onmouseup, onmouseup ); |
262 | 0 | } |
263 | |
|
264 | |
|
265 | |
public String getDir() |
266 | |
{ |
267 | 0 | return (String) getStateHelper().eval(PropertyKeys.dir); |
268 | |
} |
269 | |
|
270 | |
public void setDir(String dir) |
271 | |
{ |
272 | 0 | getStateHelper().put(PropertyKeys.dir, dir ); |
273 | 0 | } |
274 | |
|
275 | |
|
276 | |
public String getLang() |
277 | |
{ |
278 | 0 | return (String) getStateHelper().eval(PropertyKeys.lang); |
279 | |
} |
280 | |
|
281 | |
public void setLang(String lang) |
282 | |
{ |
283 | 0 | getStateHelper().put(PropertyKeys.lang, lang ); |
284 | 0 | } |
285 | |
|
286 | |
|
287 | |
public String getTitle() |
288 | |
{ |
289 | 0 | return (String) getStateHelper().eval(PropertyKeys.title); |
290 | |
} |
291 | |
|
292 | |
public void setTitle(String title) |
293 | |
{ |
294 | 0 | getStateHelper().put(PropertyKeys.title, title ); |
295 | 0 | } |
296 | |
|
297 | |
|
298 | |
public String getCharset() |
299 | |
{ |
300 | 0 | return (String) getStateHelper().eval(PropertyKeys.charset); |
301 | |
} |
302 | |
|
303 | |
public void setCharset(String charset) |
304 | |
{ |
305 | 0 | getStateHelper().put(PropertyKeys.charset, charset ); |
306 | 0 | } |
307 | |
|
308 | |
|
309 | |
public String getCoords() |
310 | |
{ |
311 | 0 | return (String) getStateHelper().eval(PropertyKeys.coords); |
312 | |
} |
313 | |
|
314 | |
public void setCoords(String coords) |
315 | |
{ |
316 | 0 | getStateHelper().put(PropertyKeys.coords, coords ); |
317 | 0 | } |
318 | |
|
319 | |
|
320 | |
public String getHreflang() |
321 | |
{ |
322 | 0 | return (String) getStateHelper().eval(PropertyKeys.hreflang); |
323 | |
} |
324 | |
|
325 | |
public void setHreflang(String hreflang) |
326 | |
{ |
327 | 0 | getStateHelper().put(PropertyKeys.hreflang, hreflang ); |
328 | 0 | } |
329 | |
|
330 | |
|
331 | |
public String getRel() |
332 | |
{ |
333 | 0 | return (String) getStateHelper().eval(PropertyKeys.rel); |
334 | |
} |
335 | |
|
336 | |
public void setRel(String rel) |
337 | |
{ |
338 | 0 | getStateHelper().put(PropertyKeys.rel, rel ); |
339 | 0 | } |
340 | |
|
341 | |
|
342 | |
public String getRev() |
343 | |
{ |
344 | 0 | return (String) getStateHelper().eval(PropertyKeys.rev); |
345 | |
} |
346 | |
|
347 | |
public void setRev(String rev) |
348 | |
{ |
349 | 0 | getStateHelper().put(PropertyKeys.rev, rev ); |
350 | 0 | } |
351 | |
|
352 | |
|
353 | |
public String getShape() |
354 | |
{ |
355 | 0 | return (String) getStateHelper().eval(PropertyKeys.shape); |
356 | |
} |
357 | |
|
358 | |
public void setShape(String shape) |
359 | |
{ |
360 | 0 | getStateHelper().put(PropertyKeys.shape, shape ); |
361 | 0 | } |
362 | |
|
363 | |
|
364 | |
public String getTarget() |
365 | |
{ |
366 | 0 | return (String) getStateHelper().eval(PropertyKeys.target); |
367 | |
} |
368 | |
|
369 | |
public void setTarget(String target) |
370 | |
{ |
371 | 0 | getStateHelper().put(PropertyKeys.target, target ); |
372 | 0 | } |
373 | |
|
374 | |
|
375 | |
public String getType() |
376 | |
{ |
377 | 0 | return (String) getStateHelper().eval(PropertyKeys.type); |
378 | |
} |
379 | |
|
380 | |
public void setType(String type) |
381 | |
{ |
382 | 0 | getStateHelper().put(PropertyKeys.type, type ); |
383 | 0 | } |
384 | |
|
385 | |
|
386 | |
public boolean isDisabled() |
387 | |
{ |
388 | 0 | return (Boolean) getStateHelper().eval(PropertyKeys.disabled, false); |
389 | |
} |
390 | |
|
391 | |
public void setDisabled(boolean disabled) |
392 | |
{ |
393 | 0 | getStateHelper().put(PropertyKeys.disabled, disabled ); |
394 | 0 | } |
395 | |
|
396 | 0 | protected enum PropertyKeys |
397 | |
{ |
398 | 0 | fragment |
399 | 0 | , style |
400 | 0 | , styleClass |
401 | 0 | , tabindex |
402 | 0 | , onblur |
403 | 0 | , onfocus |
404 | 0 | , accesskey |
405 | 0 | , onclick |
406 | 0 | , ondblclick |
407 | 0 | , onkeydown |
408 | 0 | , onkeypress |
409 | 0 | , onkeyup |
410 | 0 | , onmousedown |
411 | 0 | , onmousemove |
412 | 0 | , onmouseout |
413 | 0 | , onmouseover |
414 | 0 | , onmouseup |
415 | 0 | , dir |
416 | 0 | , lang |
417 | 0 | , title |
418 | 0 | , charset |
419 | 0 | , coords |
420 | 0 | , hreflang |
421 | 0 | , rel |
422 | 0 | , rev |
423 | 0 | , shape |
424 | 0 | , target |
425 | 0 | , type |
426 | 0 | , disabled |
427 | |
} |
428 | |
|
429 | |
} |