]> git.argeo.org Git - gpl/argeo-suite.git/blob - argeo/suite/ui/DefaultFooter.java
Prepare next development cycle
[gpl/argeo-suite.git] / argeo / suite / ui / DefaultFooter.java
1 package org.argeo.suite.ui;
2
3 import java.util.Map;
4
5 import javax.jcr.Node;
6 import javax.jcr.RepositoryException;
7
8 import org.argeo.cms.ui.CmsUiProvider;
9 import org.argeo.cms.ui.util.CmsUiUtils;
10 import org.eclipse.swt.SWT;
11 import org.eclipse.swt.widgets.Composite;
12 import org.eclipse.swt.widgets.Control;
13 import org.osgi.framework.BundleContext;
14
15 /** Footer of a standard Argeo Suite application. */
16 public class DefaultFooter implements CmsUiProvider {
17 @Override
18 public Control createUi(Composite parent, Node context) throws RepositoryException {
19 parent.setLayout(CmsUiUtils.noSpaceGridLayout());
20 Composite content = new Composite(parent, SWT.NONE);
21 Control contentControl = createContent(content, context);
22
23 // TODO support and guarantee
24
25 return contentControl;
26 }
27
28 protected Control createContent(Composite parent, Node context) throws RepositoryException {
29 return parent;
30 }
31
32 public void init(BundleContext bundleContext, Map<String, String> properties) {
33 }
34
35 public void destroy(BundleContext bundleContext, Map<String, String> properties) {
36
37 }
38 }