Project

General

Profile

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

    
11
import eu.etaxonomy.cdm.model.permission.Group;
12
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
13
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
14
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
15

    
16
/**
17
 * @author a.kohlbecker
18
 *
19
 */
20
public class GroupSelectionElement extends EntitySelectionElement<Group> {
21

    
22
	public GroupSelectionElement(CdmFormFactory formFactory,//ConversationHolder conversation,
23
	        ICdmFormElement parentElement,
24
			String labelString, Group entity, int mode,
25
			int style) {
26
		super(formFactory, //conversation,
27
		        parentElement, Group.class, labelString, entity,
28
				mode, style);
29
	}
30

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

    
42
}
(4-4/6)