1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2018 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.taxeditor.editor.descriptiveDataSet.matrix.quantitative;
|
11
|
|
12
|
import org.eclipse.swt.SWT;
|
13
|
import org.eclipse.swt.layout.GridData;
|
14
|
import org.eclipse.swt.layout.GridLayout;
|
15
|
import org.eclipse.swt.widgets.Button;
|
16
|
import org.eclipse.swt.widgets.Composite;
|
17
|
import org.eclipse.swt.widgets.Text;
|
18
|
|
19
|
/**
|
20
|
* @author pplitzner
|
21
|
* @date 17.07.2018
|
22
|
*
|
23
|
*/
|
24
|
public class QuantitativeDataComposite extends Composite {
|
25
|
private Text text;
|
26
|
private Button btnAdvancedEdit;
|
27
|
|
28
|
public QuantitativeDataComposite(Composite parent, int style) {
|
29
|
super(parent, style);
|
30
|
setLayout(new GridLayout(2, false));
|
31
|
|
32
|
text = new Text(this, SWT.BORDER);
|
33
|
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
|
34
|
|
35
|
btnAdvancedEdit = new Button(this, SWT.NONE);
|
36
|
btnAdvancedEdit.setText("+");
|
37
|
// TODO Auto-generated constructor stub
|
38
|
}
|
39
|
|
40
|
public Text getText() {
|
41
|
return text;
|
42
|
}
|
43
|
public Button getBtnAdvancedEdit() {
|
44
|
return btnAdvancedEdit;
|
45
|
}
|
46
|
}
|