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 HtmlDoctype 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.OutputDoctype"; |
39 | |
|
40 | |
|
41 | |
public HtmlDoctype() |
42 | 0 | { |
43 | 0 | setRendererType("javax.faces.Doctype"); |
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 getPublic() |
58 | |
{ |
59 | 0 | return (String) getStateHelper().eval(PropertyKeys.publicVal); |
60 | |
} |
61 | |
|
62 | |
public void setPublic(String publicParam) |
63 | |
{ |
64 | 0 | getStateHelper().put(PropertyKeys.publicVal, publicParam ); |
65 | 0 | } |
66 | |
|
67 | |
|
68 | |
public String getRootElement() |
69 | |
{ |
70 | 0 | return (String) getStateHelper().eval(PropertyKeys.rootElement); |
71 | |
} |
72 | |
|
73 | |
public void setRootElement(String rootElement) |
74 | |
{ |
75 | 0 | getStateHelper().put(PropertyKeys.rootElement, rootElement ); |
76 | 0 | } |
77 | |
|
78 | |
|
79 | |
public String getSystem() |
80 | |
{ |
81 | 0 | return (String) getStateHelper().eval(PropertyKeys.system); |
82 | |
} |
83 | |
|
84 | |
public void setSystem(String system) |
85 | |
{ |
86 | 0 | getStateHelper().put(PropertyKeys.system, system ); |
87 | 0 | } |
88 | |
|
89 | |
|
90 | 0 | protected enum PropertyKeys |
91 | |
{ |
92 | 0 | publicVal("public") |
93 | 0 | , rootElement |
94 | 0 | , system |
95 | |
; |
96 | |
String c; |
97 | |
|
98 | |
PropertyKeys() |
99 | 0 | { |
100 | 0 | } |
101 | |
|
102 | |
|
103 | |
PropertyKeys(String c) |
104 | 0 | { |
105 | 0 | this.c = c; |
106 | 0 | } |
107 | |
|
108 | |
public String toString() |
109 | |
{ |
110 | 0 | return ((this.c != null) ? this.c : super.toString()); |
111 | |
} |
112 | |
} |
113 | |
|
114 | |
} |