]> git.argeo.org Git - gpl/argeo-suite.git/blob - swt/org.argeo.app.swt/src/org/argeo/app/swt/docbook/DbkSectionTitle.java
Remove legacy map overview
[gpl/argeo-suite.git] / swt / org.argeo.app.swt / src / org / argeo / app / swt / docbook / DbkSectionTitle.java
1 package org.argeo.app.swt.docbook;
2
3 import org.argeo.api.acr.Content;
4 import org.argeo.cms.swt.SwtEditablePart;
5 import org.argeo.cms.swt.widgets.EditableText;
6 import org.argeo.cms.ux.acr.ContentPart;
7 import org.eclipse.swt.widgets.Composite;
8
9 /** The title of a section, based on an XML text node. */
10 public class DbkSectionTitle extends EditableText implements SwtEditablePart, ContentPart {
11 private static final long serialVersionUID = -1787983154946583171L;
12
13 private final TextSection section;
14
15 public DbkSectionTitle(Composite parent, int swtStyle, Content titleNode) {
16 super(parent, swtStyle);
17 section = (TextSection) TextSection.findSection(this);
18 setData(titleNode);
19 }
20
21 public TextSection getSection() {
22 return section;
23 }
24
25 @Override
26 public Content getContent() {
27 return (Content) getData();
28 }
29
30 }