Project

General

Profile

Download (2.72 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2013 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.ui.campanula.specimenSearch;
11

    
12
import org.eclipse.swt.SWT;
13
import org.eclipse.swt.widgets.Composite;
14

    
15
/**
16
 * @author pplitzner
17
 * @date 03.09.2013
18
 *
19
 */
20
public class SpecimenSearchController {
21

    
22
    private SpecimenSearchComposite specimenSearchComposite;
23

    
24
    /**
25
     * @param specimenSearchComposite
26
     */
27
    public SpecimenSearchController(Composite parent) {
28
        this.specimenSearchComposite = new SpecimenSearchComposite(parent, SWT.NONE);
29
    }
30

    
31
    public Composite getComposite() {
32
        return specimenSearchComposite;
33
    }
34

    
35
    /**
36
     * @return
37
     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextTaxonName()
38
     */
39
    public String getTaxonName() {
40
        return specimenSearchComposite.getTextTaxonName().getText();
41
    }
42

    
43
    /**
44
     * @return
45
     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextCollector()
46
     */
47
    public String getCollector() {
48
        return specimenSearchComposite.getTextCollector().getText();
49
    }
50

    
51
    /**
52
     * @return
53
     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextCollectorNumber()
54
     */
55
    public String getCollectorNumber() {
56
        return specimenSearchComposite.getTextCollectorNumber().getText();
57
    }
58

    
59
    /**
60
     * @return
61
     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextAccessionNumber()
62
     */
63
    public String getAccessionNumber() {
64
        return specimenSearchComposite.getTextAccessionNumber().getText();
65
    }
66

    
67
    /**
68
     * @return
69
     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getComboHerbarium()
70
     */
71
    public String getHerbarium() {
72
        return null;
73
//        return specimenSearchComposite.getComboHerbarium().getItem(specimenSearchComposite.getComboHerbarium().getSelectionIndex());
74
    }
75

    
76
    /**
77
     * @return
78
     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getComboCountry()
79
     */
80
    public String getCountry() {
81
        return null;
82
//        return specimenSearchComposite.getComboCountry().getItem(specimenSearchComposite.getComboCountry().getSelectionIndex());
83
    }
84

    
85
    /**
86
     * @return
87
     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextLocality()
88
     */
89
    public String getLocality() {
90
        return specimenSearchComposite.getTextLocality().getText();
91
    }
92

    
93
}
(2-2/2)