Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@111817 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2015-02-09 16:22:57 +00:00 committed by Giancarlo Panichi
parent d34256a3fc
commit 8630c3d289
6 changed files with 18 additions and 11 deletions

View File

@ -80,8 +80,7 @@ public class GeospatialCreateCoordinatesPanel extends FramedPanel implements
this.trId = trId; this.trId = trId;
this.gsCoordinatesType = (GeospatialCoordinatesType) requestProperties this.gsCoordinatesType = (GeospatialCoordinatesType) requestProperties
.getMap().get( .getMap().get(RequestPropertiesParameterType.Coordinates);
RequestPropertiesParameterType.Coordinates);
this.eventBus = eventBus; this.eventBus = eventBus;
this.created = false; this.created = false;
@ -123,8 +122,9 @@ public class GeospatialCreateCoordinatesPanel extends FramedPanel implements
setHeaderVisible(false); setHeaderVisible(false);
setBodyBorder(false); setBodyBorder(false);
Log.debug("Create GeospatialCreateC_SquarePanel(): [" + trId.toString() Log.debug("Create GeospatialCreateCoordinatesPanel(): ["
+ " GeospatialCoordinatesType: " + gsCoordinatesType + "]"); + trId.toString() + " GeospatialCoordinatesType: "
+ gsCoordinatesType + "]");
// Column Propierties // Column Propierties
ColumnDataPropertiesCombo propsColumnData = GWT ColumnDataPropertiesCombo propsColumnData = GWT
@ -184,13 +184,10 @@ public class GeospatialCreateCoordinatesPanel extends FramedPanel implements
comboGsCoordinatesType.setEditable(false); comboGsCoordinatesType.setEditable(false);
comboGsCoordinatesType.setTriggerAction(TriggerAction.ALL); comboGsCoordinatesType.setTriggerAction(TriggerAction.ALL);
if (gsCoordinatesType != null) {
comboGsCoordinatesType.select(gsCoordinatesType);
}
// Create // Create
createCoordinatesButton = new TextButton("Create"); createCoordinatesButton = new TextButton("Create");
createCoordinatesButton.setIcon(ResourceBundle.INSTANCE.tableType()); createCoordinatesButton.setIcon(ResourceBundle.INSTANCE
.geospatialCoordinates());
createCoordinatesButton.setIconAlign(IconAlign.RIGHT); createCoordinatesButton.setIconAlign(IconAlign.RIGHT);
createCoordinatesButton.setTitle("Create Geospatial Coordinates"); createCoordinatesButton.setTitle("Create Geospatial Coordinates");
@ -219,8 +216,12 @@ public class GeospatialCreateCoordinatesPanel extends FramedPanel implements
new Margins(10, 0, 10, 0))); new Margins(10, 0, 10, 0)));
add(vl); add(vl);
show();
if (gsCoordinatesType != null) {
comboGsCoordinatesType.setValue(gsCoordinatesType);
}
onResize();
} }
private void addHandlersForComboColumnLatitude( private void addHandlersForComboColumnLatitude(

View File

@ -4,6 +4,7 @@ package org.gcube.portlets.user.td.tablewidget.client.resources;
import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource; import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.ClientBundle.Source;
/** /**
* Resource Bundle * Resource Bundle
@ -155,5 +156,10 @@ public interface ResourceBundle extends ClientBundle {
@Source("table-type_32.png") @Source("table-type_32.png")
ImageResource tableType32(); ImageResource tableType32();
@Source("flag-green_32.png")
ImageResource geospatialCoordinates32();
@Source("flag-green.png")
ImageResource geospatialCoordinates();
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB