partial support for references complete

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@84747 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-10-31 10:21:36 +00:00
parent 583dc432d9
commit c538f3c247
1 changed files with 9 additions and 8 deletions

View File

@ -185,7 +185,7 @@ public class TemplateComponent {
area.setStyleName("report-ui-component");
area.addStyleName(getStyle(sc.getType()));
area.getElement().getStyle().setMarginTop(5, Unit.PX);
area.setPixelSize(width, 18);
area.setWidth(width+"px");
area.setText((String) sc.getPossibleContent());
this.content = area;
}
@ -202,7 +202,7 @@ public class TemplateComponent {
area.addStyleName("readOnlyText");
//area.addStyleName(getStyle(sc.getType()));
area.getElement().getStyle().setMarginTop(5, Unit.PX);
area.setPixelSize(width-5, 18);
area.setWidth(width+"px");
area.setText((String) sc.getPossibleContent());
this.content = area;
}
@ -215,12 +215,13 @@ public class TemplateComponent {
break;
case BODY:
if (sc.isLocked()) {
HTML area = new HTML();
area.setStyleName("d4sFrame");
area.addStyleName("fixedTextArea");
area.addStyleName("hasRichTextToolbar");
area.setPixelSize(width, height);
area.setHTML((String) sc.getPossibleContent());
HTML area = new HTML();
area.setStyleName("report-ui-component");
area.addStyleName("readOnlyText");
//area.addStyleName(getStyle(sc.getType()));
area.getElement().getStyle().setMarginTop(5, Unit.PX);
area.setWidth(width+"px");
area.setText((String) sc.getPossibleContent());
this.content = area;
}
else {