KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icesoft > faces > component > ext > HtmlPanelGroup


1 /*
2  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3  *
4  * "The contents of this file are subject to the Mozilla Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
11  * License for the specific language governing rights and limitations under
12  * the License.
13  *
14  * The Original Code is ICEfaces 1.5 open source software code, released
15  * November 5, 2006. The Initial Developer of the Original Code is ICEsoft
16  * Technologies Canada, Corp. Portions created by ICEsoft are Copyright (C)
17  * 2004-2006 ICEsoft Technologies Canada, Corp. All Rights Reserved.
18  *
19  * Contributor(s): _____________________.
20  *
21  * Alternatively, the contents of this file may be used under the terms of
22  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"
23  * License), in which case the provisions of the LGPL License are
24  * applicable instead of those above. If you wish to allow use of your
25  * version of this file only under the terms of the LGPL License and not to
26  * allow others to use your version of this file under the MPL, indicate
27  * your decision by deleting the provisions above and replace them with
28  * the notice and other provisions required by the LGPL License. If you do
29  * not delete the provisions above, a recipient may use your version of
30  * this file under either the MPL or the LGPL License."
31  *
32  */

33
34 package com.icesoft.faces.component.ext;
35
36 import com.icesoft.faces.component.CSS_DEFAULT;
37 import com.icesoft.faces.component.dragdrop.DndEvent;
38 import com.icesoft.faces.component.dragdrop.DragEvent;
39 import com.icesoft.faces.component.dragdrop.DropEvent;
40 import com.icesoft.faces.component.ext.taglib.Util;
41 import com.icesoft.faces.context.effects.CurrentStyle;
42 import com.icesoft.faces.context.effects.Effect;
43 import com.icesoft.faces.context.effects.JavascriptContext;
44
45 import javax.faces.context.FacesContext;
46 import javax.faces.el.MethodBinding;
47 import javax.faces.el.ValueBinding;
48 import javax.faces.event.AbortProcessingException;
49 import javax.faces.event.FacesEvent;
50 import javax.faces.event.PhaseId;
51
52
53 /**
54  * This is an extension of javax.faces.component.html.HtmlPanelGroup, which
55  * provides some additional behavior to this component such as: <ul> <li>changes
56  * the component's rendered state based on the authentication</li> <li>provides
57  * drag & drop mechanism</li> <li>allows to render scrollable panel</li>
58  * <li>adds effects to the component</li> <ul>
59  */

