]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms.ui/src/org/argeo/cms/script/Html.java
Improve DocBook
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / script / Html.java
1 package org.argeo.cms.script;
2
3 import javax.jcr.Node;
4 import javax.jcr.RepositoryException;
5
6 import org.argeo.cms.ui.fm.FmUiProvider;
7 import org.eclipse.swt.widgets.Composite;
8 import org.eclipse.swt.widgets.Control;
9
10 public class Html {
11 private String template;
12 private Node context;
13
14 private Control control;
15
16 public Html(Composite parent, String template, Node context) throws RepositoryException {
17 this.template = template;
18 this.context = context;
19 this.control = new FmUiProvider(this.template).createUi(parent, context);
20 }
21
22 public Html(Composite parent, String template) throws RepositoryException {
23 this(parent, template, null);
24 }
25
26 public String getTemplate() {
27 return template;
28 }
29
30 public Node getContext() {
31 return context;
32 }
33
34 public Control getControl() {
35 return control;
36 }
37
38 }