Project

General

Profile

Download (1.25 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2012 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
package eu.etaxonomy.taxeditor.ui.section.group;
11

    
12
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
13
import eu.etaxonomy.cdm.model.common.Group;
14
import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
15
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
16
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
17

    
18
/**
19
 * @author a.kohlbecker
20
 *
21
 */
22
public class GroupSelectionElement extends EntitySelectionElement<Group> {
23
	
24
	public GroupSelectionElement(CdmFormFactory formFactory,
25
			ConversationHolder conversation, ICdmFormElement parentElement,
26
			String labelString, Group entity, int mode,
27
			int style) {
28
		super(formFactory, conversation, parentElement, Group.class, labelString, entity,
29
				mode, style);
30
	}
31

    
32
	/* (non-Javadoc)
33
	 * @see eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement#getTitle()
34
	 */
35
	@Override
36
	protected String getTitle() {
37
		if (getEntity() != null) {
38
			return getEntity().getName();
39
		}
40
		return super.getTitle();
41
	}
42

    
43
}
(4-4/6)