- query parameters are read from wizard page
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / campanula / specimenSearch / SpecimenSearchController.java
index 8e57176dacfe742f5dabc1c1b75cd2e9f82a3922..eaec9af328c18ee45bb9ae7a2328f85ebce4b047 100644 (file)
@@ -32,7 +32,62 @@ public class SpecimenSearchController {
         return specimenSearchComposite;
     }
 
-    private void runQuery(){
+    /**
+     * @return
+     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextTaxonName()
+     */
+    public String getTaxonName() {
+        return specimenSearchComposite.getTextTaxonName().getText();
+    }
+
+    /**
+     * @return
+     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextCollector()
+     */
+    public String getCollector() {
+        return specimenSearchComposite.getTextCollector().getText();
+    }
+
+    /**
+     * @return
+     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextCollectorNumber()
+     */
+    public String getCollectorNumber() {
+        return specimenSearchComposite.getTextCollectorNumber().getText();
+    }
+
+    /**
+     * @return
+     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextAccessionNumber()
+     */
+    public String getAccessionNumber() {
+        return specimenSearchComposite.getTextAccessionNumber().getText();
+    }
 
+    /**
+     * @return
+     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getComboHerbarium()
+     */
+    public String getHerbarium() {
+        return null;
+//        return specimenSearchComposite.getComboHerbarium().getItem(specimenSearchComposite.getComboHerbarium().getSelectionIndex());
     }
+
+    /**
+     * @return
+     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getComboCountry()
+     */
+    public String getCountry() {
+        return null;
+//        return specimenSearchComposite.getComboCountry().getItem(specimenSearchComposite.getComboCountry().getSelectionIndex());
+    }
+
+    /**
+     * @return
+     * @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextLocality()
+     */
+    public String getLocality() {
+        return specimenSearchComposite.getTextLocality().getText();
+    }
+
 }