1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.taxeditor.ui.section.supplemental.identifier;
|
12
|
|
13
|
import java.util.Collection;
|
14
|
|
15
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
16
|
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
|
17
|
import eu.etaxonomy.cdm.model.common.Identifier;
|
18
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
19
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
20
|
|
21
|
/**
|
22
|
*
|
23
|
* @author pplitzner
|
24
|
*
|
25
|
*/
|
26
|
public class DerivedUnitFacadeIdentifierSection extends AbstractIdentifierSection<DerivedUnitFacade> {
|
27
|
|
28
|
|
29
|
public DerivedUnitFacadeIdentifierSection(CdmFormFactory formFactory,
|
30
|
ConversationHolder conversation, ICdmFormElement parentElement,
|
31
|
int style) {
|
32
|
super(formFactory, conversation, parentElement, style);
|
33
|
}
|
34
|
|
35
|
@Override
|
36
|
public Collection<Identifier> getCollection(DerivedUnitFacade entity) {
|
37
|
return entity.getIdentifiers();
|
38
|
}
|
39
|
|
40
|
|
41
|
@Override
|
42
|
public void addElement(Identifier element) {
|
43
|
getEntity().addIdentifier(element);
|
44
|
}
|
45
|
|
46
|
|
47
|
@Override
|
48
|
public void removeElement(Identifier element) {
|
49
|
getEntity().removeIdentifier(element);
|
50
|
}
|
51
|
|
52
|
}
|