]>
git.argeo.org Git - gpl/argeo-suite.git/blob - publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/Paragraph.java
1 package org
.argeo
.cms
.text
;
4 import javax
.jcr
.RepositoryException
;
6 import org
.argeo
.cms
.ui
.util
.CmsUiUtils
;
7 import org
.argeo
.cms
.ui
.viewers
.Section
;
8 import org
.argeo
.cms
.ui
.viewers
.SectionPart
;
9 import org
.argeo
.cms
.ui
.widgets
.EditableText
;
10 import org
.argeo
.cms
.ui
.widgets
.TextStyles
;
12 public class Paragraph
extends EditableText
implements SectionPart
{
13 private static final long serialVersionUID
= 3746457776229542887L;
15 private final TextSection section
;
17 public Paragraph(TextSection section
, int style
, Node node
)
18 throws RepositoryException
{
19 super(section
, style
, node
);
20 this.section
= section
;
21 CmsUiUtils
.style(this, TextStyles
.TEXT_PARAGRAPH
);
24 public Section
getSection() {
29 public String
getPartId() {
34 public Node
getItem() throws RepositoryException
{
39 public String
toString() {
40 return "Paragraph #" + getPartId();