Initial import.

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/netcdf-basic-widgets@157543 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-10-24 19:19:58 +00:00
parent fe31fa00b6
commit bc7291c931
8 changed files with 36 additions and 17 deletions

View File

@ -63,4 +63,13 @@
.combo-geometry-type {
width: 406px !important;
}
}
/* Sample Data Text Area */
.sample-data-text-area {
height: 318px;
width: 616px !important;
resize: none;
}

View File

@ -39,5 +39,8 @@ public interface NetCDFBasicCSS extends CssResource {
@ClassName("combo-geometry-type")
public String getComboGeometryType();
@ClassName("sample-data-text-area")
public String getSampleDataTextArea();
}

View File

@ -15,7 +15,7 @@ public interface NetCDFBasicResources extends ClientBundle {
public static final NetCDFBasicResources INSTANCE = GWT.create(NetCDFBasicResources.class);
@Source("NetCDFBasic.css")
NetCDFBasicCSS olBasicCSS();
NetCDFBasicCSS netCDFBasicCSS();
@Source("tool-button-close_20.png")
ImageResource toolButtonClose20();

View File

@ -36,18 +36,18 @@ public class WaitDialog extends DialogBox {
private void init(String title, String text, int zIndex) {
GWT.log("WaitDialog:[title=" + title + ", text=" + text + "]");
NetCDFBasicResources.INSTANCE.olBasicCSS().ensureInjected();
NetCDFBasicResources.INSTANCE.netCDFBasicCSS().ensureInjected();
setModal(true);
setGlassEnabled(true);
initHandler();
setText(title);
msg = new HTML("<div class='"
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getProgressBarContainer()
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getProgressBarContainer()
+ "'>" + "<div class='"
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getProgressBar()
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getProgressBar()
+ "' style='width:50%'></div>" + "<div class='"
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getProgressBarText() + "'>"
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getProgressBarText() + "'>"
+ text + "</div>" + "</div><br>");
msg.setWidth(msgWidth);

View File

@ -75,7 +75,7 @@ public class NetCDFPreviewDialog extends DialogBox implements SelectVariableEven
private void initWindow() {
GWT.log(messages.dialogTitle());
NetCDFBasicResources.INSTANCE.olBasicCSS().ensureInjected();
NetCDFBasicResources.INSTANCE.netCDFBasicCSS().ensureInjected();
setModal(true);
setGlassEnabled(true);
setAnimationEnabled(true);
@ -247,9 +247,9 @@ public class NetCDFPreviewDialog extends DialogBox implements SelectVariableEven
// close button image html
dialogTopRight.setInnerHTML("<div class='"
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getDialogToolButtonText() + "'>" + "<img src='"
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getDialogToolButtonText() + "'>" + "<img src='"
+ NetCDFBasicResources.INSTANCE.toolButtonClose20().getSafeUri().asString() + "' class='"
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getDialogToolButtonIcon() + "' /></div>");
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getDialogToolButtonIcon() + "' /></div>");
// set the event target
closeEventTarget = dialogTopRight.getChild(0).getChild(0);

View File

@ -7,6 +7,7 @@ import org.gcube.portlets.widgets.netcdfbasicwidgets.client.event.NetCDFDataEven
import org.gcube.portlets.widgets.netcdfbasicwidgets.client.event.SampleVariableDataEvent;
import org.gcube.portlets.widgets.netcdfbasicwidgets.client.event.SampleVariableDataEvent.SampleVariableDataEventHandler;
import org.gcube.portlets.widgets.netcdfbasicwidgets.client.model.NetCDFDataModel;
import org.gcube.portlets.widgets.netcdfbasicwidgets.client.resource.NetCDFBasicResources;
import org.gcube.portlets.widgets.netcdfbasicwidgets.shared.netcdf.VariableData;
import com.google.gwt.event.dom.client.ChangeEvent;
@ -65,14 +66,11 @@ public class SamplePanel extends SimplePanel implements NetCDFDataEventHandler {
sampleFlexTable.setWidget(0, 1, variablesBox);
sampleData = new TextArea();
//sampleData.setWidth("616px");
sampleData.setHeight("318px");
sampleData.getElement().setPropertyString("resize", "none");
sampleData.getElement().setPropertyString("width", "616px !important");
sampleData.getElement().setId("netcdfSampleTextArea");
sampleData.setStylePrimaryName(NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getSampleDataTextArea());
sampleData.setReadOnly(true);
sampleFlexTable.getFlexCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);
sampleFlexTable.setHTML(1, 0, "Sample:");
sampleFlexTable.setWidget(1, 1, sampleData);

View File

@ -48,7 +48,7 @@ public class VariablesPanel extends SimplePanel implements NetCDFDataEventHandle
private void create() {
netCDFDataModel.addNetCDFDataEventHandler(this);
setStyleName(NetCDFBasicResources.INSTANCE.olBasicCSS().getAreaSelectionPanel());
setStyleName(NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getAreaSelectionPanel());
createGrid();

View File

@ -63,4 +63,13 @@
.combo-geometry-type {
width: 406px !important;
}
}
/* Sample Data Text Area */
.sample-data-text-area {
height: 318px;
width: 616px !important;
resize: none;
}