]> git.argeo.org Git - lgpl/argeo-commons.git/blob - swt/org.argeo.cms.swt/src/org/argeo/cms/swt/acr/ContentStyledControl.java
Prepare next development cycle
[lgpl/argeo-commons.git] / swt / org.argeo.cms.swt / src / org / argeo / cms / swt / acr / ContentStyledControl.java
1 package org.argeo.cms.swt.acr;
2
3 import org.argeo.api.acr.Content;
4 import org.argeo.cms.swt.widgets.StyledControl;
5 import org.argeo.cms.ux.acr.ContentPart;
6 import org.eclipse.swt.widgets.Composite;
7
8 public abstract class ContentStyledControl extends StyledControl implements ContentPart {
9
10 private static final long serialVersionUID = -5714246408818696583L;
11
12 public ContentStyledControl(Composite parent, int swtStyle, Content content) {
13 super(parent, swtStyle);
14 setData(content);
15 }
16
17 @Override
18 public Content getContent() {
19 return (Content) getData();
20 }
21
22 }