]>
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
.SectionPart
;
8 import org
.argeo
.cms
.ui
.widgets
.EditableText
;
9 import org
.argeo
.cms
.ui
.widgets
.TextStyles
;
11 /** An editable paragraph. */
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
) throws RepositoryException
{
18 super(section
, style
, node
);
19 this.section
= section
;
20 CmsUiUtils
.style(this, TextStyles
.TEXT_PARAGRAPH
);
23 public TextSection
getSection() {
28 public String
getPartId() {
33 public Node
getItem() throws RepositoryException
{
38 public String
toString() {
39 return "Paragraph #" + getPartId();