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:
parent
fe31fa00b6
commit
bc7291c931
|
@ -63,4 +63,13 @@
|
||||||
|
|
||||||
.combo-geometry-type {
|
.combo-geometry-type {
|
||||||
width: 406px !important;
|
width: 406px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sample Data Text Area */
|
||||||
|
.sample-data-text-area {
|
||||||
|
height: 318px;
|
||||||
|
width: 616px !important;
|
||||||
|
resize: none;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,5 +39,8 @@ public interface NetCDFBasicCSS extends CssResource {
|
||||||
|
|
||||||
@ClassName("combo-geometry-type")
|
@ClassName("combo-geometry-type")
|
||||||
public String getComboGeometryType();
|
public String getComboGeometryType();
|
||||||
|
|
||||||
|
@ClassName("sample-data-text-area")
|
||||||
|
public String getSampleDataTextArea();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ public interface NetCDFBasicResources extends ClientBundle {
|
||||||
public static final NetCDFBasicResources INSTANCE = GWT.create(NetCDFBasicResources.class);
|
public static final NetCDFBasicResources INSTANCE = GWT.create(NetCDFBasicResources.class);
|
||||||
|
|
||||||
@Source("NetCDFBasic.css")
|
@Source("NetCDFBasic.css")
|
||||||
NetCDFBasicCSS olBasicCSS();
|
NetCDFBasicCSS netCDFBasicCSS();
|
||||||
|
|
||||||
@Source("tool-button-close_20.png")
|
@Source("tool-button-close_20.png")
|
||||||
ImageResource toolButtonClose20();
|
ImageResource toolButtonClose20();
|
||||||
|
|
|
@ -36,18 +36,18 @@ public class WaitDialog extends DialogBox {
|
||||||
|
|
||||||
private void init(String title, String text, int zIndex) {
|
private void init(String title, String text, int zIndex) {
|
||||||
GWT.log("WaitDialog:[title=" + title + ", text=" + text + "]");
|
GWT.log("WaitDialog:[title=" + title + ", text=" + text + "]");
|
||||||
NetCDFBasicResources.INSTANCE.olBasicCSS().ensureInjected();
|
NetCDFBasicResources.INSTANCE.netCDFBasicCSS().ensureInjected();
|
||||||
setModal(true);
|
setModal(true);
|
||||||
setGlassEnabled(true);
|
setGlassEnabled(true);
|
||||||
initHandler();
|
initHandler();
|
||||||
setText(title);
|
setText(title);
|
||||||
|
|
||||||
msg = new HTML("<div class='"
|
msg = new HTML("<div class='"
|
||||||
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getProgressBarContainer()
|
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getProgressBarContainer()
|
||||||
+ "'>" + "<div class='"
|
+ "'>" + "<div class='"
|
||||||
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getProgressBar()
|
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getProgressBar()
|
||||||
+ "' style='width:50%'></div>" + "<div class='"
|
+ "' style='width:50%'></div>" + "<div class='"
|
||||||
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getProgressBarText() + "'>"
|
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getProgressBarText() + "'>"
|
||||||
+ text + "</div>" + "</div><br>");
|
+ text + "</div>" + "</div><br>");
|
||||||
|
|
||||||
msg.setWidth(msgWidth);
|
msg.setWidth(msgWidth);
|
||||||
|
|
|
@ -75,7 +75,7 @@ public class NetCDFPreviewDialog extends DialogBox implements SelectVariableEven
|
||||||
|
|
||||||
private void initWindow() {
|
private void initWindow() {
|
||||||
GWT.log(messages.dialogTitle());
|
GWT.log(messages.dialogTitle());
|
||||||
NetCDFBasicResources.INSTANCE.olBasicCSS().ensureInjected();
|
NetCDFBasicResources.INSTANCE.netCDFBasicCSS().ensureInjected();
|
||||||
setModal(true);
|
setModal(true);
|
||||||
setGlassEnabled(true);
|
setGlassEnabled(true);
|
||||||
setAnimationEnabled(true);
|
setAnimationEnabled(true);
|
||||||
|
@ -247,9 +247,9 @@ public class NetCDFPreviewDialog extends DialogBox implements SelectVariableEven
|
||||||
|
|
||||||
// close button image html
|
// close button image html
|
||||||
dialogTopRight.setInnerHTML("<div class='"
|
dialogTopRight.setInnerHTML("<div class='"
|
||||||
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getDialogToolButtonText() + "'>" + "<img src='"
|
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getDialogToolButtonText() + "'>" + "<img src='"
|
||||||
+ NetCDFBasicResources.INSTANCE.toolButtonClose20().getSafeUri().asString() + "' class='"
|
+ NetCDFBasicResources.INSTANCE.toolButtonClose20().getSafeUri().asString() + "' class='"
|
||||||
+ NetCDFBasicResources.INSTANCE.olBasicCSS().getDialogToolButtonIcon() + "' /></div>");
|
+ NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getDialogToolButtonIcon() + "' /></div>");
|
||||||
|
|
||||||
// set the event target
|
// set the event target
|
||||||
closeEventTarget = dialogTopRight.getChild(0).getChild(0);
|
closeEventTarget = dialogTopRight.getChild(0).getChild(0);
|
||||||
|
|
|
@ -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;
|
||||||
import org.gcube.portlets.widgets.netcdfbasicwidgets.client.event.SampleVariableDataEvent.SampleVariableDataEventHandler;
|
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.model.NetCDFDataModel;
|
||||||
|
import org.gcube.portlets.widgets.netcdfbasicwidgets.client.resource.NetCDFBasicResources;
|
||||||
import org.gcube.portlets.widgets.netcdfbasicwidgets.shared.netcdf.VariableData;
|
import org.gcube.portlets.widgets.netcdfbasicwidgets.shared.netcdf.VariableData;
|
||||||
|
|
||||||
import com.google.gwt.event.dom.client.ChangeEvent;
|
import com.google.gwt.event.dom.client.ChangeEvent;
|
||||||
|
@ -65,14 +66,11 @@ public class SamplePanel extends SimplePanel implements NetCDFDataEventHandler {
|
||||||
sampleFlexTable.setWidget(0, 1, variablesBox);
|
sampleFlexTable.setWidget(0, 1, variablesBox);
|
||||||
|
|
||||||
sampleData = new TextArea();
|
sampleData = new TextArea();
|
||||||
//sampleData.setWidth("616px");
|
sampleData.getElement().setId("netcdfSampleTextArea");
|
||||||
sampleData.setHeight("318px");
|
sampleData.setStylePrimaryName(NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getSampleDataTextArea());
|
||||||
sampleData.getElement().setPropertyString("resize", "none");
|
|
||||||
sampleData.getElement().setPropertyString("width", "616px !important");
|
|
||||||
|
|
||||||
|
|
||||||
sampleData.setReadOnly(true);
|
sampleData.setReadOnly(true);
|
||||||
|
|
||||||
|
|
||||||
sampleFlexTable.getFlexCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);
|
sampleFlexTable.getFlexCellFormatter().setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);
|
||||||
sampleFlexTable.setHTML(1, 0, "Sample:");
|
sampleFlexTable.setHTML(1, 0, "Sample:");
|
||||||
sampleFlexTable.setWidget(1, 1, sampleData);
|
sampleFlexTable.setWidget(1, 1, sampleData);
|
||||||
|
|
|
@ -48,7 +48,7 @@ public class VariablesPanel extends SimplePanel implements NetCDFDataEventHandle
|
||||||
|
|
||||||
private void create() {
|
private void create() {
|
||||||
netCDFDataModel.addNetCDFDataEventHandler(this);
|
netCDFDataModel.addNetCDFDataEventHandler(this);
|
||||||
setStyleName(NetCDFBasicResources.INSTANCE.olBasicCSS().getAreaSelectionPanel());
|
setStyleName(NetCDFBasicResources.INSTANCE.netCDFBasicCSS().getAreaSelectionPanel());
|
||||||
|
|
||||||
createGrid();
|
createGrid();
|
||||||
|
|
||||||
|
|
|
@ -63,4 +63,13 @@
|
||||||
|
|
||||||
.combo-geometry-type {
|
.combo-geometry-type {
|
||||||
width: 406px !important;
|
width: 406px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Sample Data Text Area */
|
||||||
|
.sample-data-text-area {
|
||||||
|
height: 318px;
|
||||||
|
width: 616px !important;
|
||||||
|
resize: none;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue