diff --git a/pom.xml b/pom.xml
index 33436ae..ce889e1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -153,12 +153,14 @@
org.gcube.portlets.user
home-library
4.3.0-SNAPSHOT
+ ${setScope}
org.gcube.portlets.user
home-library-jcr
1.3.0-SNAPSHOT
${setClassifier}
+ ${setScope}
org.gcube.applicationsupportlayer
diff --git a/src/main/java/org/gcube/portlets/user/reportgenerator/client/model/TemplateComponent.java b/src/main/java/org/gcube/portlets/user/reportgenerator/client/model/TemplateComponent.java
index 837cfa9..5e3711a 100644
--- a/src/main/java/org/gcube/portlets/user/reportgenerator/client/model/TemplateComponent.java
+++ b/src/main/java/org/gcube/portlets/user/reportgenerator/client/model/TemplateComponent.java
@@ -204,11 +204,11 @@ public class TemplateComponent {
case HEADING_5:
case TITLE:
if (sc.isLocked()) {
- HTML area = new HTML();
- area.setStyleName(getStyle(sc.getType()));
- area.getElement().getStyle().setMarginLeft(25, Unit.PX);
- area.getElement().getStyle().setMarginTop(15, Unit.PX);
- area.setPixelSize(width, 25);
+ HTML area = new HTML();
+ area.setStyleName("report-ui-component");
+ area.addStyleName(getStyle(sc.getType()));
+ area.getElement().getStyle().setMarginTop(5, Unit.PX);
+ area.setPixelSize(width, 18);
area.setText((String) sc.getPossibleContent());
this.content = area;
}
@@ -327,17 +327,17 @@ public class TemplateComponent {
private String getStyle(ComponentType type) {
switch (type) {
case TITLE:
- return "titleArea";
+ return "title-font";
case HEADING_1:
- return "headgin1Area";
+ return "heading1-label";
case HEADING_2:
- return "headgin2Area";
+ return "heading2-label";
case HEADING_3:
- return "headgin3Area";
+ return "heading3-label";
case HEADING_4:
- return "headgin4Area";
+ return "heading4-label";
case HEADING_5:
- return "headgin5Area";
+ return "heading5-label";
default:
return "";
}
@@ -379,6 +379,7 @@ public class TemplateComponent {
case TITLE:
if (this.isLocked()) {
content = ((HTML) this.content).getText();
+
}
else
content = ((BasicTextArea) this.content).getText();
diff --git a/src/main/java/org/gcube/portlets/user/reportgenerator/client/targets/AttributeArea.java b/src/main/java/org/gcube/portlets/user/reportgenerator/client/targets/AttributeArea.java
index d581d91..f33d837 100644
--- a/src/main/java/org/gcube/portlets/user/reportgenerator/client/targets/AttributeArea.java
+++ b/src/main/java/org/gcube/portlets/user/reportgenerator/client/targets/AttributeArea.java
@@ -35,7 +35,6 @@ public class AttributeArea extends Composite {
myPanel.addStyleName("attributeArea");
attrName = new HTML(getAttributeName(textToDisplay));
- attrName.getElement().getStyle().setMarginLeft(25, Unit.PX);
attrName.getElement().getStyle().setMarginRight(5, Unit.PX);
HorizontalPanel boxesPanel = new HorizontalPanel();
boxesPanel.add(attrName);
@@ -58,7 +57,6 @@ public class AttributeArea extends Composite {
myPanel.addStyleName("attributeArea");
attrName = new HTML(sata.getAttrName(), true);
- attrName.getElement().getStyle().setMarginLeft(25, Unit.PX);
attrName.getElement().getStyle().setMarginRight(5, Unit.PX);
HorizontalPanel boxesPanel = new HorizontalPanel();
boxesPanel.add(attrName);
diff --git a/src/main/resources/org/gcube/portlets/user/reportgenerator/ReportGenerator.gwt.xml b/src/main/resources/org/gcube/portlets/user/reportgenerator/ReportGenerator.gwt.xml
index 5304baa..b1bd315 100644
--- a/src/main/resources/org/gcube/portlets/user/reportgenerator/ReportGenerator.gwt.xml
+++ b/src/main/resources/org/gcube/portlets/user/reportgenerator/ReportGenerator.gwt.xml
@@ -3,10 +3,10 @@
-
+
diff --git a/src/main/webapp/ReportGenerator.css b/src/main/webapp/ReportGenerator.css
index c3c56db..07b98fa 100644
--- a/src/main/webapp/ReportGenerator.css
+++ b/src/main/webapp/ReportGenerator.css
@@ -64,10 +64,13 @@ tableBorder td {
}
.wpFlow {
- border: none;
- margin-left: 20px;
+ margin: 10px 5px 5px 20px;
+ border: 1px solid #e3e8f3;
padding-left: 44px;
background-color: #e3e8f3;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
}
.highlight_background {
@@ -190,9 +193,7 @@ tableBorder td {
.attributeArea {
margin-top: 5px;
- background-image: url(images/attribute_area.png);
- background-repeat: no-repeat;
- padding-left: 20px;
+ padding-left: 0px;
border: none;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
@@ -208,16 +209,10 @@ tableBorder td {
.instructionArea {
margin-top: 5px;
- background-image: url(images/instruction_area.png);
- background-repeat: no-repeat;
- border: 0px solid gray;
- font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
- font-size: 12px;
font-family: "Courier New", Courier, monospace;
font-size: 11px;
color: #666;
- padding-left: 25px;
- padding-top: 3px;
+ padding: 3px 0px;
}
.gridAttribute {
@@ -242,6 +237,9 @@ tableBorder td {
.report-ui-component {
background-repeat: no-repeat;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+ border-radius: 5px;
color: maroon;
font-family: Verdana;
border: none;
@@ -254,31 +252,61 @@ tableBorder td {
font-size: 16pt;
}
+.title-label {
+ font-size: 16pt;
+ padding-left: 0px;
+}
+
.heading1 {
background-image: url(images/heading_1.png);
font-size: 12pt;
}
+.heading1-label {
+ font-size: 12pt;
+ padding-left: 0px;
+}
+
.heading2 {
background-image: url(images/heading_2.png);
font-size: 11pt;
}
+.heading2-label {
+ font-size: 11pt;
+ padding-left: 4px;
+}
+
.heading3 {
background-image: url(images/heading_3.png);
font-size: 10pt;
}
+.heading3-label{
+ font-size: 10pt;
+ padding-left: 4px;
+}
+
.heading4 {
background-image: url(images/heading_4.png);
font-size: 9pt;
}
-.heading5Area {
+.heading4-label{
+ font-size: 9pt;
+ padding-left: 4px;
+}
+
+.heading5 {
background-image: url(images/heading_5.png);
font-size: 8pt;
}
+.heading5-label{
+ font-size: 8pt;
+ padding-left: 4px;
+}
+
.bodyArea {
background-image: none;
}
diff --git a/src/main/webapp/WEB-INF/jsp/ReportGeneratorPortlet_view.jsp b/src/main/webapp/WEB-INF/jsp/ReportGeneratorPortlet_view.jsp
index 7209bf6..76b0a43 100644
--- a/src/main/webapp/WEB-INF/jsp/ReportGeneratorPortlet_view.jsp
+++ b/src/main/webapp/WEB-INF/jsp/ReportGeneratorPortlet_view.jsp
@@ -7,6 +7,7 @@
--%>
-
-
+
+
+
\ No newline at end of file