ref 12594: Provide DM Users with runtime execution information

https://support.d4science.org/issues/12594

Added service info[ticket #12594]
Updated the resources check on IS [ticket #17569]

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@181904 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2019-10-01 16:56:20 +00:00
parent 6465956718
commit 4057cea5d7
2 changed files with 6 additions and 21 deletions

View File

@ -2,13 +2,9 @@ package org.gcube.portlets.user.statisticalalgorithmsimporter.client.dminfo;
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants;
import com.google.gwt.event.logical.shared.ResizeEvent;
import com.google.gwt.event.logical.shared.ResizeHandler;
import com.google.gwt.event.shared.EventBus;
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.container.VerticalLayoutContainer;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
/**
*
@ -31,7 +27,7 @@ public class ServiceInfoDialog extends Dialog {
private void init() {
setWidth("640px");
setHeight("480px");
setHeight("500px");
setResizable(true);
setHeadingText(Constants.DATA_MINER_SERVICE_INFO_TITLE);
setModal(true);
@ -40,24 +36,10 @@ public class ServiceInfoDialog extends Dialog {
setButtonAlign(BoxLayoutPack.CENTER);
}
private void create() {
VerticalLayoutContainer vc = new VerticalLayoutContainer();
vc.addResizeHandler(new ResizeHandler() {
@Override
public void onResize(ResizeEvent event) {
manageResize(event);
}
});
private void create() {
serviceInfoPanel=new ServiceInfoPanel(eventBus);
vc.add(serviceInfoPanel, new VerticalLayoutData(-1,-1));
add(vc);
add(serviceInfoPanel);
}
private void manageResize(ResizeEvent event){
serviceInfoPanel.setHeight(String.valueOf(event.getHeight())+"px");
serviceInfoPanel.setWidth(String.valueOf(event.getWidth())+"px");
forceLayout();
}
}

View File

@ -125,6 +125,7 @@ public class ServiceInfoPanel extends FramedPanel {
configurationFieldSet.setHeadingText(Constants.DATA_MINER_RUNTIME_FEATURE);
configurationFieldSet.setCollapsible(true);
configurationFieldSet.add(environmentVBox);
configurationFieldSet.getCollapseButton().getElement().getStyle().setMarginTop(11, Unit.PX);
configurationFieldSet.getElement().getStyle().setMarginRight(20, Unit.PX);
return configurationFieldSet;
} catch (Throwable e) {
@ -206,6 +207,8 @@ public class ServiceInfoPanel extends FramedPanel {
groupingView.groupBy(categoryCol);
groupingView.setForceFit(true);
groupingView.setAutoExpandColumn(valueCol);
groupingView.setColumnLines(true);
groupingView.setEmptyText("No info retrieved");
// grid.getView().setAutoFill(true);