diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionCard.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionCard.java index 008ff5a..af7b22b 100644 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionCard.java +++ b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionCard.java @@ -24,7 +24,9 @@ import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; * */ public class TabResourcesSelectionCard extends WizardCard { - + protected final String GRIDWIDTH = "538px"; + protected final String GRIDHEIGHT = "430px"; + protected TabResourcesSelectionCard thisCard; protected TDOpenSession tdOpenSession; protected TabResourcesSelectionPanel tabResourcesSelectionPanel; @@ -36,8 +38,11 @@ public class TabResourcesSelectionCard extends WizardCard { this.tdOpenSession = tdOpenSession; thisCard = this; - this.tabResourcesSelectionPanel = new TabResourcesSelectionPanel(res); + tabResourcesSelectionPanel = new TabResourcesSelectionPanel(res); + tabResourcesSelectionPanel.setResize(false); + tabResourcesSelectionPanel.setSize(GRIDWIDTH, GRIDHEIGHT); + tabResourcesSelectionPanel .addSelectionHandler(new SelectionHandler() { diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java index bb40915..810c1b7 100644 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/openwidget/client/TabResourcesSelectionPanel.java @@ -56,6 +56,7 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar; */ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelectionHandlers { + private static final TabResourcesProperties properties = GWT.create(TabResourcesProperties.class); protected static final ColumnConfig nameColumn = new ColumnConfig(properties.name(), 50, "Name"); @@ -155,6 +156,7 @@ public class TabResourcesSelectionPanel extends ContentPanel implements HasSelec grid.setLoadMask(true); grid.setColumnReordering(true); + SelectHandler sh = new SelectHandler() { @Override public void onSelect(SelectEvent event) { diff --git a/src/main/java/org/gcube/portlets/user/td/openwidget/client/general/WizardWindow.java b/src/main/java/org/gcube/portlets/user/td/openwidget/client/general/WizardWindow.java index 0392028..edaccaa 100644 --- a/src/main/java/org/gcube/portlets/user/td/openwidget/client/general/WizardWindow.java +++ b/src/main/java/org/gcube/portlets/user/td/openwidget/client/general/WizardWindow.java @@ -34,7 +34,11 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar; * */ public class WizardWindow extends Window { - + + protected final String WIZARDWIDTH="640px"; + protected final String WIZARDHEIGHT="480px"; + protected final boolean WIZARRESIZABLE=false; + protected ArrayList cardStack = new ArrayList(); protected TextButton backButton; @@ -68,7 +72,7 @@ public class WizardWindow extends Window { protected boolean finish=true; /** * Create a new Wizard Window with the specified title. - * @param title the wizard window title. + * @param title the wizard window title.height */ public WizardWindow(String title) { @@ -77,8 +81,10 @@ public class WizardWindow extends Window { this.eventBus= new SimpleEventBus(); Log.info(title); //setModal(true); - setResizable(true); - setCollapsible(true); + setResizable(WIZARRESIZABLE); + setCollapsible(false); + setWidth(WIZARDWIDTH); + setHeight(WIZARDHEIGHT); listeners = new ArrayList();