3 * Copyright (C) 2012 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.group
;
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
;
19 * @author a.kohlbecker
22 public class GroupSelectionElement
extends EntitySelectionElement
<Group
> {
24 public GroupSelectionElement(CdmFormFactory formFactory
,
25 ConversationHolder conversation
, ICdmFormElement parentElement
,
26 String labelString
, Group entity
, int mode
,
28 super(formFactory
, conversation
, parentElement
, Group
.class, labelString
, entity
,
33 * @see eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement#getTitle()
36 protected String
getTitle() {
37 if (getEntity() != null) {
38 return getEntity().getName();
40 return super.getTitle();