Project

General

Profile

Download (1.71 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.view.webimport.termimport;
10

    
11
import org.eclipse.jface.viewers.TreeViewer;
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
import org.eclipse.swt.widgets.Tree;
19

    
20
/**
21
 * @author pplitzner
22
 * @since Apr 23, 2018
23
 *
24
 */
25
public class GfBioTerminologyImportComposite extends Composite{
26
    private TreeViewer treeTermHierarchy;
27
    private Text txtSearch;
28
    private Button btnSearch;
29

    
30
    public GfBioTerminologyImportComposite(Composite parent, int style) {
31
        super(parent, style);
32
        setLayout(new GridLayout(2, false));
33

    
34
        txtSearch = new Text(this, SWT.BORDER);
35
        txtSearch.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
36

    
37
        btnSearch = new Button(this, SWT.NONE);
38
        btnSearch.setText("Search");
39

    
40
                treeTermHierarchy = new TreeViewer(this, SWT.BORDER);
41
                Tree tree = treeTermHierarchy.getTree();
42
                GridData gd_tree = new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1);
43
                gd_tree.widthHint = 423;
44
                tree.setLayoutData(gd_tree);
45
    }
46
    public TreeViewer getTreeTermHierarchy() {
47
        return treeTermHierarchy;
48
    }
49
    public Button getBtnSearch() {
50
        return btnSearch;
51
    }
52
    public Text getTxtSearch() {
53
        return txtSearch;
54
    }
55
}
(1-1/5)