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:
parent
3d3f0177e6
commit
6867fc9b8a
|
@ -8,6 +8,7 @@ import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundl
|
|||
import com.allen_sauer.gwt.log.client.Log;
|
||||
|
||||
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.ContentPanel;
|
||||
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
|
||||
|
@ -272,4 +273,8 @@ public class WizardCard extends BorderLayoutContainer {
|
|||
wizardWindow.hide();
|
||||
}
|
||||
|
||||
public SimpleEventBus getEventBus(){
|
||||
return wizardWindow.eventBus;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -11,8 +11,8 @@ public class WizardEntry implements EntryPoint {
|
|||
|
||||
|
||||
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());
|
||||
|
||||
wizardWindow.show();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,8 +71,13 @@ public class WizardWindow extends Window {
|
|||
* the wizard window title.
|
||||
*/
|
||||
public WizardWindow(String title) {
|
||||
this(title, new SimpleEventBus());
|
||||
|
||||
}
|
||||
|
||||
public WizardWindow(String title, SimpleEventBus eventBus) {
|
||||
super();
|
||||
this.eventBus = new SimpleEventBus();
|
||||
this.eventBus = eventBus;
|
||||
Log.info(title);
|
||||
// setModal(true);
|
||||
setResizable(WIZARRESIZABLE);
|
||||
|
|
Loading…
Reference in New Issue