]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - cms/ui/util/CmsPane.java
1 package org
.argeo
.cms
.ui
.util
;
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
;
10 /** The main pane of a CMS display, with QA and support areas. */
11 public class CmsPane
{
13 private Composite mainArea
;
14 private Composite qaArea
;
15 private Composite supportArea
;
17 public CmsPane(Composite parent
, int style
) {
18 parent
.setLayout(CmsSwtUtils
.noSpaceGridLayout());
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);
26 mainArea
= new Composite(parent
, SWT
.NONE
);
27 mainArea
.setLayout(new GridLayout());
28 mainArea
.setLayoutData(new GridData(SWT
.FILL
, SWT
.FILL
, true, true));
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);
37 public Composite
getMainArea() {
41 public Composite
getQaArea() {
45 public Composite
getSupportArea() {