]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms/src/org/argeo/cms/text/Paragraph.java
a7a7964f493365914e1cc1072398a9c5a1963597
1 package org
.argeo
.cms
.text
;
4 import javax
.jcr
.RepositoryException
;
6 import org
.argeo
.cms
.util
.CmsUtils
;
7 import org
.argeo
.cms
.viewers
.Section
;
8 import org
.argeo
.cms
.viewers
.SectionPart
;
9 import org
.argeo
.cms
.widgets
.EditableText
;
11 public class Paragraph
extends EditableText
implements SectionPart
{
12 private static final long serialVersionUID
= 3746457776229542887L;
14 private final TextSection section
;
16 public Paragraph(TextSection section
, int style
, Node node
)
17 throws RepositoryException
{
18 super(section
, style
, node
);
19 this.section
= section
;
20 CmsUtils
.style(this, TextStyles
.TEXT_PARAGRAPH
);
23 public Section
getSection() {
28 public String
getPartId() {
33 public Node
getItem() throws RepositoryException
{
38 public String
toString() {
39 return "Paragraph #" + getPartId();