Project

General

Profile

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

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

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

    
22
    private static final long serialVersionUID = 7224620045791102584L;
23

    
24
    public WorkflowSteps() {
25
        // TODO Auto-generated constructor stub
26
    }
27

    
28
    public void appendWorkflowItem(WorkflowItem item){
29
        this.steps.addComponent(item);
30
    }
31

    
32
    public void appendNewWorkflowItem(int stepIndex, String caption, ClickListener listener){
33
        this.steps.addComponent(new WorkflowItem(stepIndex, caption, listener));
34
    }
35

    
36
}
(3-3/3)