Project

General

Profile

Download (925 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.component.registration;
10

    
11

    
12
import org.apache.commons.lang.StringUtils;
13

    
14
import com.vaadin.ui.Label;
15

    
16
import eu.etaxonomy.cdm.model.name.RegistrationStatus;
17

    
18
/**
19
 * @author a.kohlbecker
20
 * @since Mar 30, 2017
21
 *
22
 */
23
public class RegistrationStateLabel extends Label {
24

    
25

    
26
    /**
27
     *
28
     */
29
    private static final long serialVersionUID = -7462726193336938780L;
30

    
31
    /**
32
    *
33
    */
34
   public RegistrationStateLabel update(RegistrationStatus status) {
35

    
36
       setValue(StringUtils.capitalize((status.name().toLowerCase())));
37
       addStyleName("status-" + status.name());
38
       setWidth("90px");
39
       return this;
40
   }
41

    
42

    
43

    
44

    
45
}
(4-4/8)