]> git.argeo.org Git - gpl/argeo-suite.git/blob - publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/SectionTitle.java
Use released Argeo Commons.
[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 @Deprecated
13 public class SectionTitle extends EditableText implements EditablePart,
14 PropertyPart {
15 private static final long serialVersionUID = -1787983154946583171L;
16
17 private final TextSection section;
18
19 public SectionTitle(Composite parent, int swtStyle, Property title)
20 throws RepositoryException {
21 super(parent, swtStyle, title);
22 section = (TextSection) TextSection.findSection(this);
23 }
24
25 public TextSection getSection() {
26 return section;
27 }
28
29 // @Override
30 // public Property getProperty() throws RepositoryException {
31 // return getSection().getNode().getProperty(Property.JCR_TITLE);
32 // }
33
34 @Override
35 public Property getItem() throws RepositoryException {
36 return getProperty();
37 }
38
39 }