Project

General

Profile

Download (1.02 KB) 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
import com.vaadin.ui.Button.ClickListener;
12

    
13
import eu.etaxonomy.cdm.vaadin.design.registration.WorkflowItemDesign;
14

    
15
/**
16
 * @author a.kohlbecker
17
 * @since Mar 10, 2017
18
 *
19
 */
20
public class WorkflowBulletItem extends WorkflowItemDesign {
21

    
22
    private static final long serialVersionUID = -6825656185698773467L;
23

    
24
    /**
25
     *
26
     */
27
    public WorkflowBulletItem(int stepIndex, String caption, ClickListener listener) {
28
        this.stepIndex.setCaption(Integer.toString(stepIndex));
29
        this.caption.setValue(caption);
30
        if(listener != null){
31
            this.stepIndex.addClickListener(listener);
32
        }
33
    }
34

    
35
    @Override
36
    public void setCaption(String text){
37
        this.caption.setValue(text);
38
    }
39

    
40
}
(3-3/4)