partially updated styles

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@69304 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-02-14 18:17:45 +00:00
parent ab9f9043df
commit 130b4dccbf
6 changed files with 59 additions and 29 deletions

View File

@ -153,12 +153,14 @@
<groupId>org.gcube.portlets.user</groupId> <groupId>org.gcube.portlets.user</groupId>
<artifactId>home-library</artifactId> <artifactId>home-library</artifactId>
<version>4.3.0-SNAPSHOT</version> <version>4.3.0-SNAPSHOT</version>
<scope>${setScope}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.gcube.portlets.user</groupId> <groupId>org.gcube.portlets.user</groupId>
<artifactId>home-library-jcr</artifactId> <artifactId>home-library-jcr</artifactId>
<version>1.3.0-SNAPSHOT</version> <version>1.3.0-SNAPSHOT</version>
<classifier>${setClassifier}</classifier> <classifier>${setClassifier}</classifier>
<scope>${setScope}</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.gcube.applicationsupportlayer</groupId> <groupId>org.gcube.applicationsupportlayer</groupId>

View File

@ -204,11 +204,11 @@ public class TemplateComponent {
case HEADING_5: case HEADING_5:
case TITLE: case TITLE:
if (sc.isLocked()) { if (sc.isLocked()) {
HTML area = new HTML(); HTML area = new HTML();
area.setStyleName(getStyle(sc.getType())); area.setStyleName("report-ui-component");
area.getElement().getStyle().setMarginLeft(25, Unit.PX); area.addStyleName(getStyle(sc.getType()));
area.getElement().getStyle().setMarginTop(15, Unit.PX); area.getElement().getStyle().setMarginTop(5, Unit.PX);
area.setPixelSize(width, 25); area.setPixelSize(width, 18);
area.setText((String) sc.getPossibleContent()); area.setText((String) sc.getPossibleContent());
this.content = area; this.content = area;
} }
@ -327,17 +327,17 @@ public class TemplateComponent {
private String getStyle(ComponentType type) { private String getStyle(ComponentType type) {
switch (type) { switch (type) {
case TITLE: case TITLE:
return "titleArea"; return "title-font";
case HEADING_1: case HEADING_1:
return "headgin1Area"; return "heading1-label";
case HEADING_2: case HEADING_2:
return "headgin2Area"; return "heading2-label";
case HEADING_3: case HEADING_3:
return "headgin3Area"; return "heading3-label";
case HEADING_4: case HEADING_4:
return "headgin4Area"; return "heading4-label";
case HEADING_5: case HEADING_5:
return "headgin5Area"; return "heading5-label";
default: default:
return ""; return "";
} }
@ -379,6 +379,7 @@ public class TemplateComponent {
case TITLE: case TITLE:
if (this.isLocked()) { if (this.isLocked()) {
content = ((HTML) this.content).getText(); content = ((HTML) this.content).getText();
} }
else else
content = ((BasicTextArea) this.content).getText(); content = ((BasicTextArea) this.content).getText();

View File

@ -35,7 +35,6 @@ public class AttributeArea extends Composite {
myPanel.addStyleName("attributeArea"); myPanel.addStyleName("attributeArea");
attrName = new HTML(getAttributeName(textToDisplay)); attrName = new HTML(getAttributeName(textToDisplay));
attrName.getElement().getStyle().setMarginLeft(25, Unit.PX);
attrName.getElement().getStyle().setMarginRight(5, Unit.PX); attrName.getElement().getStyle().setMarginRight(5, Unit.PX);
HorizontalPanel boxesPanel = new HorizontalPanel(); HorizontalPanel boxesPanel = new HorizontalPanel();
boxesPanel.add(attrName); boxesPanel.add(attrName);
@ -58,7 +57,6 @@ public class AttributeArea extends Composite {
myPanel.addStyleName("attributeArea"); myPanel.addStyleName("attributeArea");
attrName = new HTML(sata.getAttrName(), true); attrName = new HTML(sata.getAttrName(), true);
attrName.getElement().getStyle().setMarginLeft(25, Unit.PX);
attrName.getElement().getStyle().setMarginRight(5, Unit.PX); attrName.getElement().getStyle().setMarginRight(5, Unit.PX);
HorizontalPanel boxesPanel = new HorizontalPanel(); HorizontalPanel boxesPanel = new HorizontalPanel();
boxesPanel.add(attrName); boxesPanel.add(attrName);

View File

@ -3,10 +3,10 @@
<!-- Inherit the core Web Toolkit stuff. --> <!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' /> <inherits name='com.google.gwt.user.User' />
<inherits name='org.gcube.portlets.user.workspace.WorkspaceTree' />
<inherits name='org.gcube.portlets.d4sreporting.common.Reporting' /> <inherits name='org.gcube.portlets.d4sreporting.common.Reporting' />
<inherits name='org.gcube.portlets.user.gcubewidgets.WidgetFactory' /> <inherits name='org.gcube.portlets.user.gcubewidgets.WidgetFactory' />
<!-- inherits name='org.gube.portlets.user.reporting.fimesexporter.Fimesexporter' /--> <!-- inherits name='org.gube.portlets.user.reporting.fimesexporter.Fimesexporter' /-->
<inherits name='org.gcube.portlets.user.workspace.WorkspaceTree' />
<inherits name='org.gcube.portlets.user.guidedtour.GuidedTour' /> <inherits name='org.gcube.portlets.user.guidedtour.GuidedTour' />
<!-- To Comment out --> <!-- To Comment out -->

View File

@ -64,10 +64,13 @@ tableBorder td {
} }
.wpFlow { .wpFlow {
border: none; margin: 10px 5px 5px 20px;
margin-left: 20px; border: 1px solid #e3e8f3;
padding-left: 44px; padding-left: 44px;
background-color: #e3e8f3; background-color: #e3e8f3;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
} }
.highlight_background { .highlight_background {
@ -190,9 +193,7 @@ tableBorder td {
.attributeArea { .attributeArea {
margin-top: 5px; margin-top: 5px;
background-image: url(images/attribute_area.png); padding-left: 0px;
background-repeat: no-repeat;
padding-left: 20px;
border: none; border: none;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-size: 12px;
@ -208,16 +209,10 @@ tableBorder td {
.instructionArea { .instructionArea {
margin-top: 5px; 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-family: "Courier New", Courier, monospace;
font-size: 11px; font-size: 11px;
color: #666; color: #666;
padding-left: 25px; padding: 3px 0px;
padding-top: 3px;
} }
.gridAttribute { .gridAttribute {
@ -242,6 +237,9 @@ tableBorder td {
.report-ui-component { .report-ui-component {
background-repeat: no-repeat; background-repeat: no-repeat;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
color: maroon; color: maroon;
font-family: Verdana; font-family: Verdana;
border: none; border: none;
@ -254,31 +252,61 @@ tableBorder td {
font-size: 16pt; font-size: 16pt;
} }
.title-label {
font-size: 16pt;
padding-left: 0px;
}
.heading1 { .heading1 {
background-image: url(images/heading_1.png); background-image: url(images/heading_1.png);
font-size: 12pt; font-size: 12pt;
} }
.heading1-label {
font-size: 12pt;
padding-left: 0px;
}
.heading2 { .heading2 {
background-image: url(images/heading_2.png); background-image: url(images/heading_2.png);
font-size: 11pt; font-size: 11pt;
} }
.heading2-label {
font-size: 11pt;
padding-left: 4px;
}
.heading3 { .heading3 {
background-image: url(images/heading_3.png); background-image: url(images/heading_3.png);
font-size: 10pt; font-size: 10pt;
} }
.heading3-label{
font-size: 10pt;
padding-left: 4px;
}
.heading4 { .heading4 {
background-image: url(images/heading_4.png); background-image: url(images/heading_4.png);
font-size: 9pt; font-size: 9pt;
} }
.heading5Area { .heading4-label{
font-size: 9pt;
padding-left: 4px;
}
.heading5 {
background-image: url(images/heading_5.png); background-image: url(images/heading_5.png);
font-size: 8pt; font-size: 8pt;
} }
.heading5-label{
font-size: 8pt;
padding-left: 4px;
}
.bodyArea { .bodyArea {
background-image: none; background-image: none;
} }

View File

@ -7,6 +7,7 @@
<portlet:defineObjects /> <portlet:defineObjects />
--%> --%>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/OpenBioSamplePortlet.css" /> <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/gxt/css/gxt-all.css" />
<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/reportgenerator/reportgenerator.nocache.js"></script> <link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/ReportGenerator.css" />
<script type="text/javascript" language="javascript" src="<%=request.getContextPath()%>/reports/reports.nocache.js"></script>
<div id="ReportGeneratorDIV"></div> <div id="ReportGeneratorDIV"></div>