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