]>
git.argeo.org Git - gpl/argeo-suite.git/blob - swt/org.argeo.app.swt/src/org/argeo/app/swt/docbook/DbkSectionTitle.java
1 package org
.argeo
.app
.swt
.docbook
;
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
;
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;
13 private final TextSection section
;
15 public DbkSectionTitle(Composite parent
, int swtStyle
, Content titleNode
) {
16 super(parent
, swtStyle
);
17 section
= (TextSection
) TextSection
.findSection(this);
21 public TextSection
getSection() {
26 public Content
getContent() {
27 return (Content
) getData();