1
|
/**
|
2
|
* Copyright (C) 2017 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.editor.workingSet.matrix.quantitative;
|
10
|
|
11
|
import org.eclipse.swt.SWT;
|
12
|
import org.eclipse.swt.layout.FillLayout;
|
13
|
import org.eclipse.swt.widgets.Composite;
|
14
|
import org.eclipse.swt.widgets.Text;
|
15
|
|
16
|
/**
|
17
|
* @author pplitzner
|
18
|
* @since Dec 11, 2017
|
19
|
*
|
20
|
*/
|
21
|
public class QuantitativeDataComposite extends Composite {
|
22
|
private Text min;
|
23
|
private Text avg;
|
24
|
private Text max;
|
25
|
|
26
|
/**
|
27
|
* Create the composite.
|
28
|
* @param parent
|
29
|
* @param style
|
30
|
*/
|
31
|
public QuantitativeDataComposite(Composite parent, int style) {
|
32
|
super(parent, style);
|
33
|
setLayout(new FillLayout(SWT.HORIZONTAL));
|
34
|
|
35
|
min = new Text(this, SWT.NONE);
|
36
|
|
37
|
avg = new Text(this, SWT.BORDER);
|
38
|
|
39
|
max = new Text(this, SWT.BORDER);
|
40
|
|
41
|
}
|
42
|
|
43
|
@Override
|
44
|
protected void checkSubclass() {
|
45
|
// Disable the check that prevents subclassing of SWT components
|
46
|
}
|
47
|
|
48
|
public Text getMin() {
|
49
|
return min;
|
50
|
}
|
51
|
public Text getAvg() {
|
52
|
return avg;
|
53
|
}
|
54
|
public Text getMax() {
|
55
|
return max;
|
56
|
}
|
57
|
}
|