Revision f3bb4cae
Added by Andreas Kohlbecker about 7 years ago
src/main/java/eu/etaxonomy/vaadin/ui/view/AbstractPopupEditor.java | ||
---|---|---|
24 | 24 |
import com.vaadin.ui.VerticalLayout; |
25 | 25 |
import com.vaadin.ui.themes.ValoTheme; |
26 | 26 |
|
27 |
import eu.etaxonomy.cdm.api.application.CdmRepository; |
|
27 | 28 |
import eu.etaxonomy.vaadin.ui.view.DoneWithPopupEvent.Reason; |
28 | 29 |
|
29 |
public abstract class AbstractPopupEditor<DTO extends Object> extends CustomComponent
|
|
30 |
implements PopupView {
|
|
30 |
//FIXME this pop editor is not following the MVP pattern, the com.vaadin.devday.mvp.ui.AbstractPopupView is designed better in this sense!!
|
|
31 |
public abstract class AbstractPopupEditor<DTO extends Object> extends CustomComponent implements PopupView {
|
|
31 | 32 |
|
32 | 33 |
private static final long serialVersionUID = 1441816620197127918L; |
33 | 34 |
|
... | ... | |
40 | 41 |
@Autowired |
41 | 42 |
ApplicationEventPublisher eventBus; |
42 | 43 |
|
44 |
@Autowired |
|
45 |
CdmRepository cdmRepository; |
|
46 |
|
|
43 | 47 |
private HorizontalLayout buttonLayout; |
44 | 48 |
|
45 | 49 |
private Button save; |
... | ... | |
64 | 68 |
} |
65 | 69 |
} |
66 | 70 |
|
71 |
protected CdmRepository getRepsitory() { |
|
72 |
return cdmRepository; |
|
73 |
} |
|
74 |
|
|
67 | 75 |
public abstract void storeDto(DTO bean) throws CommitException; |
68 | 76 |
|
69 | 77 |
public AbstractPopupEditor(Class<DTO> dtoType) { |
Also available in: Unified diff
ref #6169 very basic Reference editor experiment