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