]> git.argeo.org Git - gpl/argeo-jcr.git/blob - CmsPane.java
fc0c821463729f5be8c50b4936fdcfaea821e739
[gpl/argeo-jcr.git] / CmsPane.java
1 package org.argeo.cms.ui.util;
2
3 import org.argeo.cms.swt.CmsSwtUtils;
4 import org.eclipse.swt.SWT;
5 import org.eclipse.swt.layout.GridData;
6 import org.eclipse.swt.layout.GridLayout;
7 import org.eclipse.swt.layout.RowLayout;
8 import org.eclipse.swt.widgets.Composite;
9
10 /** The main pane of a CMS display, with QA and support areas. */
11 public class CmsPane {
12
13 private Composite mainArea;
14 private Composite qaArea;
15 private Composite supportArea;
16
17 public CmsPane(Composite parent, int style) {
18 parent.setLayout(CmsSwtUtils.noSpaceGridLayout());
19
20 // qaArea = new Composite(parent, SWT.NONE);
21 // qaArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
22 // RowLayout qaLayout = new RowLayout();
23 // qaLayout.spacing = 0;
24 // qaArea.setLayout(qaLayout);
25
26 mainArea = new Composite(parent, SWT.NONE);
27 mainArea.setLayout(new GridLayout());
28 mainArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
29
30 // supportArea = new Composite(parent, SWT.NONE);
31 // supportArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
32 // RowLayout supportLayout = new RowLayout();
33 // supportLayout.spacing = 0;
34 // supportArea.setLayout(supportLayout);
35 }
36
37 public Composite getMainArea() {
38 return mainArea;
39 }
40
41 public Composite getQaArea() {
42 return qaArea;
43 }
44
45 public Composite getSupportArea() {
46 return supportArea;
47 }
48
49 }