Project

General

Profile

Download (1.07 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
@Deprecated // FIXME delete also all css styles if any
21
public class WorkflowBulletItem extends WorkflowItemDesign {
22

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

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

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

    
41
}
(7-7/8)