]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms.ui/src/org/argeo/cms/util/CmsPane.java
1 package org
.argeo
.cms
.util
;
3 import org
.eclipse
.swt
.SWT
;
4 import org
.eclipse
.swt
.layout
.GridData
;
5 import org
.eclipse
.swt
.layout
.GridLayout
;
6 import org
.eclipse
.swt
.layout
.RowLayout
;
7 import org
.eclipse
.swt
.widgets
.Composite
;
9 /** The main pane of a CMS display, with QA and support areas. */
10 public class CmsPane
{
12 private Composite mainArea
;
13 private Composite qaArea
;
14 private Composite supportArea
;
16 public CmsPane(Composite parent
, int style
) {
17 parent
.setLayout(CmsUtils
.noSpaceGridLayout());
19 // qaArea = new Composite(parent, SWT.NONE);
20 // qaArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
21 // RowLayout qaLayout = new RowLayout();
22 // qaLayout.spacing = 0;
23 // qaArea.setLayout(qaLayout);
25 mainArea
= new Composite(parent
, SWT
.NONE
);
26 mainArea
.setLayout(new GridLayout());
27 mainArea
.setLayoutData(new GridData(SWT
.FILL
, SWT
.FILL
, true, true));
29 // supportArea = new Composite(parent, SWT.NONE);
30 // supportArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
31 // RowLayout supportLayout = new RowLayout();
32 // supportLayout.spacing = 0;
33 // supportArea.setLayout(supportLayout);
36 public Composite
getMainArea() {
40 public Composite
getQaArea() {
44 public Composite
getSupportArea() {