]> git.argeo.org Git - gpl/argeo-suite.git/blob - publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/SectionTitle.java
[maven-release-plugin] prepare release argeo-suite-2.1.17
[gpl/argeo-suite.git] / publishing / org.argeo.publishing.ui / src / org / argeo / cms / text / SectionTitle.java
1 package org.argeo.cms.text;
2
3 import javax.jcr.Property;
4 import javax.jcr.RepositoryException;
5
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;
10
11 /** The title of a section. */
12 public class SectionTitle extends EditableText implements EditablePart,
13 PropertyPart {
14 private static final long serialVersionUID = -1787983154946583171L;
15
16 private final TextSection section;
17
18 public SectionTitle(Composite parent, int swtStyle, Property title)
19 throws RepositoryException {
20 super(parent, swtStyle, title);
21 section = (TextSection) TextSection.findSection(this);
22 }
23
24 public TextSection getSection() {
25 return section;
26 }
27
28 // @Override
29 // public Property getProperty() throws RepositoryException {
30 // return getSection().getNode().getProperty(Property.JCR_TITLE);
31 // }
32
33 @Override
34 public Property getItem() throws RepositoryException {
35 return getProperty();
36 }
37
38 }