diff --git a/src/main/java/org/gcube/portlets/user/dataminermanager/client/DataMinerManager.java b/src/main/java/org/gcube/portlets/user/dataminermanager/client/DataMinerManager.java
index 37cc6fb..21f7fcc 100644
--- a/src/main/java/org/gcube/portlets/user/dataminermanager/client/DataMinerManager.java
+++ b/src/main/java/org/gcube/portlets/user/dataminermanager/client/DataMinerManager.java
@@ -27,12 +27,17 @@ import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.RootPanel;
import com.sencha.gxt.core.client.util.Margins;
+import com.sencha.gxt.core.client.util.Padding;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer;
import com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData;
+import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
+import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutPack;
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer;
import com.sencha.gxt.widget.core.client.container.HorizontalLayoutContainer.HorizontalLayoutData;
import com.sencha.gxt.widget.core.client.container.MarginData;
import com.sencha.gxt.widget.core.client.container.SimpleContainer;
+import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer;
+import com.sencha.gxt.widget.core.client.container.VBoxLayoutContainer.VBoxLayoutAlign;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer;
import com.sencha.gxt.widget.core.client.container.VerticalLayoutContainer.VerticalLayoutData;
import com.sencha.gxt.widget.core.client.container.Viewport;
@@ -51,7 +56,6 @@ public class DataMinerManager implements EntryPoint {
private DataMinerManagerController dataMinerManagerController;
-
private DataSpacePanel dataSpacePanel = new DataSpacePanel();
// private InputSpacePanel inputSpacePanel = new InputSpacePanel();
private ExperimentPanel experimentPanel = new ExperimentPanel();
@@ -104,8 +108,6 @@ public class DataMinerManager implements EntryPoint {
dataMinerManagerController = new DataMinerManagerController();
-
-
// Layout
mainPanelLayout = new BorderLayoutContainer();
mainPanelLayout.setId("mainPanelLayout");
@@ -270,10 +272,13 @@ public class DataMinerManager implements EntryPoint {
*/
private SimpleContainer createMenuPanel() {
SimpleContainer topLc = new SimpleContainer();
- VerticalLayoutContainer lc = new VerticalLayoutContainer();
- // lc.setSize(640, 400);
- lc.addStyleName("smLayoutContainer");
- lc.addStyleName("smMenu");
+ BoxLayoutData layoutData = new BoxLayoutData(new Margins(0, 0, 5, 0));
+
+ VBoxLayoutContainer lc = new VBoxLayoutContainer();
+ lc.setPadding(new Padding(5));
+ lc.setVBoxLayoutAlign(VBoxLayoutAlign.CENTER);
+ lc.setPack(BoxLayoutPack.CENTER);
+
/*
* LayoutContainer itemDataSpace = createMenuItem(
@@ -287,7 +292,7 @@ public class DataMinerManager implements EntryPoint {
* lc.add(itemDataSpace);
*/
- HorizontalLayoutContainer itemExperiment = createMenuItem(
+ SimpleContainer itemExperiment = createMenuItem(
"Execute an Experiment",
"This section allows to execute or prepare a Niche Modeling experiment. The section is endowed with a list of algorithms for training and executing statistical models for biological applications. Evaluation of the performances is possible by means of several kinds of measurement systems and processes.",
resources.computationIcon(), new MouseDownHandler() {
@@ -299,7 +304,9 @@ public class DataMinerManager implements EntryPoint {
}
});
- lc.add(itemExperiment,new VerticalLayoutData(300, 300, new Margins(0)));
+
+ lc.add(itemExperiment, layoutData);
+
/*
* LayoutContainer itemJobs = createMenuItem( "Check the Computations",
* "This section allows to check the status of the computation. A list of processes launched by the user is shown along with meta-information. By clicking on the completed jobs it is possible to visualize the data set contents."
@@ -310,6 +317,7 @@ public class DataMinerManager implements EntryPoint {
* }); lc.add(itemJobs);
*/
topLc.add(lc);
+ topLc.forceLayout();
return topLc;
}
@@ -330,22 +338,33 @@ public class DataMinerManager implements EntryPoint {
*/
}
- private HorizontalLayoutContainer createMenuItem(String title,
- String description, ImageResource imgResource,
- MouseDownHandler handle) {
+ private SimpleContainer createMenuItem(String title, String description,
+ ImageResource imgResource, MouseDownHandler handle) {
HorizontalLayoutContainer horiz = new HorizontalLayoutContainer();
+
horiz.addDomHandler(handle, MouseDownEvent.getType());
- HorizontalLayoutData layoutData = new HorizontalLayoutData(100, 100,
- new Margins(5));
Image img = new Image(imgResource);
HTML text = new HTML("" + title + "
" + description);
text.addStyleName("smMenuItemText");
- horiz.add(text, layoutData);
- horiz.add(img, layoutData);
- return horiz;
+ HorizontalLayoutData textLayoutData = new HorizontalLayoutData(500,
+ 170, new Margins(10,5,10,10));
+ HorizontalLayoutData imgLayoutData = new HorizontalLayoutData(100, 100,
+ new Margins(10,10,10,5));
+
+ horiz.add(text, textLayoutData);
+ horiz.add(img, imgLayoutData);
+
+ SimpleContainer container = new SimpleContainer();
+ container.setWidth(600);
+ container.setHeight(190);
+ container.addStyleName("smLayoutContainer");
+ container.addStyleName("smMenu");
+
+ container.add(horiz);
+ return container;
}
/**
diff --git a/src/main/java/org/gcube/portlets/user/dataminermanager/dataminermanager.gwt.xml b/src/main/java/org/gcube/portlets/user/dataminermanager/dataminermanager.gwt.xml
index 8b09859..b2035bc 100644
--- a/src/main/java/org/gcube/portlets/user/dataminermanager/dataminermanager.gwt.xml
+++ b/src/main/java/org/gcube/portlets/user/dataminermanager/dataminermanager.gwt.xml
@@ -10,6 +10,9 @@
+
+
+
+
+