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 HtmlOutputFormat 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.HtmlOutputFormat"; |
39 | |
|
40 | |
|
41 | |
public HtmlOutputFormat() |
42 | 0 | { |
43 | 0 | setRendererType("javax.faces.Format"); |
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 getStyle() |
58 | |
{ |
59 | 0 | return (String) getStateHelper().eval(PropertyKeys.style); |
60 | |
} |
61 | |
|
62 | |
public void setStyle(String style) |
63 | |
{ |
64 | 0 | getStateHelper().put(PropertyKeys.style, style ); |
65 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLE_PROP); |
66 | 0 | } |
67 | |
|
68 | |
|
69 | |
public String getStyleClass() |
70 | |
{ |
71 | 0 | return (String) getStateHelper().eval(PropertyKeys.styleClass); |
72 | |
} |
73 | |
|
74 | |
public void setStyleClass(String styleClass) |
75 | |
{ |
76 | 0 | getStateHelper().put(PropertyKeys.styleClass, styleClass ); |
77 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.STYLECLASS_PROP); |
78 | 0 | } |
79 | |
|
80 | |
|
81 | |
public String getTitle() |
82 | |
{ |
83 | 0 | return (String) getStateHelper().eval(PropertyKeys.title); |
84 | |
} |
85 | |
|
86 | |
public void setTitle(String title) |
87 | |
{ |
88 | 0 | getStateHelper().put(PropertyKeys.title, title ); |
89 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.TITLE_PROP); |
90 | 0 | } |
91 | |
|
92 | |
|
93 | |
public boolean isEscape() |
94 | |
{ |
95 | 0 | return (Boolean) getStateHelper().eval(PropertyKeys.escape, true); |
96 | |
} |
97 | |
|
98 | |
public void setEscape(boolean escape) |
99 | |
{ |
100 | 0 | getStateHelper().put(PropertyKeys.escape, escape ); |
101 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ESCAPE_PROP); |
102 | 0 | } |
103 | |
|
104 | |
|
105 | |
public String getRole() |
106 | |
{ |
107 | 0 | return (String) getStateHelper().eval(PropertyKeys.role); |
108 | |
} |
109 | |
|
110 | |
public void setRole(String role) |
111 | |
{ |
112 | 0 | getStateHelper().put(PropertyKeys.role, role ); |
113 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.ROLE_PROP); |
114 | 0 | } |
115 | |
|
116 | |
|
117 | |
public String getDir() |
118 | |
{ |
119 | 0 | return (String) getStateHelper().eval(PropertyKeys.dir); |
120 | |
} |
121 | |
|
122 | |
public void setDir(String dir) |
123 | |
{ |
124 | 0 | getStateHelper().put(PropertyKeys.dir, dir ); |
125 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.DIR_PROP); |
126 | 0 | } |
127 | |
|
128 | |
|
129 | |
public String getLang() |
130 | |
{ |
131 | 0 | return (String) getStateHelper().eval(PropertyKeys.lang); |
132 | |
} |
133 | |
|
134 | |
public void setLang(String lang) |
135 | |
{ |
136 | 0 | getStateHelper().put(PropertyKeys.lang, lang ); |
137 | 0 | _CommonPropertyConstants.markProperty(this, _CommonPropertyConstants.LANG_PROP); |
138 | 0 | } |
139 | |
|
140 | |
public void setValueBinding(String name, ValueBinding binding) |
141 | |
{ |
142 | 0 | super.setValueBinding(name, binding); |
143 | 0 | _CommonPropertyConstants.markProperty(this, name); |
144 | 0 | } |
145 | |
|
146 | |
public void setValueExpression(String name, ValueExpression expression) |
147 | |
{ |
148 | 0 | super.setValueExpression(name, expression); |
149 | 0 | _CommonPropertyConstants.markProperty(this, name); |
150 | 0 | } |
151 | |
|
152 | 0 | protected enum PropertyKeys |
153 | |
{ |
154 | 0 | style |
155 | 0 | , styleClass |
156 | 0 | , title |
157 | 0 | , escape |
158 | 0 | , role |
159 | 0 | , dir |
160 | 0 | , lang |
161 | |
} |
162 | |
|
163 | |
} |