Project

General

Profile

« Previous | Next » 

Revision c33e979b

Added by Andreas Kohlbecker about 7 years ago

ref #6169 preparing for opening name editor

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/view/phycobank/RegistrationWorkflowView.java
8 8
*/
9 9
package eu.etaxonomy.cdm.vaadin.view.phycobank;
10 10

  
11
import java.util.UUID;
12

  
11 13
import com.vaadin.ui.Button;
12 14
import com.vaadin.ui.CssLayout;
13 15
import com.vaadin.ui.Label;
......
29 31

  
30 32
    Label getTitle();
31 33

  
34

  
35
    /**
36
     * Open a popup editor for an existing TaxonName if the nameUuid is
37
     * given otherwise a blank editor will open if the  nameUuid is null.
38
     *
39
     * @param nameUuid can be null
40
     */
41
    void openNameEditor(UUID nameUuid);
42

  
32 43
}
src/main/java/eu/etaxonomy/cdm/vaadin/view/phycobank/RegistrationWorkflowViewBean.java
8 8
*/
9 9
package eu.etaxonomy.cdm.vaadin.view.phycobank;
10 10

  
11
import java.util.UUID;
12

  
11 13
import org.springframework.beans.factory.annotation.Autowired;
12 14

  
13 15
import com.vaadin.navigator.View;
......
102 104
    public Label getCaptionLabel() {
103 105
        return design.getCaptionLabel();
104 106
    }
107

  
108
    /**
109
     * {@inheritDoc}
110
     */
111
    @Override
112
    public void openNameEditor(UUID nameUuid) {
113
        // TODO Auto-generated method stub
114

  
115
    }
105 116
}
src/main/java/eu/etaxonomy/vaadin/mvp/AbstractPresenter.java
2 2

  
3 3
import java.util.logging.Logger;
4 4

  
5
import org.springframework.beans.factory.annotation.Autowired;
6

  
5 7
import com.vaadin.spring.annotation.SpringComponent;
6 8

  
9
import eu.etaxonomy.cdm.api.application.CdmRepository;
10

  
7 11
/**
8 12
 * AbstractPresenter is the base class of all presenter components. Presenter's
9 13
 * role is to govern the view and control the complex UI logic based on
......
19 23

  
20 24
	private V view;
21 25

  
26
	@Autowired
27
	private CdmRepository repo;
28

  
22 29
	protected V getView() {
23 30
		return view;
24 31
	}

Also available in: Unified diff