Project

General

Profile

« Previous | Next » 

Revision 1ca00ef0

Added by Andreas Kohlbecker about 7 years ago

ref #6169 more complete workflow view

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/phycobank/RegistrationWorkflowView.java
12 12
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
13 13
import com.vaadin.spring.annotation.SpringView;
14 14

  
15
import eu.etaxonomy.cdm.vaadin.design.phycobank.RegistrationWorkflowDesign;
16
import eu.etaxonomy.cdm.vaadin.presenter.phycobank.RegistrationType;
17

  
15 18
/**
16 19
 * @author a.kohlbecker
17 20
 * @since Mar 2, 2017
18 21
 *
19 22
 */
20 23
@SpringView(name=RegistrationWorkflowView.NAME)
21
public class RegistrationWorkflowView implements View {
24
public class RegistrationWorkflowView extends RegistrationWorkflowDesign implements View {
22 25

  
23 26
    private static final long serialVersionUID = -213040114015958970L;
24 27

  
25 28
    public static final String NAME = "workflow";
26 29

  
30
    RegistrationType regType = null;
31

  
27 32
    /**
28 33
     * {@inheritDoc}
29 34
     */
30 35
    @Override
31 36
    public void enter(ViewChangeEvent event) {
37
        if(event.getParameters() != null){
38
           String[] params = event.getParameters().split("/");
39
           if(params.length > 0){
40
               regType = RegistrationType.valueOf(params[0]);
41
               title.setValue(title.getValue() + "  " + regType.name() + " ...");
42
           }
43
        }
32 44

  
33 45
    }
34 46

  

Also available in: Unified diff