Project

General

Profile

Download (829 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.cdm.vaadin.view.registration;
10

    
11
import org.vaadin.viritin.fields.CaptionGenerator;
12

    
13
import eu.etaxonomy.cdm.model.common.CdmBase;
14
import eu.etaxonomy.cdm.ref.TypedEntityReference;
15

    
16
/**
17
 * @author a.kohlbecker
18
 * @since Dec 12, 2018
19
 *
20
 */
21
public class TypedEntityCaptionGenerator<T extends CdmBase> implements CaptionGenerator<TypedEntityReference<T>> {
22

    
23
    private static final long serialVersionUID = 1312587195614966511L;
24

    
25
    @Override
26
    public String getCaption(TypedEntityReference<T> option) {
27
        return option.getLabel();
28
    }
29

    
30
}
(21-21/21)