Project

General

Profile

Download (805 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2017 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.util;
10

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

    
13
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
14

    
15
/**
16
 * @author a.kohlbecker
17
 * @since Jun 7, 2017
18
 *
19
 */
20
public final class CdmTitleCacheCaptionGenerator<T extends IdentifiableEntity> implements CaptionGenerator<T> {
21

    
22
    private static final long serialVersionUID = 3151383366731447990L;
23

    
24
    public CdmTitleCacheCaptionGenerator(){
25
    }
26

    
27
    @Override
28
    public String getCaption(T option) {
29
        return option.getTitleCache();
30
    }
31
}
(4-4/16)