import org.eclipse.swt.widgets.Composite;
/**
+ * Controller class for handling a {@link SpecimenSearchComposite}.
* @author pplitzner
* @date 03.09.2013
*
*/
public class SpecimenSearchController {
- private SpecimenSearchComposite specimenSearchComposite;
+ private final SpecimenSearchComposite specimenSearchComposite;
/**
* @param specimenSearchComposite
this.specimenSearchComposite = new SpecimenSearchComposite(parent, SWT.NONE);
}
+ /**
+ * Returns the {@link Composite} handled by this controller
+ * @return
+ */
public Composite getComposite() {
return specimenSearchComposite;
}
/**
- * @return
+ * Returns the taxon name entered in the search view
+ * @return the taxon name as a {@link String}
* @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextTaxonName()
*/
public String getTaxonName() {
}
/**
- * @return
+ * Returns the collector entered in the search view
+ * @return the collector as a {@link String}
* @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextCollector()
*/
public String getCollector() {
}
/**
- * @return
+ * Returns the collecting number entered in the search view
+ * @return the collecting as a {@link String}
* @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextCollectorNumber()
*/
public String getCollectorNumber() {
}
/**
- * @return
+ * Returns the accession number entered in the search view
+ * @return the accession number as a {@link String}
* @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextAccessionNumber()
*/
public String getAccessionNumber() {
}
/**
- * @return
+ * Returns the herbarium entered in the search view
+ * @return the herbarium as a {@link String}
* @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getComboHerbarium()
*/
public String getHerbarium() {
}
/**
- * @return
+ * Returns the country entered in the search view
+ * @return the country as a {@link String}
* @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getComboCountry()
*/
public String getCountry() {
}
/**
- * @return
+ * Returns the locality entered in the search view
+ * @return the locality as a {@link String}
* @see eu.etaxonomy.taxeditor.ui.campanula.specimenSearch.SpecimenSearchComposite#getTextLocality()
*/
public String getLocality() {
return specimenSearchComposite.getTextLocality().getText();
}
-}
+}
\ No newline at end of file