2016-05-16 15:23:40 +02:00
|
|
|
package org.gcube.portlets.user.dataminermanager.client.experiments;
|
|
|
|
|
2018-05-03 16:24:26 +02:00
|
|
|
import org.gcube.data.analysis.dataminermanagercl.shared.data.computations.ComputationId;
|
2016-05-16 15:23:40 +02:00
|
|
|
|
|
|
|
import com.allen_sauer.gwt.log.client.Log;
|
|
|
|
import com.sencha.gxt.widget.core.client.Dialog;
|
|
|
|
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutPack;
|
|
|
|
import com.sencha.gxt.widget.core.client.form.TextArea;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
2017-05-12 11:58:15 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2016-05-16 15:23:40 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class EquivalentRequestDialog extends Dialog {
|
|
|
|
private ComputationId computationId;
|
|
|
|
|
|
|
|
public EquivalentRequestDialog(ComputationId computationId) {
|
|
|
|
super();
|
|
|
|
Log.debug("EquivalentRequestDialog: " + computationId);
|
|
|
|
this.computationId = computationId;
|
|
|
|
init();
|
|
|
|
create();
|
|
|
|
}
|
|
|
|
|
|
|
|
private void init() {
|
|
|
|
setModal(true);
|
|
|
|
setClosable(true);
|
|
|
|
setHeadingText("Equivalent Get Request");
|
|
|
|
setBodyBorder(true);
|
|
|
|
setHideOnButtonClick(true);
|
|
|
|
setPredefinedButtons(PredefinedButton.CLOSE);
|
|
|
|
getButtonBar().setPack(BoxLayoutPack.CENTER);
|
|
|
|
}
|
|
|
|
|
|
|
|
private void create() {
|
|
|
|
TextArea equivalentRequestArea = new TextArea();
|
|
|
|
equivalentRequestArea.setHeight(200);
|
|
|
|
equivalentRequestArea.setWidth(640);
|
|
|
|
equivalentRequestArea.setValue(computationId.getEquivalentRequest());
|
|
|
|
equivalentRequestArea.setReadOnly(true);
|
|
|
|
add(equivalentRequestArea);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|