]>
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. */
13 public class SectionTitle
extends EditableText
implements EditablePart
,
15 private static final long serialVersionUID
= -1787983154946583171L;
17 private final TextSection section
;
19 public SectionTitle(Composite parent
, int swtStyle
, Property title
)
20 throws RepositoryException
{
21 super(parent
, swtStyle
, title
);
22 section
= (TextSection
) TextSection
.findSection(this);
25 public TextSection
getSection() {
30 // public Property getProperty() throws RepositoryException {
31 // return getSection().getNode().getProperty(Property.JCR_TITLE);
35 public Property
getItem() throws RepositoryException
{