Project

General

Profile

Download (1.56 KB) Statistics
| Branch: | Tag: | Revision:
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.name;
11

    
12
import java.util.List;
13

    
14
import eu.etaxonomy.cdm.model.name.HomotypicalGroup;
15
import eu.etaxonomy.cdm.model.taxon.Synonym;
16

    
17
/**
18
 * <p>HomotypicalSynonymGroup class.</p>
19
 *
20
 * @author p.ciardelli
21
 * @created 13.01.2009
22
 * @version 1.0
23
 */
24
public class HomotypicalSynonymGroup extends AbstractGroup {
25

    
26
	private HomotypicalGroup group;
27
	
28
	/**
29
	 * <p>Constructor for HomotypicalSynonymGroup.</p>
30
	 *
31
	 * @param editor a {@link eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor} object.
32
	 * @param group a {@link eu.etaxonomy.cdm.model.name.HomotypicalGroup} object.
33
	 */
34
	public HomotypicalSynonymGroup(TaxonNameEditor editor, HomotypicalGroup group) {
35
		super(editor);
36
		this.group = group;
37
	}
38
	
39
	/**
40
	 * <p>Getter for the field <code>group</code>.</p>
41
	 *
42
	 * @return a {@link eu.etaxonomy.cdm.model.name.HomotypicalGroup} object.
43
	 */
44
	public HomotypicalGroup getGroup() {
45
		return group;
46
	}
47

    
48
	/** {@inheritDoc} */
49
	@Override
50
	public void redraw() {
51
		List<Synonym> synonyms = getGroup().getSynonymsInGroup(getNameEditor().getTaxon().getSec());
52
		
53
		ContainerFactory.getInstance().fillGroup(this, synonyms, ContainerFactory.SYNONYM);
54
	}
55

    
56
	/**
57
	 * <p>onComplete</p>
58
	 *
59
	 * @return a boolean.
60
	 */
61
	public boolean onComplete() {
62
		// TODO Auto-generated method stub
63
		return false;
64
	}
65
}
(8-8/22)