View Javadoc

1   package org.rcfaces.core.component;
2   
3   import org.rcfaces.core.component.capability.IVisibilityCapability;
4   import org.rcfaces.core.internal.component.Properties;
5   import org.rcfaces.core.component.capability.ILayoutPositionCapability;
6   import java.util.Map;
7   import org.rcfaces.core.component.capability.IUserEventCapability;
8   import java.util.Collections;
9   import org.apache.commons.logging.LogFactory;
10  import org.rcfaces.core.internal.manager.IClientDataManager;
11  import javax.faces.context.FacesContext;
12  import org.rcfaces.core.internal.tools.MarginTools;
13  import org.rcfaces.core.internal.Constants;
14  import org.rcfaces.core.component.capability.IServerDataCapability;
15  import org.rcfaces.core.internal.component.CameliaBaseComponent;
16  import org.apache.commons.logging.Log;
17  import java.util.Set;
18  import org.rcfaces.core.component.capability.IInitEventCapability;
19  import org.rcfaces.core.internal.tools.ComponentTools;
20  import org.rcfaces.core.component.capability.IPositionCapability;
21  import java.lang.Object;
22  import org.rcfaces.core.component.capability.IUnlockedClientAttributesCapability;
23  import org.rcfaces.core.component.capability.IPartialRenderingCapability;
24  import org.rcfaces.core.internal.component.CameliaMessagesComponent;
25  import org.rcfaces.core.component.capability.IWAIRoleCapability;
26  import java.lang.String;
27  import org.rcfaces.core.component.capability.ILookAndFeelCapability;
28  import org.rcfaces.core.component.capability.IForegroundBackgroundColorCapability;
29  import org.rcfaces.core.component.capability.IHiddenModeCapability;
30  import org.rcfaces.core.component.capability.IPropertyChangeEventCapability;
31  import org.rcfaces.core.internal.component.IDataMapAccessor;
32  import org.rcfaces.core.internal.manager.IServerDataManager;
33  import org.rcfaces.core.component.capability.IMouseEventCapability;
34  import org.rcfaces.core.component.capability.IErrorEventCapability;
35  import javax.el.ValueExpression;
36  import org.rcfaces.core.component.capability.ISizeCapability;
37  import java.util.HashSet;
38  import org.rcfaces.core.component.capability.IClientDataCapability;
39  import org.rcfaces.core.component.capability.IHelpCapability;
40  import org.rcfaces.core.component.capability.IStyleClassCapability;
41  import java.util.Arrays;
42  import org.rcfaces.core.internal.converter.HiddenModeConverter;
43  import org.rcfaces.core.component.capability.IMarginCapability;
44  
45  /**
46   * Technical component, used as a basis for building new RCFaces components.
47   */
48  public abstract class AbstractMessagesComponent extends CameliaMessagesComponent implements 
49  	IMarginCapability,
50  	IUserEventCapability,
51  	IPositionCapability,
52  	IHelpCapability,
53  	IClientDataCapability,
54  	IPartialRenderingCapability,
55  	IStyleClassCapability,
56  	ILookAndFeelCapability,
57  	ISizeCapability,
58  	IForegroundBackgroundColorCapability,
59  	IVisibilityCapability,
60  	IErrorEventCapability,
61  	IWAIRoleCapability,
62  	ILayoutPositionCapability,
63  	IMouseEventCapability,
64  	IUnlockedClientAttributesCapability,
65  	IInitEventCapability,
66  	IPropertyChangeEventCapability,
67  	IHiddenModeCapability,
68  	IServerDataCapability,
69  	IClientDataManager,
70  	IServerDataManager {
71  
72  	private static final Log LOG = LogFactory.getLog(AbstractMessagesComponent.class);
73  
74  	protected static final Set CAMELIA_ATTRIBUTES=new HashSet(CameliaMessagesComponent.CAMELIA_ATTRIBUTES);
75  	static {
76  		CAMELIA_ATTRIBUTES.addAll(Arrays.asList(new String[] {"globalOnly","showSummary","visible","marginLeft","backgroundColor","errorListener","propertyChangeListener","helpURL","ariaLevel","height","hiddenMode","mouseOverListener","left","right","mouseOutListener","foregroundColor","waiRole","top","lookId","helpMessage","userEventListener","marginTop","styleClass","marginRight","width","partialRendering","showDetail","ariaLabel","initListener","unlockedClientAttributeNames","marginBottom","bottom","toolTipText","y","margins","x"}));
77  	}
78  
79  
80  	public Map getServerDataMap(FacesContext facesContext) {
81  
82  
83  		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(facesContext, "serverData", false);
84   		if (dataMapAccessor==null) {
85  			return Collections.EMPTY_MAP;
86  		}
87              
88  		Map map=dataMapAccessor.getDataMap(facesContext);
89  		if (Constants.READ_ONLY_COLLECTION_LOCK_ENABLED) {
90  			if (map.isEmpty()) {
91  				return Collections.EMPTY_MAP;
92  			}
93  			map=Collections.unmodifiableMap(map);
94  		}
95  		return map;
96  		
97  	}
98  
99  	public Object setServerData(String name, Object value) {
100 
101 
102 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "serverData", true);
103             
104 		return dataMapAccessor.setData(name, value, null);
105 		
106 	}
107 
108 	public Map getClientDataMap(FacesContext facesContext) {
109 
110 
111 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(facesContext, "clientData", false);
112 		if (dataMapAccessor==null) {
113 			return Collections.EMPTY_MAP;
114 		}
115             
116 		return dataMapAccessor.getDataMap(facesContext);
117 		
118 	}
119 
120 	public String setClientData(String name, String value) {
121 
122 
123 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "clientData", true);
124             
125 		return (String)dataMapAccessor.setData(name, value, null);
126 		
127 	}
128 
129 	public void setServerData(String name, ValueExpression value) {
130 
131 
132 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "serverData", true);
133             
134 		dataMapAccessor.setData(name, value, null);
135 		
136 	}
137 
138 	public String[] listClientDataKeys(FacesContext facesContext) {
139 
140 
141 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "clientData", false);
142 		if (dataMapAccessor==null) {
143 			return ComponentTools.STRING_EMPTY_ARRAY;
144 		}
145 		
146 		return dataMapAccessor.listDataKeys(facesContext);
147 		
148 	}
149 
150 	public void setClientData(String name, ValueExpression value) {
151 
152 
153 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "clientData", true);
154             
155 		dataMapAccessor.setData(name, value, null);
156 		
157 	}
158 
159 	public String getClientData(String name, FacesContext facesContext) {
160 
161 
162 		 IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "clientData", false);
163 		 if (dataMapAccessor==null) {
164 		 	return null;
165 		 }
166             
167 		return (String)dataMapAccessor.getData(name, facesContext);
168 		
169 	}
170 
171 	public Object getServerData(String name, FacesContext facesContext) {
172 
173 
174 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "serverData", false);
175 		if (dataMapAccessor==null) {
176 			return null;
177 		}
178 		
179 		return dataMapAccessor.getData(name, facesContext);
180 		
181 	}
182 
183 	public void setMargins(String margins) {
184 
185 
186 				MarginTools.setMargins(this, margins);
187 			
188 	}
189 
190 	public String[] listServerDataKeys(FacesContext facesContext) {
191 
192 
193 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "serverData", false);
194 		if (dataMapAccessor==null) {
195 			return ComponentTools.STRING_EMPTY_ARRAY;
196 		}
197 		
198 		return dataMapAccessor.listDataKeys(facesContext);
199 		
200 	}
201 
202 	public void setHiddenMode(String hiddenMode) {
203 
204 
205 			setHiddenMode(((Integer)HiddenModeConverter.SINGLETON.getAsObject(null, this, hiddenMode)).intValue());
206 		
207 	}
208 
209 	public Boolean getVisibleState(FacesContext facesContext) {
210 
211 
212 			if (engine.isPropertySetted(Properties.VISIBLE)==false) {
213 				return null;
214 			}
215 			
216 			return Boolean.valueOf(isVisible(facesContext));
217 		
218 	}
219 
220 	public java.lang.String getMarginBottom() {
221 		return getMarginBottom(null);
222 	}
223 
224 	/**
225 	 * See {@link #getMarginBottom() getMarginBottom()} for more details
226 	 */
227 	public java.lang.String getMarginBottom(javax.faces.context.FacesContext facesContext) {
228 		return engine.getStringProperty(Properties.MARGIN_BOTTOM, facesContext);
229 	}
230 
231 	/**
232 	 * Returns <code>true</code> if the attribute "marginBottom" is set.
233 	 * @return <code>true</code> if the attribute is set.
234 	 */
235 	public final boolean isMarginBottomSetted() {
236 		return engine.isPropertySetted(Properties.MARGIN_BOTTOM);
237 	}
238 
239 	public void setMarginBottom(java.lang.String marginBottom) {
240 		engine.setProperty(Properties.MARGIN_BOTTOM, marginBottom);
241 	}
242 
243 	public java.lang.String getMarginLeft() {
244 		return getMarginLeft(null);
245 	}
246 
247 	/**
248 	 * See {@link #getMarginLeft() getMarginLeft()} for more details
249 	 */
250 	public java.lang.String getMarginLeft(javax.faces.context.FacesContext facesContext) {
251 		return engine.getStringProperty(Properties.MARGIN_LEFT, facesContext);
252 	}
253 
254 	/**
255 	 * Returns <code>true</code> if the attribute "marginLeft" is set.
256 	 * @return <code>true</code> if the attribute is set.
257 	 */
258 	public final boolean isMarginLeftSetted() {
259 		return engine.isPropertySetted(Properties.MARGIN_LEFT);
260 	}
261 
262 	public void setMarginLeft(java.lang.String marginLeft) {
263 		engine.setProperty(Properties.MARGIN_LEFT, marginLeft);
264 	}
265 
266 	public java.lang.String getMarginRight() {
267 		return getMarginRight(null);
268 	}
269 
270 	/**
271 	 * See {@link #getMarginRight() getMarginRight()} for more details
272 	 */
273 	public java.lang.String getMarginRight(javax.faces.context.FacesContext facesContext) {
274 		return engine.getStringProperty(Properties.MARGIN_RIGHT, facesContext);
275 	}
276 
277 	/**
278 	 * Returns <code>true</code> if the attribute "marginRight" is set.
279 	 * @return <code>true</code> if the attribute is set.
280 	 */
281 	public final boolean isMarginRightSetted() {
282 		return engine.isPropertySetted(Properties.MARGIN_RIGHT);
283 	}
284 
285 	public void setMarginRight(java.lang.String marginRight) {
286 		engine.setProperty(Properties.MARGIN_RIGHT, marginRight);
287 	}
288 
289 	public java.lang.String getMarginTop() {
290 		return getMarginTop(null);
291 	}
292 
293 	/**
294 	 * See {@link #getMarginTop() getMarginTop()} for more details
295 	 */
296 	public java.lang.String getMarginTop(javax.faces.context.FacesContext facesContext) {
297 		return engine.getStringProperty(Properties.MARGIN_TOP, facesContext);
298 	}
299 
300 	/**
301 	 * Returns <code>true</code> if the attribute "marginTop" is set.
302 	 * @return <code>true</code> if the attribute is set.
303 	 */
304 	public final boolean isMarginTopSetted() {
305 		return engine.isPropertySetted(Properties.MARGIN_TOP);
306 	}
307 
308 	public void setMarginTop(java.lang.String marginTop) {
309 		engine.setProperty(Properties.MARGIN_TOP, marginTop);
310 	}
311 
312 	public final void addUserEventListener(org.rcfaces.core.event.IUserEventListener listener) {
313 		addFacesListener(listener);
314 	}
315 
316 	public final void removeUserEventListener(org.rcfaces.core.event.IUserEventListener listener) {
317 		removeFacesListener(listener);
318 	}
319 
320 	public final javax.faces.event.FacesListener [] listUserEventListeners() {
321 		return getFacesListeners(org.rcfaces.core.event.IUserEventListener.class);
322 	}
323 
324 	public java.lang.String getX() {
325 		return getX(null);
326 	}
327 
328 	/**
329 	 * See {@link #getX() getX()} for more details
330 	 */
331 	public java.lang.String getX(javax.faces.context.FacesContext facesContext) {
332 		return engine.getStringProperty(Properties.X, facesContext);
333 	}
334 
335 	/**
336 	 * Returns <code>true</code> if the attribute "x" is set.
337 	 * @return <code>true</code> if the attribute is set.
338 	 */
339 	public final boolean isXSetted() {
340 		return engine.isPropertySetted(Properties.X);
341 	}
342 
343 	public void setX(java.lang.String x) {
344 		engine.setProperty(Properties.X, x);
345 	}
346 
347 	public java.lang.String getY() {
348 		return getY(null);
349 	}
350 
351 	/**
352 	 * See {@link #getY() getY()} for more details
353 	 */
354 	public java.lang.String getY(javax.faces.context.FacesContext facesContext) {
355 		return engine.getStringProperty(Properties.Y, facesContext);
356 	}
357 
358 	/**
359 	 * Returns <code>true</code> if the attribute "y" is set.
360 	 * @return <code>true</code> if the attribute is set.
361 	 */
362 	public final boolean isYSetted() {
363 		return engine.isPropertySetted(Properties.Y);
364 	}
365 
366 	public void setY(java.lang.String y) {
367 		engine.setProperty(Properties.Y, y);
368 	}
369 
370 	public java.lang.String getHelpMessage() {
371 		return getHelpMessage(null);
372 	}
373 
374 	/**
375 	 * See {@link #getHelpMessage() getHelpMessage()} for more details
376 	 */
377 	public java.lang.String getHelpMessage(javax.faces.context.FacesContext facesContext) {
378 		return engine.getStringProperty(Properties.HELP_MESSAGE, facesContext);
379 	}
380 
381 	/**
382 	 * Returns <code>true</code> if the attribute "helpMessage" is set.
383 	 * @return <code>true</code> if the attribute is set.
384 	 */
385 	public final boolean isHelpMessageSetted() {
386 		return engine.isPropertySetted(Properties.HELP_MESSAGE);
387 	}
388 
389 	public void setHelpMessage(java.lang.String helpMessage) {
390 		engine.setProperty(Properties.HELP_MESSAGE, helpMessage);
391 	}
392 
393 	public java.lang.String getHelpURL() {
394 		return getHelpURL(null);
395 	}
396 
397 	/**
398 	 * See {@link #getHelpURL() getHelpURL()} for more details
399 	 */
400 	public java.lang.String getHelpURL(javax.faces.context.FacesContext facesContext) {
401 		return engine.getStringProperty(Properties.HELP_URL, facesContext);
402 	}
403 
404 	/**
405 	 * Returns <code>true</code> if the attribute "helpURL" is set.
406 	 * @return <code>true</code> if the attribute is set.
407 	 */
408 	public final boolean isHelpURLSetted() {
409 		return engine.isPropertySetted(Properties.HELP_URL);
410 	}
411 
412 	public void setHelpURL(java.lang.String helpURL) {
413 		engine.setProperty(Properties.HELP_URL, helpURL);
414 	}
415 
416 	public java.lang.String getToolTipText() {
417 		return getToolTipText(null);
418 	}
419 
420 	/**
421 	 * See {@link #getToolTipText() getToolTipText()} for more details
422 	 */
423 	public java.lang.String getToolTipText(javax.faces.context.FacesContext facesContext) {
424 		return engine.getStringProperty(Properties.TOOL_TIP_TEXT, facesContext);
425 	}
426 
427 	/**
428 	 * Returns <code>true</code> if the attribute "toolTipText" is set.
429 	 * @return <code>true</code> if the attribute is set.
430 	 */
431 	public final boolean isToolTipTextSetted() {
432 		return engine.isPropertySetted(Properties.TOOL_TIP_TEXT);
433 	}
434 
435 	public void setToolTipText(java.lang.String toolTipText) {
436 		engine.setProperty(Properties.TOOL_TIP_TEXT, toolTipText);
437 	}
438 
439 	public int getClientDataCount() {
440 
441 
442 		 IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "clientData", false);
443 		 if (dataMapAccessor==null) {
444 		 	return 0;
445 		 }
446 		 
447 		 return dataMapAccessor.getDataCount();
448 		
449 	}
450 
451 	public String[] listClientDataKeys() {
452 
453 
454 			return listClientDataKeys(null);
455 		
456 	}
457 
458 	public String removeClientData(String name) {
459 
460 
461 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "clientData", false);
462 		if (dataMapAccessor==null) {
463 			return null;
464 		}
465             
466 		return (String)dataMapAccessor.removeData(name, null);
467 		
468 	}
469 
470 	public String getClientData(String name) {
471 
472 
473 		 return getClientData(name, null);
474 		
475 	}
476 
477 	public Map getClientDataMap() {
478 
479 
480 		return getClientDataMap(null);
481 		
482 	}
483 
484 	public boolean isPartialRendering() {
485 		return isPartialRendering(null);
486 	}
487 
488 	/**
489 	 * See {@link #isPartialRendering() isPartialRendering()} for more details
490 	 */
491 	public boolean isPartialRendering(javax.faces.context.FacesContext facesContext) {
492 		return engine.getBoolProperty(Properties.PARTIAL_RENDERING, false, facesContext);
493 	}
494 
495 	/**
496 	 * Returns <code>true</code> if the attribute "partialRendering" is set.
497 	 * @return <code>true</code> if the attribute is set.
498 	 */
499 	public final boolean isPartialRenderingSetted() {
500 		return engine.isPropertySetted(Properties.PARTIAL_RENDERING);
501 	}
502 
503 	public void setPartialRendering(boolean partialRendering) {
504 		engine.setProperty(Properties.PARTIAL_RENDERING, partialRendering);
505 	}
506 
507 	public java.lang.String getStyleClass() {
508 		return getStyleClass(null);
509 	}
510 
511 	/**
512 	 * See {@link #getStyleClass() getStyleClass()} for more details
513 	 */
514 	public java.lang.String getStyleClass(javax.faces.context.FacesContext facesContext) {
515 		return engine.getStringProperty(Properties.STYLE_CLASS, facesContext);
516 	}
517 
518 	/**
519 	 * Returns <code>true</code> if the attribute "styleClass" is set.
520 	 * @return <code>true</code> if the attribute is set.
521 	 */
522 	public final boolean isStyleClassSetted() {
523 		return engine.isPropertySetted(Properties.STYLE_CLASS);
524 	}
525 
526 	public void setStyleClass(java.lang.String styleClass) {
527 		engine.setProperty(Properties.STYLE_CLASS, styleClass);
528 	}
529 
530 	public java.lang.String getLookId() {
531 		return getLookId(null);
532 	}
533 
534 	/**
535 	 * See {@link #getLookId() getLookId()} for more details
536 	 */
537 	public java.lang.String getLookId(javax.faces.context.FacesContext facesContext) {
538 		return engine.getStringProperty(Properties.LOOK_ID, facesContext);
539 	}
540 
541 	/**
542 	 * Returns <code>true</code> if the attribute "lookId" is set.
543 	 * @return <code>true</code> if the attribute is set.
544 	 */
545 	public final boolean isLookIdSetted() {
546 		return engine.isPropertySetted(Properties.LOOK_ID);
547 	}
548 
549 	public void setLookId(java.lang.String lookId) {
550 		engine.setProperty(Properties.LOOK_ID, lookId);
551 	}
552 
553 	public java.lang.String getWidth() {
554 		return getWidth(null);
555 	}
556 
557 	/**
558 	 * See {@link #getWidth() getWidth()} for more details
559 	 */
560 	public java.lang.String getWidth(javax.faces.context.FacesContext facesContext) {
561 		return engine.getStringProperty(Properties.WIDTH, facesContext);
562 	}
563 
564 	/**
565 	 * Returns <code>true</code> if the attribute "width" is set.
566 	 * @return <code>true</code> if the attribute is set.
567 	 */
568 	public final boolean isWidthSetted() {
569 		return engine.isPropertySetted(Properties.WIDTH);
570 	}
571 
572 	public void setWidth(java.lang.String width) {
573 		engine.setProperty(Properties.WIDTH, width);
574 	}
575 
576 	public java.lang.String getHeight() {
577 		return getHeight(null);
578 	}
579 
580 	/**
581 	 * See {@link #getHeight() getHeight()} for more details
582 	 */
583 	public java.lang.String getHeight(javax.faces.context.FacesContext facesContext) {
584 		return engine.getStringProperty(Properties.HEIGHT, facesContext);
585 	}
586 
587 	/**
588 	 * Returns <code>true</code> if the attribute "height" is set.
589 	 * @return <code>true</code> if the attribute is set.
590 	 */
591 	public final boolean isHeightSetted() {
592 		return engine.isPropertySetted(Properties.HEIGHT);
593 	}
594 
595 	public void setHeight(java.lang.String height) {
596 		engine.setProperty(Properties.HEIGHT, height);
597 	}
598 
599 	public java.lang.String getBackgroundColor() {
600 		return getBackgroundColor(null);
601 	}
602 
603 	/**
604 	 * See {@link #getBackgroundColor() getBackgroundColor()} for more details
605 	 */
606 	public java.lang.String getBackgroundColor(javax.faces.context.FacesContext facesContext) {
607 		return engine.getStringProperty(Properties.BACKGROUND_COLOR, facesContext);
608 	}
609 
610 	/**
611 	 * Returns <code>true</code> if the attribute "backgroundColor" is set.
612 	 * @return <code>true</code> if the attribute is set.
613 	 */
614 	public final boolean isBackgroundColorSetted() {
615 		return engine.isPropertySetted(Properties.BACKGROUND_COLOR);
616 	}
617 
618 	public void setBackgroundColor(java.lang.String backgroundColor) {
619 		engine.setProperty(Properties.BACKGROUND_COLOR, backgroundColor);
620 	}
621 
622 	public java.lang.String getForegroundColor() {
623 		return getForegroundColor(null);
624 	}
625 
626 	/**
627 	 * See {@link #getForegroundColor() getForegroundColor()} for more details
628 	 */
629 	public java.lang.String getForegroundColor(javax.faces.context.FacesContext facesContext) {
630 		return engine.getStringProperty(Properties.FOREGROUND_COLOR, facesContext);
631 	}
632 
633 	/**
634 	 * Returns <code>true</code> if the attribute "foregroundColor" is set.
635 	 * @return <code>true</code> if the attribute is set.
636 	 */
637 	public final boolean isForegroundColorSetted() {
638 		return engine.isPropertySetted(Properties.FOREGROUND_COLOR);
639 	}
640 
641 	public void setForegroundColor(java.lang.String foregroundColor) {
642 		engine.setProperty(Properties.FOREGROUND_COLOR, foregroundColor);
643 	}
644 
645 	public boolean isVisible() {
646 		return isVisible(null);
647 	}
648 
649 	/**
650 	 * See {@link #isVisible() isVisible()} for more details
651 	 */
652 	public boolean isVisible(javax.faces.context.FacesContext facesContext) {
653 		return engine.getBoolProperty(Properties.VISIBLE, true, facesContext);
654 	}
655 
656 	/**
657 	 * Returns <code>true</code> if the attribute "visible" is set.
658 	 * @return <code>true</code> if the attribute is set.
659 	 */
660 	public final boolean isVisibleSetted() {
661 		return engine.isPropertySetted(Properties.VISIBLE);
662 	}
663 
664 	public void setVisible(boolean visible) {
665 		engine.setProperty(Properties.VISIBLE, visible);
666 	}
667 
668 	public Boolean getVisibleState() {
669 
670 
671 			return getVisibleState(null);
672 		
673 	}
674 
675 	public final void addErrorListener(org.rcfaces.core.event.IErrorListener listener) {
676 		addFacesListener(listener);
677 	}
678 
679 	public final void removeErrorListener(org.rcfaces.core.event.IErrorListener listener) {
680 		removeFacesListener(listener);
681 	}
682 
683 	public final javax.faces.event.FacesListener [] listErrorListeners() {
684 		return getFacesListeners(org.rcfaces.core.event.IErrorListener.class);
685 	}
686 
687 	public java.lang.String getAriaLabel() {
688 		return getAriaLabel(null);
689 	}
690 
691 	/**
692 	 * See {@link #getAriaLabel() getAriaLabel()} for more details
693 	 */
694 	public java.lang.String getAriaLabel(javax.faces.context.FacesContext facesContext) {
695 		return engine.getStringProperty(Properties.ARIA_LABEL, facesContext);
696 	}
697 
698 	/**
699 	 * Returns <code>true</code> if the attribute "ariaLabel" is set.
700 	 * @return <code>true</code> if the attribute is set.
701 	 */
702 	public final boolean isAriaLabelSetted() {
703 		return engine.isPropertySetted(Properties.ARIA_LABEL);
704 	}
705 
706 	public void setAriaLabel(java.lang.String ariaLabel) {
707 		engine.setProperty(Properties.ARIA_LABEL, ariaLabel);
708 	}
709 
710 	public int getAriaLevel() {
711 		return getAriaLevel(null);
712 	}
713 
714 	/**
715 	 * See {@link #getAriaLevel() getAriaLevel()} for more details
716 	 */
717 	public int getAriaLevel(javax.faces.context.FacesContext facesContext) {
718 		return engine.getIntProperty(Properties.ARIA_LEVEL,0, facesContext);
719 	}
720 
721 	/**
722 	 * Returns <code>true</code> if the attribute "ariaLevel" is set.
723 	 * @return <code>true</code> if the attribute is set.
724 	 */
725 	public final boolean isAriaLevelSetted() {
726 		return engine.isPropertySetted(Properties.ARIA_LEVEL);
727 	}
728 
729 	public void setAriaLevel(int ariaLevel) {
730 		engine.setProperty(Properties.ARIA_LEVEL, ariaLevel);
731 	}
732 
733 	public java.lang.String getWaiRole() {
734 		return getWaiRole(null);
735 	}
736 
737 	/**
738 	 * See {@link #getWaiRole() getWaiRole()} for more details
739 	 */
740 	public java.lang.String getWaiRole(javax.faces.context.FacesContext facesContext) {
741 		return engine.getStringProperty(Properties.WAI_ROLE, facesContext);
742 	}
743 
744 	/**
745 	 * Returns <code>true</code> if the attribute "waiRole" is set.
746 	 * @return <code>true</code> if the attribute is set.
747 	 */
748 	public final boolean isWaiRoleSetted() {
749 		return engine.isPropertySetted(Properties.WAI_ROLE);
750 	}
751 
752 	public void setWaiRole(java.lang.String waiRole) {
753 		engine.setProperty(Properties.WAI_ROLE, waiRole);
754 	}
755 
756 	public int getBottom() {
757 		return getBottom(null);
758 	}
759 
760 	/**
761 	 * See {@link #getBottom() getBottom()} for more details
762 	 */
763 	public int getBottom(javax.faces.context.FacesContext facesContext) {
764 		return engine.getIntProperty(Properties.BOTTOM,0, facesContext);
765 	}
766 
767 	/**
768 	 * Returns <code>true</code> if the attribute "bottom" is set.
769 	 * @return <code>true</code> if the attribute is set.
770 	 */
771 	public final boolean isBottomSetted() {
772 		return engine.isPropertySetted(Properties.BOTTOM);
773 	}
774 
775 	public void setBottom(int bottom) {
776 		engine.setProperty(Properties.BOTTOM, bottom);
777 	}
778 
779 	public int getLeft() {
780 		return getLeft(null);
781 	}
782 
783 	/**
784 	 * See {@link #getLeft() getLeft()} for more details
785 	 */
786 	public int getLeft(javax.faces.context.FacesContext facesContext) {
787 		return engine.getIntProperty(Properties.LEFT,0, facesContext);
788 	}
789 
790 	/**
791 	 * Returns <code>true</code> if the attribute "left" is set.
792 	 * @return <code>true</code> if the attribute is set.
793 	 */
794 	public final boolean isLeftSetted() {
795 		return engine.isPropertySetted(Properties.LEFT);
796 	}
797 
798 	public void setLeft(int left) {
799 		engine.setProperty(Properties.LEFT, left);
800 	}
801 
802 	public int getRight() {
803 		return getRight(null);
804 	}
805 
806 	/**
807 	 * See {@link #getRight() getRight()} for more details
808 	 */
809 	public int getRight(javax.faces.context.FacesContext facesContext) {
810 		return engine.getIntProperty(Properties.RIGHT,0, facesContext);
811 	}
812 
813 	/**
814 	 * Returns <code>true</code> if the attribute "right" is set.
815 	 * @return <code>true</code> if the attribute is set.
816 	 */
817 	public final boolean isRightSetted() {
818 		return engine.isPropertySetted(Properties.RIGHT);
819 	}
820 
821 	public void setRight(int right) {
822 		engine.setProperty(Properties.RIGHT, right);
823 	}
824 
825 	public int getTop() {
826 		return getTop(null);
827 	}
828 
829 	/**
830 	 * See {@link #getTop() getTop()} for more details
831 	 */
832 	public int getTop(javax.faces.context.FacesContext facesContext) {
833 		return engine.getIntProperty(Properties.TOP,0, facesContext);
834 	}
835 
836 	/**
837 	 * Returns <code>true</code> if the attribute "top" is set.
838 	 * @return <code>true</code> if the attribute is set.
839 	 */
840 	public final boolean isTopSetted() {
841 		return engine.isPropertySetted(Properties.TOP);
842 	}
843 
844 	public void setTop(int top) {
845 		engine.setProperty(Properties.TOP, top);
846 	}
847 
848 	public final void addMouseOutListener(org.rcfaces.core.event.IMouseOutListener listener) {
849 		addFacesListener(listener);
850 	}
851 
852 	public final void removeMouseOutListener(org.rcfaces.core.event.IMouseOutListener listener) {
853 		removeFacesListener(listener);
854 	}
855 
856 	public final javax.faces.event.FacesListener [] listMouseOutListeners() {
857 		return getFacesListeners(org.rcfaces.core.event.IMouseOutListener.class);
858 	}
859 
860 	public final void addMouseOverListener(org.rcfaces.core.event.IMouseOverListener listener) {
861 		addFacesListener(listener);
862 	}
863 
864 	public final void removeMouseOverListener(org.rcfaces.core.event.IMouseOverListener listener) {
865 		removeFacesListener(listener);
866 	}
867 
868 	public final javax.faces.event.FacesListener [] listMouseOverListeners() {
869 		return getFacesListeners(org.rcfaces.core.event.IMouseOverListener.class);
870 	}
871 
872 	public java.lang.String getUnlockedClientAttributeNames() {
873 		return getUnlockedClientAttributeNames(null);
874 	}
875 
876 	/**
877 	 * See {@link #getUnlockedClientAttributeNames() getUnlockedClientAttributeNames()} for more details
878 	 */
879 	public java.lang.String getUnlockedClientAttributeNames(javax.faces.context.FacesContext facesContext) {
880 		return engine.getStringProperty(Properties.UNLOCKED_CLIENT_ATTRIBUTE_NAMES, facesContext);
881 	}
882 
883 	/**
884 	 * Returns <code>true</code> if the attribute "unlockedClientAttributeNames" is set.
885 	 * @return <code>true</code> if the attribute is set.
886 	 */
887 	public final boolean isUnlockedClientAttributeNamesSetted() {
888 		return engine.isPropertySetted(Properties.UNLOCKED_CLIENT_ATTRIBUTE_NAMES);
889 	}
890 
891 	public void setUnlockedClientAttributeNames(java.lang.String unlockedClientAttributeNames) {
892 		engine.setProperty(Properties.UNLOCKED_CLIENT_ATTRIBUTE_NAMES, unlockedClientAttributeNames);
893 	}
894 
895 	public final void addInitListener(org.rcfaces.core.event.IInitListener listener) {
896 		addFacesListener(listener);
897 	}
898 
899 	public final void removeInitListener(org.rcfaces.core.event.IInitListener listener) {
900 		removeFacesListener(listener);
901 	}
902 
903 	public final javax.faces.event.FacesListener [] listInitListeners() {
904 		return getFacesListeners(org.rcfaces.core.event.IInitListener.class);
905 	}
906 
907 	public final void addPropertyChangeListener(org.rcfaces.core.event.IPropertyChangeListener listener) {
908 		addFacesListener(listener);
909 	}
910 
911 	public final void removePropertyChangeListener(org.rcfaces.core.event.IPropertyChangeListener listener) {
912 		removeFacesListener(listener);
913 	}
914 
915 	public final javax.faces.event.FacesListener [] listPropertyChangeListeners() {
916 		return getFacesListeners(org.rcfaces.core.event.IPropertyChangeListener.class);
917 	}
918 
919 	public int getHiddenMode() {
920 		return getHiddenMode(null);
921 	}
922 
923 	/**
924 	 * See {@link #getHiddenMode() getHiddenMode()} for more details
925 	 */
926 	public int getHiddenMode(javax.faces.context.FacesContext facesContext) {
927 		return engine.getIntProperty(Properties.HIDDEN_MODE,IHiddenModeCapability.DEFAULT_HIDDEN_MODE, facesContext);
928 	}
929 
930 	/**
931 	 * Returns <code>true</code> if the attribute "hiddenMode" is set.
932 	 * @return <code>true</code> if the attribute is set.
933 	 */
934 	public final boolean isHiddenModeSetted() {
935 		return engine.isPropertySetted(Properties.HIDDEN_MODE);
936 	}
937 
938 	public void setHiddenMode(int hiddenMode) {
939 		engine.setProperty(Properties.HIDDEN_MODE, hiddenMode);
940 	}
941 
942 	public String[] listServerDataKeys() {
943 
944 
945 			return listServerDataKeys(null);
946 		
947 	}
948 
949 	public Map getServerDataMap() {
950 
951 
952 		return getServerDataMap(null);
953 		
954 	}
955 
956 	public int getServerDataCount() {
957 
958 
959 		 IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "serverData", false);
960 		 if (dataMapAccessor==null) {
961 		 	return 0;
962 		 }
963             
964 		return dataMapAccessor.getDataCount();
965 		
966 	}
967 
968 	public Object getServerData(String name) {
969 
970 
971 		 IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "serverData", false);
972 		 if (dataMapAccessor==null) {
973 		 	return null;
974 		 }
975             
976 		return dataMapAccessor.getData(name, null);
977 		
978 	}
979 
980 	public Object removeServerData(String name) {
981 
982 
983 		IDataMapAccessor dataMapAccessor=engine.getDataMapAccessor(null, "serverData", false);
984 		if (dataMapAccessor==null) {
985 		 	return null;
986 		}
987             
988 		return dataMapAccessor.removeData(name, null);
989 		
990 	}
991 
992 	protected Set getCameliaFields() {
993 		return CAMELIA_ATTRIBUTES;
994 	}
995 }