Ext


Go Back   Ext JS Forums > Ext GWT Community Forums (2.x) > Gxt: User Extensions and Plugins

Reply
 
Thread Tools
  #1  
Old 10-28-2009, 12:32 AM
mrfr0g mrfr0g is offline
Ext User
 
Join Date: Oct 2008
Posts: 3
mrfr0g is on a distinguished road
Default WizardPanel

In my search for a good Wizard dialog, I found one here at...

http://www.extjs.com/forum/showthread.php?t=38644

Unfortunately it didn't work well... or at all with the latest versions of Ext GWT and GWT. So I cleaned up the errors, and adjusted the class to extend the ContentPanel instead of the Window.

I take no credit for the original idea, or coding, all I did was make it work for gwt 2.x.

http://e-d20.com/java/WizardPanel.zip

Installation Instructions:

Add the jar file to your build path.
Modify your gwt.xml file, and add the inherited module.

<inherits name='ext.ux.wizard.WizardPanel'/>
10/28/09
I also added three methods to the WizardPanel

WizardPanel()
Empty constructor, if you don't want to add cards right away, you can now do that.

addCard(WizardCard card)
Allows you to add individual cards to the WizardPanel

setCards(ArrayList<WizardCard> cards)
Allows you to set the card list.

Example;

WizardPanel wp = new WizardPanel();
ArrayList<WizardCard> cards = new ArrayList<WizardCard>();
cards.add(new WizardCard("Card 1"));
cards.add(new WizardCard("Card 2"));
cards.add(new WizardCard("Card 3"));

wp.setCards(cards);

RootPanel.get().add(wp);
10/28/09
Added a new listener to the WizardCard. It listens for the card show event. You can set the listener by invoking the setCardShowListener method.
setCardShowListener(Listener<BaseEvent> l)

Last edited by mrfr0g; 10-28-2009 at 01:56 PM.. Reason: New methods
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 06:40 AM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.