diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/geospatial/GeospatialCreateCoordinatesPanel.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/geospatial/GeospatialCreateCoordinatesPanel.java index 7737b5c..5b0ce63 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/geospatial/GeospatialCreateCoordinatesPanel.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/geospatial/GeospatialCreateCoordinatesPanel.java @@ -80,8 +80,7 @@ public class GeospatialCreateCoordinatesPanel extends FramedPanel implements this.trId = trId; this.gsCoordinatesType = (GeospatialCoordinatesType) requestProperties - .getMap().get( - RequestPropertiesParameterType.Coordinates); + .getMap().get(RequestPropertiesParameterType.Coordinates); this.eventBus = eventBus; this.created = false; @@ -123,8 +122,9 @@ public class GeospatialCreateCoordinatesPanel extends FramedPanel implements setHeaderVisible(false); setBodyBorder(false); - Log.debug("Create GeospatialCreateC_SquarePanel(): [" + trId.toString() - + " GeospatialCoordinatesType: " + gsCoordinatesType + "]"); + Log.debug("Create GeospatialCreateCoordinatesPanel(): [" + + trId.toString() + " GeospatialCoordinatesType: " + + gsCoordinatesType + "]"); // Column Propierties ColumnDataPropertiesCombo propsColumnData = GWT @@ -184,13 +184,10 @@ public class GeospatialCreateCoordinatesPanel extends FramedPanel implements comboGsCoordinatesType.setEditable(false); comboGsCoordinatesType.setTriggerAction(TriggerAction.ALL); - if (gsCoordinatesType != null) { - comboGsCoordinatesType.select(gsCoordinatesType); - } - // Create createCoordinatesButton = new TextButton("Create"); - createCoordinatesButton.setIcon(ResourceBundle.INSTANCE.tableType()); + createCoordinatesButton.setIcon(ResourceBundle.INSTANCE + .geospatialCoordinates()); createCoordinatesButton.setIconAlign(IconAlign.RIGHT); createCoordinatesButton.setTitle("Create Geospatial Coordinates"); @@ -219,8 +216,12 @@ public class GeospatialCreateCoordinatesPanel extends FramedPanel implements new Margins(10, 0, 10, 0))); add(vl); - show(); + if (gsCoordinatesType != null) { + comboGsCoordinatesType.setValue(gsCoordinatesType); + } + + onResize(); } private void addHandlersForComboColumnLatitude( diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/ResourceBundle.java b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/ResourceBundle.java index 13a10b5..3c59a3a 100644 --- a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/ResourceBundle.java +++ b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/ResourceBundle.java @@ -4,6 +4,7 @@ package org.gcube.portlets.user.td.tablewidget.client.resources; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ImageResource; +import com.google.gwt.resources.client.ClientBundle.Source; /** * Resource Bundle @@ -155,5 +156,10 @@ public interface ResourceBundle extends ClientBundle { @Source("table-type_32.png") ImageResource tableType32(); - + @Source("flag-green_32.png") + ImageResource geospatialCoordinates32(); + + @Source("flag-green.png") + ImageResource geospatialCoordinates(); + } \ No newline at end of file diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green.png b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green.png new file mode 100644 index 0000000..7cddd37 Binary files /dev/null and b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green.png differ diff --git a/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green_32.png b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green_32.png new file mode 100644 index 0000000..9b551e7 Binary files /dev/null and b/src/main/java/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green_32.png differ diff --git a/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green.png b/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green.png new file mode 100644 index 0000000..7cddd37 Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green.png differ diff --git a/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green_32.png b/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green_32.png new file mode 100644 index 0000000..9b551e7 Binary files /dev/null and b/src/main/resources/org/gcube/portlets/user/td/tablewidget/client/resources/flag-green_32.png differ