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:
parent
6465956718
commit
4057cea5d7
|
@ -2,13 +2,9 @@ package org.gcube.portlets.user.statisticalalgorithmsimporter.client.dminfo;
|
||||||
|
|
||||||
import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.Constants;
|
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.google.gwt.event.shared.EventBus;
|
||||||
import com.sencha.gxt.widget.core.client.Dialog;
|
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.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() {
|
private void init() {
|
||||||
setWidth("640px");
|
setWidth("640px");
|
||||||
setHeight("480px");
|
setHeight("500px");
|
||||||
setResizable(true);
|
setResizable(true);
|
||||||
setHeadingText(Constants.DATA_MINER_SERVICE_INFO_TITLE);
|
setHeadingText(Constants.DATA_MINER_SERVICE_INFO_TITLE);
|
||||||
setModal(true);
|
setModal(true);
|
||||||
|
@ -40,24 +36,10 @@ public class ServiceInfoDialog extends Dialog {
|
||||||
setButtonAlign(BoxLayoutPack.CENTER);
|
setButtonAlign(BoxLayoutPack.CENTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void create() {
|
private void create() {
|
||||||
VerticalLayoutContainer vc = new VerticalLayoutContainer();
|
|
||||||
vc.addResizeHandler(new ResizeHandler() {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onResize(ResizeEvent event) {
|
|
||||||
manageResize(event);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
serviceInfoPanel=new ServiceInfoPanel(eventBus);
|
serviceInfoPanel=new ServiceInfoPanel(eventBus);
|
||||||
vc.add(serviceInfoPanel, new VerticalLayoutData(-1,-1));
|
add(serviceInfoPanel);
|
||||||
add(vc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void manageResize(ResizeEvent event){
|
|
||||||
serviceInfoPanel.setHeight(String.valueOf(event.getHeight())+"px");
|
|
||||||
serviceInfoPanel.setWidth(String.valueOf(event.getWidth())+"px");
|
|
||||||
forceLayout();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
|
@ -125,6 +125,7 @@ public class ServiceInfoPanel extends FramedPanel {
|
||||||
configurationFieldSet.setHeadingText(Constants.DATA_MINER_RUNTIME_FEATURE);
|
configurationFieldSet.setHeadingText(Constants.DATA_MINER_RUNTIME_FEATURE);
|
||||||
configurationFieldSet.setCollapsible(true);
|
configurationFieldSet.setCollapsible(true);
|
||||||
configurationFieldSet.add(environmentVBox);
|
configurationFieldSet.add(environmentVBox);
|
||||||
|
configurationFieldSet.getCollapseButton().getElement().getStyle().setMarginTop(11, Unit.PX);
|
||||||
configurationFieldSet.getElement().getStyle().setMarginRight(20, Unit.PX);
|
configurationFieldSet.getElement().getStyle().setMarginRight(20, Unit.PX);
|
||||||
return configurationFieldSet;
|
return configurationFieldSet;
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
|
@ -206,6 +207,8 @@ public class ServiceInfoPanel extends FramedPanel {
|
||||||
groupingView.groupBy(categoryCol);
|
groupingView.groupBy(categoryCol);
|
||||||
groupingView.setForceFit(true);
|
groupingView.setForceFit(true);
|
||||||
groupingView.setAutoExpandColumn(valueCol);
|
groupingView.setAutoExpandColumn(valueCol);
|
||||||
|
groupingView.setColumnLines(true);
|
||||||
|
|
||||||
groupingView.setEmptyText("No info retrieved");
|
groupingView.setEmptyText("No info retrieved");
|
||||||
|
|
||||||
// grid.getView().setAutoFill(true);
|
// grid.getView().setAutoFill(true);
|
||||||
|
|
Loading…
Reference in New Issue