Added Example

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-wizard-widget@85575 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-11-18 09:04:09 +00:00 committed by Giancarlo Panichi
parent 3d3f0177e6
commit 6867fc9b8a
3 changed files with 13 additions and 3 deletions

View File

@ -8,6 +8,7 @@ import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundl
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HTML;
import com.google.web.bindery.event.shared.SimpleEventBus;
import com.sencha.gxt.widget.core.client.Component; import com.sencha.gxt.widget.core.client.Component;
import com.sencha.gxt.widget.core.client.ContentPanel; import com.sencha.gxt.widget.core.client.ContentPanel;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer; import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
@ -271,5 +272,9 @@ public class WizardCard extends BorderLayoutContainer {
{ {
wizardWindow.hide(); wizardWindow.hide();
} }
public SimpleEventBus getEventBus(){
return wizardWindow.eventBus;
}
} }

View File

@ -11,8 +11,8 @@ public class WizardEntry implements EntryPoint {
WizardWindow wizardWindow = new WizardWindow("TestWindow"); WizardWindow wizardWindow = new WizardWindow("TestWindow");
wizardWindow.add(new SimpleWizardCard("Test Title","Test Footer", "This is a simple card test"));
Log.info("Window Id: " + wizardWindow.getId()); Log.info("Window Id: " + wizardWindow.getId());
wizardWindow.show();
} }
} }

View File

@ -71,8 +71,13 @@ public class WizardWindow extends Window {
* the wizard window title. * the wizard window title.
*/ */
public WizardWindow(String title) { public WizardWindow(String title) {
this(title, new SimpleEventBus());
}
public WizardWindow(String title, SimpleEventBus eventBus) {
super(); super();
this.eventBus = new SimpleEventBus(); this.eventBus = eventBus;
Log.info(title); Log.info(title);
// setModal(true); // setModal(true);
setResizable(WIZARRESIZABLE); setResizable(WIZARRESIZABLE);