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.util;
|
10
|
|
11
|
import org.vaadin.viritin.fields.CaptionGenerator;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
14
|
|
15
|
/**
|
16
|
* @author a.kohlbecker
|
17
|
* @since Dec 12, 2018
|
18
|
*
|
19
|
*/
|
20
|
public class ReferenceCaptionGenerator implements CaptionGenerator<Reference> {
|
21
|
|
22
|
private int authorsCharsVisible = 20;
|
23
|
|
24
|
private int titleCharsVisible = 20;
|
25
|
|
26
|
/**
|
27
|
* {@inheritDoc}
|
28
|
*/
|
29
|
@Override
|
30
|
public String getCaption(Reference reference) {
|
31
|
String title = "";
|
32
|
|
33
|
return null;
|
34
|
}
|
35
|
|
36
|
}
|