Fixed wizard navigation

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-map-widget@101455 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-11-04 17:33:31 +00:00 committed by Giancarlo Panichi
parent 1e456a2985
commit b8863b21f5
4 changed files with 22 additions and 7 deletions

View File

@ -240,6 +240,7 @@ public class MapWidgetDetailCard extends WizardCard {
getWizardWindow().setPreviousButtonCommand(sayPreviousCard);
getWizardWindow().setEnableNextButton(true);
getWizardWindow().setEnableBackButton(true);
}
@ -251,7 +252,7 @@ public class MapWidgetDetailCard extends WizardCard {
public void onHide(HideEvent event) {
getWizardWindow().setEnableNextButton(true);
getWizardWindow().setEnableBackButton(false);
getWizardWindow().setEnableBackButton(true);
}
};

View File

@ -25,13 +25,13 @@ import com.sencha.gxt.widget.core.client.form.FormPanel;
public class MapWidgetGeometrySelectionCard extends WizardCard {
protected MapCreationSession mapCreationSession;
private MapWidgetGeometrySelectionCard thisCard;
private GeometrySelectionGridPanel geometrySelectionGridPanel;
public MapWidgetGeometrySelectionCard(
final MapCreationSession mapCreationSession) {
super("Geometry Selection", "");
this.thisCard=this;
if (mapCreationSession == null) {
Log.error("MapCreationSession is null");
}
@ -79,7 +79,21 @@ public class MapWidgetGeometrySelectionCard extends WizardCard {
};
Command sayPreviousCard = new Command() {
public void execute() {
try {
getWizardWindow().previousCard();
getWizardWindow().removeCard(thisCard);
Log.info("Remove MapWidgetGeometrySelectionCard");
} catch (Exception e) {
Log.error("sayPreviousCard :" + e.getLocalizedMessage());
}
}
};
getWizardWindow().setPreviousButtonCommand(sayPreviousCard);
getWizardWindow().setNextButtonCommand(sayNextCard);
setEnableBackButton(true);
setEnableNextButton(true);
}

View File

@ -33,7 +33,7 @@ import com.sencha.gxt.widget.core.client.grid.Grid;
public class GeometrySelectionGridPanel extends ContentPanel implements
HasSelectionHandlers<ColumnData> {
//private static final String GRID_WIDTH ="524px";
private static final String GRID_HEIGHT = "320px";
private static final String GRID_HEIGHT = "340px";
protected static final ColumnDataProperties props = GWT
.create(ColumnDataProperties.class);
protected final CheckBoxSelectionModel<ColumnData> sm;