p2izing the editor
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor / src / eu / etaxonomy / taxeditor / editor / IFreeTextElementFactory.java
1 /**
2 * Copyright (C) 2007 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
10 package eu.etaxonomy.taxeditor.editor;
11
12 import java.net.URL;
13
14 import org.eclipse.swt.widgets.Composite;
15 import org.eclipse.ui.forms.IManagedForm;
16 import org.eclipse.ui.forms.ManagedForm;
17
18 import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
19 import eu.etaxonomy.cdm.model.description.Feature;
20 import eu.etaxonomy.cdm.model.description.TaxonDescription;
21 import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
22 import eu.etaxonomy.cdm.model.taxon.Synonym;
23 import eu.etaxonomy.cdm.model.taxon.Taxon;
24 import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
25
26 /**
27 * @author p.ciardelli
28 * @created 08.01.2009
29 * @version 1.0
30 */
31 public interface IFreeTextElementFactory {
32
33 /* Taxon name editor elements */
34
35 public Composite createAcceptedTaxon(IManagedForm form, Taxon taxon);
36
37 public Composite createSynonym(Taxon taxon, Synonym synonym);
38
39 public Composite createMisappliedName(Taxon taxon, Taxon misappliedName);
40
41 public Composite createHomotypicalGroup(Taxon taxon, HomotypicalGroup group);
42
43 public Composite createMisappliedGroup(Taxon taxon);
44
45 public Composite createConceptGroup(Taxon taxon);
46
47 public Composite createConcept(Taxon taxon, TaxonRelationship relationship);
48
49 /* Taxon description editor elements */
50
51 public Composite createDescriptionLabel(IManagedForm form, Taxon taxon, TaxonDescription description);
52
53 public Composite createDescriptionElement(Taxon taxon, TaxonDescription description, DescriptionElementBase element);
54
55 public Composite createDescriptionGroup(Taxon taxon, TaxonDescription description);
56
57 public Composite createDescriptionFeatureGroup(Taxon taxon, TaxonDescription description, Feature feature);
58
59 public Composite createImageElement(ManagedForm managedForm, Taxon taxon, URL url);
60
61 public Composite createTaxonHasNoImagesElement(ManagedForm managedForm, Taxon taxon);
62
63 }