KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > rcp > composite > LabeledComboComposite


1 /*
2  * Created on Mar 9, 2005
3  * by alex
4  *
5  */

6 package com.nightlabs.rcp.composite;
7
8 import org.eclipse.swt.SWT;
9 import org.eclipse.swt.widgets.Combo;
10 import org.eclipse.swt.widgets.Composite;import org.eclipse.swt.widgets.Label;
11 ;
12
13 /**
14  * @author Alexander Bieber <alex[AT]nightlabs[DOT]de>
15  *
16  */

17 public class LabeledComboComposite extends TightWrapperComposite {
18
19     private Combo combo;
20     private Label label;
21     
22     public LabeledComboComposite(Composite parent, int style, boolean setLayoutData) {
23         super(parent, style, setLayoutData);
24         label = new Label(this, SWT.NONE);
25         combo = new Combo(this, SWT.NONE);
26     }
27
28     public Combo getCombo() {
29         return combo;
30     }
31     
32
33     public Label getLabel() {
34         return label;
35     }
36     
37
38     
39 }
40
Popular Tags