1 package org.rcfaces.core.component;
2
3 import org.rcfaces.core.internal.component.Properties;
4 import org.rcfaces.core.component.familly.IContentAccessors;
5 import org.rcfaces.core.component.capability.IImageCapability;
6 import org.rcfaces.core.component.capability.ILookAndFeelCapability;
7 import org.rcfaces.core.component.capability.IWAIRoleCapability;
8 import org.apache.commons.logging.LogFactory;
9 import javax.faces.context.FacesContext;
10 import org.rcfaces.core.internal.tools.ImageAccessorTools;
11 import org.rcfaces.core.component.capability.ISizeCapability;
12 import org.rcfaces.core.internal.component.CameliaBaseComponent;
13 import javax.el.ValueExpression;
14 import java.util.HashSet;
15 import org.apache.commons.logging.Log;
16 import org.rcfaces.core.component.capability.IStyleClassCapability;
17 import java.util.Set;
18 import java.util.Arrays;
19 import org.rcfaces.core.internal.capability.IImageAccessorsCapability;
20 import org.rcfaces.core.component.capability.ITextCapability;
21
22 public class SubmitWaitComponent extends CameliaBaseComponent implements
23 IImageCapability,
24 ITextCapability,
25 IStyleClassCapability,
26 ISizeCapability,
27 IWAIRoleCapability,
28 ILookAndFeelCapability,
29 IImageAccessorsCapability {
30
31 private static final Log LOG = LogFactory.getLog(SubmitWaitComponent.class);
32
33 public static final String COMPONENT_TYPE="org.rcfaces.core.submitWait";
34
35 protected static final Set CAMELIA_ATTRIBUTES=new HashSet(CameliaBaseComponent.CAMELIA_ATTRIBUTES);
36 static {
37 CAMELIA_ATTRIBUTES.addAll(Arrays.asList(new String[] {"ariaLevel","lookId","text","height","width","styleClass","backgroundMode","ariaLabel","waiRole","imageURL"}));
38 }
39
40 public SubmitWaitComponent() {
41 setRendererType(COMPONENT_TYPE);
42 }
43
44 public SubmitWaitComponent(String componentId) {
45 this();
46 setId(componentId);
47 }
48
49 public IContentAccessors getImageAccessors(FacesContext facesContext) {
50
51
52 return ImageAccessorTools.createImageAccessors(facesContext, this, engine);
53
54 }
55
56 public java.lang.String getImageURL() {
57 return getImageURL(null);
58 }
59
60
61
62
63 public java.lang.String getImageURL(javax.faces.context.FacesContext facesContext) {
64 return engine.getStringProperty(Properties.IMAGE_URL, facesContext);
65 }
66
67
68
69
70
71 public final boolean isImageURLSetted() {
72 return engine.isPropertySetted(Properties.IMAGE_URL);
73 }
74
75 public void setImageURL(java.lang.String imageURL) {
76 engine.setProperty(Properties.IMAGE_URL, imageURL);
77 }
78
79 public IContentAccessors getImageAccessors() {
80
81
82 return getImageAccessors(null);
83
84 }
85
86 public java.lang.String getText() {
87 return getText(null);
88 }
89
90
91
92
93 public java.lang.String getText(javax.faces.context.FacesContext facesContext) {
94 return engine.getStringProperty(Properties.TEXT, facesContext);
95 }
96
97
98
99
100
101 public final boolean isTextSetted() {
102 return engine.isPropertySetted(Properties.TEXT);
103 }
104
105 public void setText(java.lang.String text) {
106 engine.setProperty(Properties.TEXT, text);
107 }
108
109 public java.lang.String getStyleClass() {
110 return getStyleClass(null);
111 }
112
113
114
115
116 public java.lang.String getStyleClass(javax.faces.context.FacesContext facesContext) {
117 return engine.getStringProperty(Properties.STYLE_CLASS, facesContext);
118 }
119
120
121
122
123
124 public final boolean isStyleClassSetted() {
125 return engine.isPropertySetted(Properties.STYLE_CLASS);
126 }
127
128 public void setStyleClass(java.lang.String styleClass) {
129 engine.setProperty(Properties.STYLE_CLASS, styleClass);
130 }
131
132 public java.lang.String getWidth() {
133 return getWidth(null);
134 }
135
136
137
138
139 public java.lang.String getWidth(javax.faces.context.FacesContext facesContext) {
140 return engine.getStringProperty(Properties.WIDTH, facesContext);
141 }
142
143
144
145
146
147 public final boolean isWidthSetted() {
148 return engine.isPropertySetted(Properties.WIDTH);
149 }
150
151 public void setWidth(java.lang.String width) {
152 engine.setProperty(Properties.WIDTH, width);
153 }
154
155 public java.lang.String getHeight() {
156 return getHeight(null);
157 }
158
159
160
161
162 public java.lang.String getHeight(javax.faces.context.FacesContext facesContext) {
163 return engine.getStringProperty(Properties.HEIGHT, facesContext);
164 }
165
166
167
168
169
170 public final boolean isHeightSetted() {
171 return engine.isPropertySetted(Properties.HEIGHT);
172 }
173
174 public void setHeight(java.lang.String height) {
175 engine.setProperty(Properties.HEIGHT, height);
176 }
177
178 public java.lang.String getAriaLabel() {
179 return getAriaLabel(null);
180 }
181
182
183
184
185 public java.lang.String getAriaLabel(javax.faces.context.FacesContext facesContext) {
186 return engine.getStringProperty(Properties.ARIA_LABEL, facesContext);
187 }
188
189
190
191
192
193 public final boolean isAriaLabelSetted() {
194 return engine.isPropertySetted(Properties.ARIA_LABEL);
195 }
196
197 public void setAriaLabel(java.lang.String ariaLabel) {
198 engine.setProperty(Properties.ARIA_LABEL, ariaLabel);
199 }
200
201 public int getAriaLevel() {
202 return getAriaLevel(null);
203 }
204
205
206
207
208 public int getAriaLevel(javax.faces.context.FacesContext facesContext) {
209 return engine.getIntProperty(Properties.ARIA_LEVEL,0, facesContext);
210 }
211
212
213
214
215
216 public final boolean isAriaLevelSetted() {
217 return engine.isPropertySetted(Properties.ARIA_LEVEL);
218 }
219
220 public void setAriaLevel(int ariaLevel) {
221 engine.setProperty(Properties.ARIA_LEVEL, ariaLevel);
222 }
223
224 public java.lang.String getWaiRole() {
225 return getWaiRole(null);
226 }
227
228
229
230
231 public java.lang.String getWaiRole(javax.faces.context.FacesContext facesContext) {
232 return engine.getStringProperty(Properties.WAI_ROLE, facesContext);
233 }
234
235
236
237
238
239 public final boolean isWaiRoleSetted() {
240 return engine.isPropertySetted(Properties.WAI_ROLE);
241 }
242
243 public void setWaiRole(java.lang.String waiRole) {
244 engine.setProperty(Properties.WAI_ROLE, waiRole);
245 }
246
247 public java.lang.String getLookId() {
248 return getLookId(null);
249 }
250
251
252
253
254 public java.lang.String getLookId(javax.faces.context.FacesContext facesContext) {
255 return engine.getStringProperty(Properties.LOOK_ID, facesContext);
256 }
257
258
259
260
261
262 public final boolean isLookIdSetted() {
263 return engine.isPropertySetted(Properties.LOOK_ID);
264 }
265
266 public void setLookId(java.lang.String lookId) {
267 engine.setProperty(Properties.LOOK_ID, lookId);
268 }
269
270 public String getBackgroundMode() {
271 return getBackgroundMode(null);
272 }
273
274 public String getBackgroundMode(javax.faces.context.FacesContext facesContext) {
275 return engine.getStringProperty(Properties.BACKGROUND_MODE, facesContext);
276 }
277
278 public void setBackgroundMode(String backgroundMode) {
279 engine.setProperty(Properties.BACKGROUND_MODE, backgroundMode);
280 }
281
282
283
284
285
286 public boolean isBackgroundModeSetted() {
287 return engine.isPropertySetted(Properties.BACKGROUND_MODE);
288 }
289
290 protected Set getCameliaFields() {
291 return CAMELIA_ATTRIBUTES;
292 }
293 }