1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
package org.apache.myfaces.shared_impl.taglib.html; |
20 | |
|
21 | |
import org.apache.myfaces.shared_impl.renderkit.JSFAttr; |
22 | |
|
23 | |
import javax.faces.component.UIComponent; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | 0 | public abstract class HtmlMessageTagBase |
31 | |
extends org.apache.myfaces.shared_impl.taglib.html.HtmlComponentTagBase |
32 | |
{ |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
private String _for; |
45 | |
private String _showSummary; |
46 | |
private String _showDetail; |
47 | |
|
48 | |
|
49 | |
private String _infoClass; |
50 | |
private String _infoStyle; |
51 | |
private String _warnClass; |
52 | |
private String _warnStyle; |
53 | |
private String _errorClass; |
54 | |
private String _errorStyle; |
55 | |
private String _fatalClass; |
56 | |
private String _fatalStyle; |
57 | |
private String _tooltip; |
58 | |
|
59 | |
public void release() { |
60 | 0 | super.release(); |
61 | 0 | _for=null; |
62 | 0 | _showSummary=null; |
63 | 0 | _showDetail=null; |
64 | 0 | _infoClass=null; |
65 | 0 | _infoStyle=null; |
66 | 0 | _warnClass=null; |
67 | 0 | _warnStyle=null; |
68 | 0 | _errorClass=null; |
69 | 0 | _errorStyle=null; |
70 | 0 | _fatalClass=null; |
71 | 0 | _fatalStyle=null; |
72 | 0 | _tooltip=null; |
73 | 0 | } |
74 | |
|
75 | |
protected void setProperties(UIComponent component) |
76 | |
{ |
77 | 0 | super.setProperties(component); |
78 | |
|
79 | 0 | setStringProperty(component, JSFAttr.FOR_ATTR, _for); |
80 | 0 | setBooleanProperty(component, JSFAttr.SHOW_SUMMARY_ATTR, _showSummary); |
81 | 0 | setBooleanProperty(component, JSFAttr.SHOW_DETAIL_ATTR, _showDetail); |
82 | |
|
83 | 0 | setStringProperty(component, JSFAttr.INFO_CLASS_ATTR, _infoClass); |
84 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.INFO_STYLE_ATTR, _infoStyle); |
85 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.WARN_CLASS_ATTR, _warnClass); |
86 | 0 | setStringProperty(component, JSFAttr.WARN_STYLE_ATTR, _warnStyle); |
87 | 0 | setStringProperty(component, JSFAttr.ERROR_CLASS_ATTR, _errorClass); |
88 | 0 | setStringProperty(component, JSFAttr.ERROR_STYLE_ATTR, _errorStyle); |
89 | 0 | setStringProperty(component, JSFAttr.FATAL_CLASS_ATTR, _fatalClass); |
90 | 0 | setStringProperty(component, org.apache.myfaces.shared_impl.renderkit.JSFAttr.FATAL_STYLE_ATTR, _fatalStyle); |
91 | 0 | setBooleanProperty(component, JSFAttr.TOOLTIP_ATTR, _tooltip); |
92 | 0 | } |
93 | |
|
94 | |
public void setFor(String aFor) |
95 | |
{ |
96 | 0 | _for = aFor; |
97 | 0 | } |
98 | |
|
99 | |
public String getFor() |
100 | |
{ |
101 | 0 | return _for; |
102 | |
} |
103 | |
|
104 | |
public void setShowSummary(String showSummary) |
105 | |
{ |
106 | 0 | _showSummary = showSummary; |
107 | 0 | } |
108 | |
|
109 | |
public void setShowDetail(String showDetail) |
110 | |
{ |
111 | 0 | _showDetail = showDetail; |
112 | 0 | } |
113 | |
|
114 | |
public void setErrorClass(String errorClass) |
115 | |
{ |
116 | 0 | _errorClass = errorClass; |
117 | 0 | } |
118 | |
|
119 | |
public void setErrorStyle(String errorStyle) |
120 | |
{ |
121 | 0 | _errorStyle = errorStyle; |
122 | 0 | } |
123 | |
|
124 | |
public void setFatalClass(String fatalClass) |
125 | |
{ |
126 | 0 | _fatalClass = fatalClass; |
127 | 0 | } |
128 | |
|
129 | |
public void setFatalStyle(String fatalStyle) |
130 | |
{ |
131 | 0 | _fatalStyle = fatalStyle; |
132 | 0 | } |
133 | |
|
134 | |
public void setInfoClass(String infoClass) |
135 | |
{ |
136 | 0 | _infoClass = infoClass; |
137 | 0 | } |
138 | |
|
139 | |
public void setInfoStyle(String infoStyle) |
140 | |
{ |
141 | 0 | _infoStyle = infoStyle; |
142 | 0 | } |
143 | |
|
144 | |
public void setWarnClass(String warnClass) |
145 | |
{ |
146 | 0 | _warnClass = warnClass; |
147 | 0 | } |
148 | |
|
149 | |
public void setWarnStyle(String warnStyle) |
150 | |
{ |
151 | 0 | _warnStyle = warnStyle; |
152 | 0 | } |
153 | |
|
154 | |
public void setTooltip(String tooltip) |
155 | |
{ |
156 | 0 | _tooltip = tooltip; |
157 | 0 | } |
158 | |
} |