Revision 139902da
Added by Patrick Plitzner over 10 years ago
- completely removed DetailType enum and all its uses
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ReferencedEntityDetailSection.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2009 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
15 | 15 |
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase; |
16 | 16 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
|
|
18 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
|
19 | 19 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
20 | 20 |
|
21 | 21 |
/** |
... | ... | |
31 | 31 |
super(formFactory, conversation, parentElement, selectionProvider, style); |
32 | 32 |
} |
33 | 33 |
|
34 |
@Override |
|
35 |
protected DetailType getDetailType() { |
|
36 |
return DetailType.REFERENCED_ENTITY; |
|
37 |
} |
|
38 |
|
|
39 | 34 |
@Override |
40 | 35 |
public String getHeading() { |
41 | 36 |
return "Reference"; |
42 | 37 |
} |
43 | 38 |
|
39 |
/* (non-Javadoc) |
|
40 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
41 |
*/ |
|
42 |
@Override |
|
43 |
protected AbstractCdmDetailElement<ReferencedEntityBase> createCdmDetailElement(AbstractCdmDetailSection<ReferencedEntityBase> parentElement, int style) { |
|
44 |
return formFactory.createReferenceEntityDetailElement(parentElement); |
|
45 |
} |
|
44 | 46 |
|
45 | 47 |
} |
Also available in: Unified diff