]>
git.argeo.org Git - gpl/argeo-suite.git/blob - publishing/org.argeo.publishing.ui/src/org/argeo/docbook/ui/Paragraph.java
1 package org
.argeo
.docbook
.ui
;
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
;
10 import org
.argeo
.docbook
.DbkType
;
12 /** An editable paragraph. */
13 public class Paragraph
extends EditableText
implements SectionPart
{
14 private static final long serialVersionUID
= 3746457776229542887L;
16 private final TextSection section
;
18 public Paragraph(TextSection section
, int style
, Node node
) throws RepositoryException
{
19 super(section
, style
, node
);
20 this.section
= section
;
21 CmsUiUtils
.style(this, DbkType
.para
.name());
24 public TextSection
getSection() {
29 public String
getPartId() {
34 public Node
getItem() throws RepositoryException
{
39 public String
toString() {
40 return "Paragraph #" + getPartId();