Project

General

Profile

« Previous | Next » 

Revision b0fdf0ab

Added by Andreas Kohlbecker about 7 years ago

ref #6169 mock service for registrations

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/phycobank/RegistrationWorkflowViewBean.java
20 20

  
21 21
import eu.etaxonomy.cdm.vaadin.component.phycobank.RegistrationWorkflowComponent;
22 22
import eu.etaxonomy.cdm.vaadin.component.phycobank.WorkflowSteps;
23
import eu.etaxonomy.cdm.vaadin.event.phycobank.RegistrationWorkflowEvent;
23 24
import eu.etaxonomy.cdm.vaadin.presenter.phycobank.RegistrationType;
24 25
import eu.etaxonomy.cdm.vaadin.presenter.phycobank.RegistrationWorkflowPresenter;
25 26
import eu.etaxonomy.vaadin.mvp.AbstractView;
......
61 62
           if(params[0].equals(ACTION_NEW)) {
62 63
               regType = RegistrationType.valueOf(params[1]);
63 64
               design.getTitle().setValue(design.getTitle().getValue() + "  " + regType.name() + " ...");
64
               makeWorflow(regType);
65
               eventBus.publishEvent(new RegistrationWorkflowEvent(regType));
66

  
65 67
           } else if( params[0].equals(ACTION_EDIT)) {
66 68
               design.getTitle().setValue(design.getTitle().getValue() + "  " + params[1]);
69
               eventBus.publishEvent(new RegistrationWorkflowEvent(Integer.parseInt(params[1])));
67 70
           }
68 71

  
69 72
        }
70 73
    }
71 74

  
72
    private void makeWorflow(RegistrationType type){
75
    @Override
76
    public void makeWorflow(RegistrationType type){
73 77
        switch (type) {
74 78
        case name:
75 79
            addNameWorkflow();

Also available in: Unified diff