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:
parent
477c65a150
commit
fe31fa00b6
|
@ -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>() {
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue