2 * Copyright (C) 2018 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.vaadin
.view
.registration
;
11 import org
.vaadin
.viritin
.fields
.CaptionGenerator
;
13 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
14 import eu
.etaxonomy
.cdm
.ref
.TypedEntityReference
;
17 * @author a.kohlbecker
21 public class TypedEntityCaptionGenerator
<T
extends CdmBase
> implements CaptionGenerator
<TypedEntityReference
<T
>> {
23 private static final long serialVersionUID
= 1312587195614966511L;
26 public String
getCaption(TypedEntityReference
<T
> option
) {
27 return option
.getLabel();