Initial import.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/netcdf-basic-widgets@157542 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-10-24 18:26:49 +00:00
parent 477c65a150
commit fe31fa00b6
6 changed files with 14 additions and 7 deletions

View File

@ -133,7 +133,7 @@ public class NetCDFDataModel {
readSampleOfVariable(handler, variableData);
}
private void readSampleOfVariable(final SampleVariableDataEventHandler handler, VariableData variableData) {
private void readSampleOfVariable(final SampleVariableDataEventHandler handler, final VariableData variableData) {
NetCDFBasicWidgetServiceAsync.INSTANCE.readDataVariable(netCDFData.getNetCDFId(), variableData, true,
Constants.SAMPLE_LENGHT, new AsyncCallback<NetCDFValues>() {

View File

@ -95,7 +95,9 @@ public class DetailPanel extends SimplePanel implements NetCDFDataEventHandler {
@Override
public void onChange(ChangeEvent event) {
retrieveVariableData(variablesBox.getSelectedValue());
int index = variablesBox.getSelectedIndex();
String value = variablesBox.getValue(index);
retrieveVariableData(value);
}
});

View File

@ -37,7 +37,7 @@ public class InfoPanel extends SimplePanel implements NetCDFDataEventHandler {
private static final String HEIGHT = "350px";
private static final String WIDTH = "680px";
private static final String DATA_GRID_HEIGHT = "210px";
private static final String DATA_GRID_HEIGHT = "250px";
private static final String DATA_GRID_WIDTH = "608px";
private final NetCDFPreviewMessages messages = GWT.create(NetCDFPreviewMessages.class);

View File

@ -100,7 +100,7 @@ public class NetCDFPreviewDialog extends DialogBox implements SelectVariableEven
netCDFDataModel = new NetCDFDataModel(url);
// Create a tab panel
TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);
final TabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);
tabPanel.setAnimationDuration(1000);
tabPanel.setAnimationVertical(true);
tabPanel.getElement().getStyle().setMarginBottom(10.0, Unit.PX);

View File

@ -54,7 +54,9 @@ public class SamplePanel extends SimplePanel implements NetCDFDataEventHandler {
@Override
public void onChange(ChangeEvent event) {
sampleData.setValue("");
retrieveSample(variablesBox.getSelectedValue());
int index = variablesBox.getSelectedIndex();
String value = variablesBox.getValue(index);
retrieveSample(value);
}
});
@ -63,9 +65,12 @@ public class SamplePanel extends SimplePanel implements NetCDFDataEventHandler {
sampleFlexTable.setWidget(0, 1, variablesBox);
sampleData = new TextArea();
sampleData.setWidth("616px");
//sampleData.setWidth("616px");
sampleData.setHeight("318px");
sampleData.getElement().setPropertyString("resize", "none");
sampleData.getElement().setPropertyString("width", "616px !important");
sampleData.setReadOnly(true);
sampleFlexTable.getFlexCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);

View File

@ -7,7 +7,7 @@ package org.gcube.portlets.widgets.netcdfbasicwidgets.shared;
*
*/
public class Constants {
public static final boolean DEBUG_MODE = true;
public static final boolean DEBUG_MODE = false;
public static final boolean TEST_ENABLE = false;
public static final String DEFAULT_USER = "giancarlo.panichi";