Fixed hide window
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-import-widget@84398 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5b6800df0b
commit
a23bc3491f
|
@ -36,7 +36,8 @@ public class WizardWindow extends Window {
|
|||
protected final String WIZARDWIDTH = "640px";
|
||||
protected final String WIZARDHEIGHT = "480px";
|
||||
protected final boolean WIZARRESIZABLE = false;
|
||||
|
||||
protected final boolean WIZARDCOLLAPSIBLE = true;
|
||||
|
||||
protected ArrayList<WizardCard> cardStack = new ArrayList<WizardCard>();
|
||||
|
||||
protected TextButton backButton;
|
||||
|
@ -71,7 +72,7 @@ public class WizardWindow extends Window {
|
|||
Log.info(title);
|
||||
// setModal(true);
|
||||
setResizable(WIZARRESIZABLE);
|
||||
setCollapsible(true);
|
||||
setCollapsible(WIZARDCOLLAPSIBLE);
|
||||
setWidth(WIZARDWIDTH);
|
||||
setHeight(WIZARDHEIGHT);
|
||||
|
||||
|
@ -128,7 +129,6 @@ public class WizardWindow extends Window {
|
|||
backButton.addSelectHandler(selectionHandler);
|
||||
nextButton.addSelectHandler(selectionHandler);
|
||||
|
||||
closeBtnHandle();
|
||||
setWidget(container);
|
||||
}
|
||||
|
||||
|
@ -149,18 +149,15 @@ public class WizardWindow extends Window {
|
|||
protected void initTools() {
|
||||
super.initTools();
|
||||
|
||||
// we can't distinguish between hide and hide with button
|
||||
/*
|
||||
* closeBtn.removeAllListeners(); closeBtn.addListener(Events.Select,
|
||||
* new Listener<ComponentEvent>() { public void
|
||||
* handleEvent(ComponentEvent ce) { MessageBox.confirm("Confirm",
|
||||
* "Are you sure to cancel the operation?", new
|
||||
* Listener<MessageBoxEvent>() {
|
||||
*
|
||||
* @Override public void handleEvent(MessageBoxEvent be) { if
|
||||
* (be.getButtonClicked().getItemId().equals(Dialog.YES)) { hide();
|
||||
* fireAborted(); } } }); } });
|
||||
*/
|
||||
closeBtn.addSelectHandler(new SelectHandler() {
|
||||
|
||||
@Override
|
||||
public void onSelect(SelectEvent event) {
|
||||
fireAborted();
|
||||
hide();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public void addListener(WizardListener listener) {
|
||||
|
|
Loading…
Reference in New Issue