]>
git.argeo.org Git - gpl/argeo-suite.git/blob - publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/SectionTitle.java
1 package org
.argeo
.cms
.text
;
3 import javax
.jcr
.Property
;
4 import javax
.jcr
.RepositoryException
;
6 import org
.argeo
.cms
.ui
.viewers
.EditablePart
;
7 import org
.argeo
.cms
.ui
.viewers
.PropertyPart
;
8 import org
.argeo
.cms
.ui
.widgets
.EditableText
;
9 import org
.eclipse
.swt
.widgets
.Composite
;
11 /** The title of a section. */
12 public class SectionTitle
extends EditableText
implements EditablePart
,
14 private static final long serialVersionUID
= -1787983154946583171L;
16 private final TextSection section
;
18 public SectionTitle(Composite parent
, int swtStyle
, Property title
)
19 throws RepositoryException
{
20 super(parent
, swtStyle
, title
);
21 section
= (TextSection
) TextSection
.findSection(this);
24 public TextSection
getSection() {
29 // public Property getProperty() throws RepositoryException {
30 // return getSection().getNode().getProperty(Property.JCR_TITLE);
34 public Property
getItem() throws RepositoryException
{