2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.editor
;
14 import org
.eclipse
.swt
.widgets
.Composite
;
15 import org
.eclipse
.ui
.forms
.IManagedForm
;
16 import org
.eclipse
.ui
.forms
.ManagedForm
;
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
;
31 public interface IFreeTextElementFactory
{
33 /* Taxon name editor elements */
35 public Composite
createAcceptedTaxon(IManagedForm form
, Taxon taxon
);
37 public Composite
createSynonym(Taxon taxon
, Synonym synonym
);
39 public Composite
createMisappliedName(Taxon taxon
, Taxon misappliedName
);
41 public Composite
createHomotypicalGroup(Taxon taxon
, HomotypicalGroup group
);
43 public Composite
createMisappliedGroup(Taxon taxon
);
45 public Composite
createConceptGroup(Taxon taxon
);
47 public Composite
createConcept(Taxon taxon
, TaxonRelationship relationship
);
49 /* Taxon description editor elements */
51 public Composite
createDescriptionLabel(IManagedForm form
, Taxon taxon
, TaxonDescription description
);
53 public Composite
createDescriptionElement(Taxon taxon
, TaxonDescription description
, DescriptionElementBase element
);
55 public Composite
createDescriptionGroup(Taxon taxon
, TaxonDescription description
);
57 public Composite
createDescriptionFeatureGroup(Taxon taxon
, TaxonDescription description
, Feature feature
);
59 public Composite
createImageElement(ManagedForm managedForm
, Taxon taxon
, URL url
);
61 public Composite
createTaxonHasNoImagesElement(ManagedForm managedForm
, Taxon taxon
);