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 HtmlHead extends javax.faces.component.UIOutput |
33 | |
{ |
34 | |
|
35 | |
static public final String COMPONENT_FAMILY = |
36 | |
"javax.faces.Output"; |
37 | |
static public final String COMPONENT_TYPE = |
38 | |
"javax.faces.OutputHead"; |
39 | |
|
40 | |
|
41 | |
public HtmlHead() |
42 | 0 | { |
43 | 0 | setRendererType("javax.faces.Head"); |
44 | 0 | } |
45 | |
|
46 | |
@Override |
47 | |
public String getFamily() |
48 | |
{ |
49 | 0 | return COMPONENT_FAMILY; |
50 | |
} |
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
|
57 | |
public String getDir() |
58 | |
{ |
59 | 0 | return (String) getStateHelper().eval(PropertyKeys.dir); |
60 | |
} |
61 | |
|
62 | |
public void setDir(String dir) |
63 | |
{ |
64 | 0 | getStateHelper().put(PropertyKeys.dir, dir ); |
65 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP); |
66 | 0 | } |
67 | |
|
68 | |
|
69 | |
public String getLang() |
70 | |
{ |
71 | 0 | return (String) getStateHelper().eval(PropertyKeys.lang); |
72 | |
} |
73 | |
|
74 | |
public void setLang(String lang) |
75 | |
{ |
76 | 0 | getStateHelper().put(PropertyKeys.lang, lang ); |
77 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP); |
78 | 0 | } |
79 | |
|
80 | |
|
81 | |
public String getXmlns() |
82 | |
{ |
83 | 0 | return (String) getStateHelper().eval(PropertyKeys.xmlns); |
84 | |
} |
85 | |
|
86 | |
public void setXmlns(String xmlns) |
87 | |
{ |
88 | 0 | getStateHelper().put(PropertyKeys.xmlns, xmlns ); |
89 | 0 | } |
90 | |
|
91 | |
public void setValueBinding(String name, ValueBinding binding) |
92 | |
{ |
93 | 0 | super.setValueBinding(name, binding); |
94 | 0 | _CommonPropertyConstants.markProperty(this, name); |
95 | 0 | } |
96 | |
|
97 | |
public void setValueExpression(String name, ValueExpression expression) |
98 | |
{ |
99 | 0 | super.setValueExpression(name, expression); |
100 | 0 | _CommonPropertyConstants.markProperty(this, name); |
101 | 0 | } |
102 | |
|
103 | 0 | protected enum PropertyKeys |
104 | |
{ |
105 | 0 | dir |
106 | 0 | , lang |
107 | 0 | , xmlns |
108 | |
} |
109 | |
|
110 | |
} |