added NOT FORMATTED BODY Type handling
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@70787 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
65b7dbae24
commit
55c7dc8df2
|
@ -938,7 +938,8 @@ public class Presenter {
|
|||
case HEADING_2:
|
||||
case HEADING_3:
|
||||
case HEADING_4:
|
||||
case HEADING_5:
|
||||
case HEADING_5:
|
||||
case BODY_NOT_FORMATTED:
|
||||
case TITLE:
|
||||
if (component.isLocked()) {
|
||||
HTML text = (HTML) component.getContent();
|
||||
|
|
|
@ -201,7 +201,8 @@ public class TemplateComponent {
|
|||
case HEADING_2:
|
||||
case HEADING_3:
|
||||
case HEADING_4:
|
||||
case HEADING_5:
|
||||
case HEADING_5:
|
||||
case BODY_NOT_FORMATTED:
|
||||
case TITLE:
|
||||
if (sc.isLocked()) {
|
||||
HTML area = new HTML();
|
||||
|
@ -377,6 +378,7 @@ public class TemplateComponent {
|
|||
case HEADING_3:
|
||||
case HEADING_4:
|
||||
case HEADING_5:
|
||||
case BODY_NOT_FORMATTED:
|
||||
case TITLE:
|
||||
if (this.isLocked()) {
|
||||
content = ((HTML) this.content).getText();
|
||||
|
|
|
@ -67,6 +67,10 @@ public class BasicTextArea extends ReportTextArea {
|
|||
textArea.addStyleName("heading5");
|
||||
myPanel.setTitle("Heading: Level 5");
|
||||
break;
|
||||
case BODY_NOT_FORMATTED:
|
||||
textArea.addStyleName("simpleText");
|
||||
myPanel.setTitle("Simple text");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
font-size: 11px;
|
||||
}
|
||||
|
||||
|
||||
.selectedCell {
|
||||
background-color: #e3e8f3 !important;
|
||||
}
|
||||
|
@ -316,6 +317,12 @@ tableBorder td {
|
|||
padding-left: 4px;
|
||||
}
|
||||
|
||||
.simpleText {
|
||||
padding-left: 4px;
|
||||
font-size: 12px;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.bodyArea {
|
||||
background-image: none;
|
||||
}
|
||||
|
|
Reference in New Issue