1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.seasar.teeda.core.taglib.html; |
17 | |
|
18 | |
import javax.faces.component.UIComponent; |
19 | |
import javax.faces.component.html.HtmlOutputLink; |
20 | |
|
21 | |
import org.seasar.teeda.core.JsfConstants; |
22 | |
import org.seasar.teeda.core.taglib.UIComponentTagBase; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | 3 | public class OutputLinkTag extends UIComponentTagBase { |
28 | |
|
29 | |
public String getComponentType() { |
30 | 1 | return HtmlOutputLink.COMPONENT_TYPE; |
31 | |
} |
32 | |
|
33 | |
public String getRendererType() { |
34 | 3 | return "javax.faces.Link"; |
35 | |
} |
36 | |
|
37 | |
protected void setProperties(UIComponent component) { |
38 | 1 | super.setProperties(component); |
39 | 1 | setComponentProperty(component, JsfConstants.CHARSET_ATTR, getCharset()); |
40 | 1 | setComponentProperty(component, JsfConstants.COORDS_ATTR, getCoords()); |
41 | 1 | setComponentProperty(component, JsfConstants.HREFLANG_ATTR, |
42 | |
getHreflang()); |
43 | 1 | setComponentProperty(component, JsfConstants.REL_ATTR, getRel()); |
44 | 1 | setComponentProperty(component, JsfConstants.REV_ATTR, getRev()); |
45 | 1 | setComponentProperty(component, JsfConstants.SHAPE_ATTR, getShape()); |
46 | 1 | setComponentProperty(component, JsfConstants.TARGET_ATTR, getTarget()); |
47 | 1 | setComponentProperty(component, JsfConstants.TYPE_ATTR, getType()); |
48 | 1 | } |
49 | |
|
50 | |
} |