]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - cms/ui/util/SimpleStaticPage.java
1 package org
.argeo
.cms
.ui
.util
;
4 import javax
.jcr
.RepositoryException
;
6 import org
.argeo
.cms
.swt
.CmsStyles
;
7 import org
.argeo
.cms
.ui
.CmsUiProvider
;
8 import org
.eclipse
.rap
.rwt
.RWT
;
9 import org
.eclipse
.swt
.SWT
;
10 import org
.eclipse
.swt
.widgets
.Composite
;
11 import org
.eclipse
.swt
.widgets
.Control
;
12 import org
.eclipse
.swt
.widgets
.Label
;
14 public class SimpleStaticPage
implements CmsUiProvider
{
18 public Control
createUi(Composite parent
, Node context
)
19 throws RepositoryException
{
20 Label textC
= new Label(parent
, SWT
.WRAP
);
21 textC
.setData(RWT
.CUSTOM_VARIANT
, CmsStyles
.CMS_STATIC_TEXT
);
22 textC
.setData(RWT
.MARKUP_ENABLED
, Boolean
.TRUE
);
28 public void setText(String text
) {