View Javadoc
1   package org.argeo.cms.ui.util;
2   
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;
8   
9   /** The main pane of a CMS display, with QA and support areas. */
10  public class CmsPane {
11  
12  	private Composite mainArea;
13  	private Composite qaArea;
14  	private Composite supportArea;
15  
16  	public CmsPane(Composite parent, int style) {
17  		parent.setLayout(CmsUiUtils.noSpaceGridLayout());
18  
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);
24  
25  		mainArea = new Composite(parent, SWT.NONE);
26  		mainArea.setLayout(new GridLayout());
27  		mainArea.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
28  
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);
34  	}
35  
36  	public Composite getMainArea() {
37  		return mainArea;
38  	}
39  
40  	public Composite getQaArea() {
41  		return qaArea;
42  	}
43  
44  	public Composite getSupportArea() {
45  		return supportArea;
46  	}
47  
48  }