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 HtmlOutputText extends javax.faces.component.UIOutput |
32 | |
{ |
33 | |
|
34 | |
static public final String COMPONENT_FAMILY = |
35 | |
"javax.faces.Output"; |
36 | |
static public final String COMPONENT_TYPE = |
37 | |
"javax.faces.HtmlOutputText"; |
38 | |
|
39 | |
|
40 | |
public HtmlOutputText() |
41 | 0 | { |
42 | 0 | setRendererType("javax.faces.Text"); |
43 | 0 | } |
44 | |
|
45 | |
@Override |
46 | |
public String getFamily() |
47 | |
{ |
48 | 0 | return COMPONENT_FAMILY; |
49 | |
} |
50 | |
|
51 | |
|
52 | |
|
53 | |
|
54 | |
|
55 | |
|
56 | |
public String getStyle() |
57 | |
{ |
58 | 0 | return (String) getStateHelper().eval(PropertyKeys.style); |
59 | |
} |
60 | |
|
61 | |
public void setStyle(String style) |
62 | |
{ |
63 | 0 | getStateHelper().put(PropertyKeys.style, style ); |
64 | 0 | } |
65 | |
|
66 | |
|
67 | |
public String getStyleClass() |
68 | |
{ |
69 | 0 | return (String) getStateHelper().eval(PropertyKeys.styleClass); |
70 | |
} |
71 | |
|
72 | |
public void setStyleClass(String styleClass) |
73 | |
{ |
74 | 0 | getStateHelper().put(PropertyKeys.styleClass, styleClass ); |
75 | 0 | } |
76 | |
|
77 | |
|
78 | |
public boolean isEscape() |
79 | |
{ |
80 | 0 | return (Boolean) getStateHelper().eval(PropertyKeys.escape, true); |
81 | |
} |
82 | |
|
83 | |
public void setEscape(boolean escape) |
84 | |
{ |
85 | 0 | getStateHelper().put(PropertyKeys.escape, escape ); |
86 | 0 | } |
87 | |
|
88 | |
|
89 | |
public String getDir() |
90 | |
{ |
91 | 0 | return (String) getStateHelper().eval(PropertyKeys.dir); |
92 | |
} |
93 | |
|
94 | |
public void setDir(String dir) |
95 | |
{ |
96 | 0 | getStateHelper().put(PropertyKeys.dir, dir ); |
97 | 0 | } |
98 | |
|
99 | |
|
100 | |
public String getLang() |
101 | |
{ |
102 | 0 | return (String) getStateHelper().eval(PropertyKeys.lang); |
103 | |
} |
104 | |
|
105 | |
public void setLang(String lang) |
106 | |
{ |
107 | 0 | getStateHelper().put(PropertyKeys.lang, lang ); |
108 | 0 | } |
109 | |
|
110 | |
|
111 | |
public String getTitle() |
112 | |
{ |
113 | 0 | return (String) getStateHelper().eval(PropertyKeys.title); |
114 | |
} |
115 | |
|
116 | |
public void setTitle(String title) |
117 | |
{ |
118 | 0 | getStateHelper().put(PropertyKeys.title, title ); |
119 | 0 | } |
120 | |
|
121 | 0 | protected enum PropertyKeys |
122 | |
{ |
123 | 0 | style |
124 | 0 | , styleClass |
125 | 0 | , escape |
126 | 0 | , dir |
127 | 0 | , lang |
128 | 0 | , title |
129 | |
} |
130 | |
|
131 | |
} |