60
61 public class HtmlPanelGroup extends javax.faces.component.html.HtmlPanelGroup {
62     public static final String JavaDoc COMPONENT_TYPE =
63             "com.icesoft.faces.HtmlPanelGroup";
64     public static final String JavaDoc RENDERER_TYPE = "com.icesoft.faces.Group";
65     public static final String JavaDoc SCROLLABLE_STYLE = "overflow:auto;";
66     private static final boolean DEFAULT_VISIBLE = true;
67     private String JavaDoc renderedOnUserRole = null;
68     private String JavaDoc style = null;
69     private String JavaDoc scrollWidth = null;
70     private String JavaDoc scrollHeight = null;
71
72     private String JavaDoc draggable;
73     private MethodBinding dragListener;
74     private Object JavaDoc dragValue;
75
76     private String JavaDoc dropTarget;
77     private MethodBinding dropListener;
78     private Object JavaDoc dropValue;
79
80     private String JavaDoc dropMask;
81     private String JavaDoc dragMask;
82
83
84     private CurrentStyle currentStyle;
85     // This is needed to avoid unessisary dom updates.
86
private String JavaDoc renderedStyle;
87
88     private Effect effect;
89     private Boolean JavaDoc visible = null;
90     private String JavaDoc dragOptions;
91
92     private Effect onclickeffect;
93     private Effect ondblclickeffect;
94     private Effect onmousedowneffect;
95     private Effect onmouseupeffect;
96     private Effect onmousemoveeffect;
97     private Effect onmouseovereffect;
98     private Effect onmouseouteffect;
99
100     private Effect onkeypresseffect;
101     private Effect onkeydowneffect;
102     private Effect onkeyupeffect;
103
104     private String JavaDoc hoverclass;
105
106     /**
107      *
108      */

109     public HtmlPanelGroup() {//The following attributes should be overriden by ice:panelGroup
110
super();
111         setRendererType(RENDERER_TYPE);
112     }
113
114     public void setValueBinding(String JavaDoc s, ValueBinding vb) {
115         if (s != null && (s.indexOf("effect") != -1 ||
116                           s.indexOf("drag") != -1 || s.indexOf("drop") != -1)) {
117             // If this is an effect attribute make sure Ice Extras is included
118
JavascriptContext.includeLib(JavascriptContext.ICE_EXTRAS,
119                                          getFacesContext());
120         }
121         super.setValueBinding(s, vb);
122     }
123
124     /**
125      * <p>Set the value of the <code>renderedOnUserRole</code> property.</p>
126      */

127     public void setRenderedOnUserRole(String JavaDoc renderedOnUserRole) {
128         this.renderedOnUserRole = renderedOnUserRole;
129     }
130
131     /**
132      * <p>Return the value of the <code>renderedOnUserRole</code> property.</p>
133      */

134     public String JavaDoc getRenderedOnUserRole() {
135         if (renderedOnUserRole != null) {
136             return renderedOnUserRole;
137         }
138         ValueBinding vb = getValueBinding("renderedOnUserRole");
139         return vb != null ? (String JavaDoc) vb.getValue(getFacesContext()) : null;
140     }
141
142     /**
143      * <p>Set the value of the <code>visible</code> property.</p>
144      */

145     public void setVisible(boolean visible) {
146         this.visible = Boolean.valueOf(visible);
147     }
148
149     /**
150      * <p>Return the value of the <code>visible</code> property.</p>
151      */

152     public boolean isVisible() {
153         if (visible != null) {
154             return visible.booleanValue();
155         }
156         ValueBinding vb = getValueBinding("visible");
157         Boolean JavaDoc boolVal =
158                 vb != null ? (Boolean JavaDoc) vb.getValue(getFacesContext()) : null;
159         return boolVal != null ? boolVal.booleanValue() : DEFAULT_VISIBLE;
160     }
161
162     /**
163      * <p>Set the value of the <code>style</code> property.</p>
164      */

165     public void setStyle(String JavaDoc style) {
166         this.style = style;
167     }
168
169     /**
170      * <p>Return the value of the <code>style</code> property.</p>
171      */

172     public String JavaDoc getStyle() {
173         if (style != null) {
174             return getScrollableStyle(style);
175         }
176
177         ValueBinding vb = getValueBinding("style");
178         return vb != null ?
179                getScrollableStyle((String JavaDoc) vb.getValue(getFacesContext())) :
180                getScrollableStyle("");
181     }
182
183     /**
184      * <p>Set the value of the <code>dragOptions</code> property.</p>
185      */

186     public void setDragOptions(String JavaDoc s) {
187         this.dragOptions = s;
188     }
189
190     /**
191      * <p>Return the value of the <code>dragOptions</code> property.</p>
192      */

193     public String JavaDoc getDragOptions() {
194         if (this.dragOptions != null) {
195             return dragOptions;
196         }
197         ValueBinding vb = getValueBinding("dragOptions");
198         return vb != null ? (String JavaDoc) vb.getValue(getFacesContext()) : null;
199     }
200
201     /**
202      * <p>Set the value of the <code>scrollWidth</code> property.</p>
203      */

204     public void setScrollWidth(String JavaDoc scrollWidth) {
205         this.scrollWidth = scrollWidth;
206     }
207
208     /**
209      * <p>Return the value of the <code>scrollWidth</code> property.</p>
210      */

211     public String JavaDoc getScrollWidth() {
212         if (scrollWidth != null) {
213             return scrollWidth;
214         }
215         ValueBinding vb = getValueBinding("scrollWidth");
216         return vb != null ? (String JavaDoc) vb.getValue(getFacesContext()) : null;
217     }
218
219     /**
220      * <p>Set the value of the <code>scrollHeight</code> property.</p>
221      */

222     public void setScrollHeight(String JavaDoc scrollHeight) {
223         this.scrollHeight = scrollHeight;
224     }
225
226     /**
227      * <p>Return the value of the <code>scrollHeight</code> property.</p>
228      */

229     public String JavaDoc getScrollHeight() {
230         if (scrollHeight != null) {
231             return scrollHeight;
232         }
233         ValueBinding vb = getValueBinding("scrollHeight");
234         return vb != null ? (String JavaDoc) vb.getValue(getFacesContext()) : null;
235     }
236
237     /**
238      * <p>Return the value of the <code>rendered</code> property.</p>
239      */

240     public boolean isRendered() {
241         if (!Util.isRenderedOnUserRole(this)) {
242             return false;
243         }
244         return super.isRendered();
245     }
246
247     /**
248      * <p>Return the value of the <code>draggable</code> property.</p>
249      */

250     public String JavaDoc getDraggable() {
251         if (draggable != null) {
252             return draggable;
253         }
254         ValueBinding vb = getValueBinding("draggable");
255         return vb != null ? (String JavaDoc) vb.getValue(getFacesContext()) : null;
256     }
257
258     /**
259      * <p>Set the value of the <code>draggable</code> property.</p>
260      */

261     public void setDraggable(String JavaDoc draggable) {
262         this.draggable = draggable;
263         JavascriptContext
264                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
265     }
266
267     /**
268      * <p>Return the value of the <code>dragListener</code> property.</p>
269      */

270     public MethodBinding getDragListener() {
271         return dragListener;
272     }
273
274     /**
275      * <p>Set the value of the <code>dragListener</code> property.</p>
276      */

277     public void setDragListener(MethodBinding dragListener) {
278         this.dragListener = dragListener;
279     }
280
281     /**
282      * <p>Return the value of the <code>dragValue</code> property.</p>
283      */

284     public Object JavaDoc getDragValue() {
285         if (dragValue != null) {
286             return dragValue;
287         }
288         ValueBinding vb = getValueBinding("dragValue");
289         return vb != null ? (Object JavaDoc) vb.getValue(getFacesContext()) : null;
290     }
291
292     /**
293      * <p>Set the value of the <code>dragValue</code> property.</p>
294      */

295     public void setDragValue(Object JavaDoc dragValue) {
296         this.dragValue = dragValue;
297     }
298
299     /**
300      * <p>Return the value of the <code>dropTarget</code> property.</p>
301      */

302     public String JavaDoc getDropTarget() {
303         if (dropTarget != null) {
304             return dropTarget;
305         }
306         ValueBinding vb = getValueBinding("dropTarget");
307         return vb != null ? (String JavaDoc) vb.getValue(getFacesContext()) : null;
308     }
309
310     /**
311      * <p>Set the value of the <code>dropTarget</code> property.</p>
312      */

313     public void setDropTarget(String JavaDoc dropTarget) {
314         this.dropTarget = dropTarget;
315         JavascriptContext
316                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
317     }
318
319     /**
320      * <p>Return the value of the <code>dropListener</code> property.</p>
321      */

322     public MethodBinding getDropListener() {
323         return dropListener;
324     }
325
326     /**
327      * <p>Set the value of the <code>dropListener</code> property.</p>
328      */

329     public void setDropListener(MethodBinding dropListener) {
330         this.dropListener = dropListener;
331     }
332
333     /**
334      * <p>Return the value of the <code>dropValue</code> property.</p>
335      */

336     public Object JavaDoc getDropValue() {
337         if (dropValue != null) {
338             return dropValue;
339         }
340         ValueBinding vb = getValueBinding("dropValue");
341         return vb != null ? (Object JavaDoc) vb.getValue(getFacesContext()) : null;
342     }
343
344     /**
345      * <p>Set the value of the <code>dropValue</code> property.</p>
346      */

347     public void setDropValue(Object JavaDoc dropValue) {
348         this.dropValue = dropValue;
349     }
350
351     /**
352      * <p>Return the value of the <code>dropMask</code> property.</p>
353      */

354     public String JavaDoc getDropMask() {
355         return dropMask;
356     }
357
358     /**
359      * <p>Set the value of the <code>dropMask</code> property.</p>
360      */

361     public void setDropMask(String JavaDoc dropMask) {
362         this.dropMask = dropMask;
363     }
364
365     /**
366      * <p>Return the value of the <code>dragMask</code> property.</p>
367      */

368     public String JavaDoc getDragMask() {
369         return dragMask;
370     }
371
372     /**
373      * <p>Set the value of the <code>dragMask</code> property.</p>
374      */

375     public void setDragMask(String JavaDoc dragMask) {
376         this.dragMask = dragMask;
377     }
378
379     /**
380      * <p>Return the value of the <code>effect</code> property.</p>
381      */

382     public Effect getEffect() {
383         if (effect != null) {
384             return effect;
385         }
386         ValueBinding vb = getValueBinding("effect");
387         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
388     }
389
390     /**
391      * <p>Set the value of the <code>effect</code> property.</p>
392      */

393     public void setEffect(Effect effect) {
394         this.effect = effect;
395         JavascriptContext
396                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
397     }
398
399
400     /**
401      * <p>Return the value of the <code>onclickeffect</code> property.</p>
402      */

403     public Effect getOnclickeffect() {
404         if (onclickeffect != null) {
405             return onclickeffect;
406         }
407         ValueBinding vb = getValueBinding("onclickeffect");
408
409         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
410     }
411
412     /**
413      * <p>Set the value of the <code>onclickeffect</code> property.</p>
414      */

415     public void setOnclickeffect(Effect onclickeffect) {
416         this.onclickeffect = onclickeffect;
417         JavascriptContext
418                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
419     }
420
421     /**
422      * <p>Return the value of the <code>ondblclickeffect</code> property.</p>
423      */

424     public Effect getOndblclickeffect() {
425         if (ondblclickeffect != null) {
426             return ondblclickeffect;
427         }
428         ValueBinding vb = getValueBinding("ondblclickeffect");
429
430         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
431     }
432
433     /**
434      * <p>Set the value of the <code>ondblclickeffect</code> property.</p>
435      */

436     public void setOndblclickeffect(Effect ondblclickeffect) {
437         this.ondblclickeffect = ondblclickeffect;
438         JavascriptContext
439                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
440     }
441
442     /**
443      * <p>Return the value of the <code>onmousedowneffect</code> property.</p>
444      */

445     public Effect getOnmousedowneffect() {
446         if (onmousedowneffect != null) {
447             return onmousedowneffect;
448         }
449         ValueBinding vb = getValueBinding("onmousedowneffect");
450
451         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
452     }
453
454     /**
455      * <p>Set the value of the <code>onmousedowneffect</code> property.</p>
456      */

457     public void setOnmousedowneffect(Effect onmousedowneffect) {
458         this.onmousedowneffect = onmousedowneffect;
459         JavascriptContext
460                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
461     }
462
463     /**
464      * <p>Return the value of the <code>onmouseupeffect</code> property.</p>
465      */

466     public Effect getOnmouseupeffect() {
467         if (onmouseupeffect != null) {
468             return onmouseupeffect;
469         }
470         ValueBinding vb = getValueBinding("onmouseupeffect");
471
472         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
473     }
474
475     /**
476      * <p>Set the value of the <code>onmouseupeffect</code> property.</p>
477      */

478     public void setOnmouseupeffect(Effect onmouseupeffect) {
479         this.onmouseupeffect = onmouseupeffect;
480         JavascriptContext
481                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
482     }
483
484     /**
485      * <p>Return the value of the <code>onmousemoveeffect</code> property.</p>
486      */

487     public Effect getOnmousemoveeffect() {
488         if (onmousemoveeffect != null) {
489             return onmousemoveeffect;
490         }
491         ValueBinding vb = getValueBinding("onmousemoveeffect");
492
493         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
494     }
495
496     /**
497      * <p>Set the value of the <code>onmousemoveeffect</code> property.</p>
498      */

499     public void setOnmousemoveeffect(Effect onmousemoveeffect) {
500         this.onmousemoveeffect = onmousemoveeffect;
501         JavascriptContext
502                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
503     }
504
505     /**
506      * <p>Return the value of the <code>onmouseovereffect</code> property.</p>
507      */

508     public Effect getOnmouseovereffect() {
509         if (onmouseovereffect != null) {
510             return onmouseovereffect;
511         }
512         ValueBinding vb = getValueBinding("onmouseovereffect");
513
514         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
515     }
516
517     /**
518      * <p>Set the value of the <code>onmouseovereffect</code> property.</p>
519      */

520     public void setOnmouseovereffect(Effect onmouseovereffect) {
521         this.onmouseovereffect = onmouseovereffect;
522         JavascriptContext
523                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
524     }
525
526     /**
527      * <p>Return the value of the <code>onmouseouteffect</code> property.</p>
528      */

529     public Effect getOnmouseouteffect() {
530         if (onmouseouteffect != null) {
531             return onmouseouteffect;
532         }
533         ValueBinding vb = getValueBinding("onmouseouteffect");
534
535         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
536     }
537
538     /**
539      * <p>Set the value of the <code>onmouseouteffect</code> property.</p>
540      */

541     public void setOnmouseouteffect(Effect onmouseouteffect) {
542         this.onmouseouteffect = onmouseouteffect;
543         JavascriptContext
544                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
545     }
546
547
548     /**
549      * <p>Return the value of the <code>onkeypresseffect</code> property.</p>
550      */

551     public Effect getOnkeypresseffect() {
552         if (onkeypresseffect != null) {
553             return onkeypresseffect;
554         }
555         ValueBinding vb = getValueBinding("onkeypresseffect");
556
557         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
558     }
559
560     /**
561      * <p>Set the value of the <code>onkeypresseffect</code> property.</p>
562      */

563     public void setOnkeypresseffect(Effect onkeypresseffect) {
564         this.onkeypresseffect = onkeypresseffect;
565         JavascriptContext
566                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
567     }
568
569     /**
570      * <p>Return the value of the <code>onkeydowneffect</code> property.</p>
571      */

572     public Effect getOnkeydowneffect() {
573         if (onkeydowneffect != null) {
574             return onkeydowneffect;
575         }
576         ValueBinding vb = getValueBinding("onkeydowneffect");
577
578         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
579     }
580
581     /**
582      * <p>Set the value of the <code>onkeydowneffect</code> property.</p>
583      */

584     public void setOnkeydowneffect(Effect onkeydowneffect) {
585         this.onkeydowneffect = onkeydowneffect;
586         JavascriptContext
587                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
588     }
589
590
591     /**
592      * <p>Return the value of the <code>onkeyupeffect</code> property.</p>
593      */

594     public Effect getOnkeyupeffect() {
595         if (onkeyupeffect != null) {
596             return onkeyupeffect;
597         }
598         ValueBinding vb = getValueBinding("onkeyupeffect");
599
600         return vb != null ? (Effect) vb.getValue(getFacesContext()) : null;
601     }
602
603     /**
604      * <p>Set the value of the <code>onkeyupeffect</code> property.</p>
605      */

606     public void setOnkeyupeffect(Effect onkeyupeffect) {
607         this.onkeyupeffect = onkeyupeffect;
608         JavascriptContext
609                 .includeLib(JavascriptContext.ICE_EXTRAS, getFacesContext());
610     }
611
612
613     /**
614      * <p>Gets the state of the instance as a <code>Serializable</code>
615      * Object.</p>
616      */

617     public Object JavaDoc saveState(FacesContext context) {
618         Object JavaDoc values[] = new Object JavaDoc[29];
619         values[0] = super.saveState(context);
620         values[1] = renderedOnUserRole;
621         values[2] = style;
622         values[3] = scrollWidth;
623         values[4] = scrollHeight;
624         values[6] = dragListener;
625         values[7] = dragValue;
626         values[8] = dropTarget;
627         values[9] = dropListener;
628         values[10] = dropValue;
629         values[11] = dragMask;
630         values[12] = dropMask;
631         values[13] = effect;
632         values[14] = onclickeffect;
633         values[15] = ondblclickeffect;
634         values[16] = onmousedowneffect;
635         values[17] = onmouseupeffect;
636         values[18] = onmousemoveeffect;
637         values[19] = onmouseovereffect;
638         values[20] = onmouseouteffect;
639         values[24] = onkeypresseffect;
640         values[25] = onkeydowneffect;
641         values[26] = onkeyupeffect;
642         values[27] = currentStyle;
643         values[28] = visible;
644         return values;
645
646     }
647
648     /**
649      * <p>Perform any processing required to restore the state from the entries
650      * in the state Object.</p>
651      */

652     public void restoreState(FacesContext context, Object JavaDoc state) {
653         Object JavaDoc values[] = (Object JavaDoc[]) state;
654         super.restoreState(context, values[0]);
655         renderedOnUserRole = (String JavaDoc) values[1];
656         state = values[2];
657         scrollWidth = (String JavaDoc) values[3];
658         scrollHeight = (String JavaDoc) values[4];
659         draggable = (String JavaDoc) values[5];
660         dragListener = (MethodBinding) values[6];
661         dragValue = values[7];
662         dropTarget = (String JavaDoc) values[8];
663         dropListener = (MethodBinding) values[9];
664         dropValue = values[10];
665         dragMask = (String JavaDoc) values[11];
666         dropMask = (String JavaDoc) values[12];
667         effect = (Effect) values[13];
668         onclickeffect = (Effect) values[14];
669         ondblclickeffect = (Effect) values[15];
670         onmousedowneffect = (Effect) values[16];
671         onmouseupeffect = (Effect) values[17];
672         onmousemoveeffect = (Effect) values[18];
673         onmouseovereffect = (Effect) values[19];
674         onmouseouteffect = (Effect) values[20];
675         onkeypresseffect = (Effect) values[24];
676         onkeydowneffect = (Effect) values[25];
677         onkeyupeffect = (Effect) values[26];
678         currentStyle = (CurrentStyle) values[27];
679         visible = (Boolean JavaDoc) values[28];
680     }
681
682     /**
683      * <p>Return the given _style String as the <code>scrollableStyle</code> property.</p>
684      * @param _style
685      * @return String
686      */

687     private String JavaDoc getScrollableStyle(String JavaDoc _style) {
688         return _style;
689     }
690
691     /* (non-Javadoc)
692      * @see javax.faces.component.UIComponent#broadcast(javax.faces.event.FacesEvent)
693      */

694     public void broadcast(FacesEvent event)
695             throws AbortProcessingException {
696         super.broadcast(event);
697
698         if (event instanceof DragEvent && dragListener != null) {
699             Object JavaDoc[] oa = {(DragEvent) event};
700             dragListener.invoke(getFacesContext(), oa);
701         }
702         if (event instanceof DropEvent && dropListener != null) {
703             Object JavaDoc[] oa = {(DropEvent) event};
704             dropListener.invoke(getFacesContext(), oa);
705         }
706     }
707
708     /* (non-Javadoc)
709      * @see javax.faces.component.UIComponent#queueEvent(javax.faces.event.FacesEvent)
710      */

711     public void queueEvent(FacesEvent event) {
712         if (event instanceof DndEvent) {
713             event.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
714         }
715         super.queueEvent(event);
716     }
717
718     /**
719      * <p>Return the value of the <code>currentStyle</code> property.</p>
720      */

721     public CurrentStyle getCurrentStyle() {
722         return currentStyle;
723     }
724
725     /**
726      * <p>Set the value of the <code>currentStyle</code> property.</p>
727      */

728     public void setCurrentStyle(CurrentStyle currentStyle) {
729         this.currentStyle = currentStyle;
730     }
731
732     /**
733      * <p>Return the value of the <code>renderedStyle</code> property.</p>
734      */

735     public String JavaDoc getRenderedStyle() {
736         return renderedStyle;
737     }
738
739     /**
740      * <p>Set the value of the <code>renderedStyle</code> property.</p>
741      */

742     public void setRenderedStyle(String JavaDoc renderedStyle) {
743         this.renderedStyle = renderedStyle;
744     }
745
746     public String JavaDoc getHoverclass() {
747         return hoverclass;
748     }
749
750     public void setHoverclass(String JavaDoc hoverclass) {
751         this.hoverclass = hoverclass;
752     }
753
754     /**
755      * <p>Return the value of the <code>styleClass</code> property.</p>
756      */

757     public String JavaDoc getStyleClass() {
758         return Util.getQualifiedStyleClass(this,
759                     super.getStyleClass(),
760                     CSS_DEFAULT.PANEL_GROUP_DEFAULT_STYLE_CLASS,
761                     "styleClass");
762     }
763
764 }
765
766
Popular Tags