1 |
6469b938
|
Andreas Kohlbecker
|
/**
|
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 |
eaee371d
|
Andreas Kohlbecker
|
package eu.etaxonomy.cdm.vaadin.view.registration;
|
10 |
6469b938
|
Andreas Kohlbecker
|
|
11 |
3f1ceae0
|
Andreas Kohlbecker
|
import org.springframework.beans.factory.annotation.Autowired;
|
12 |
be4a9789
|
Andreas Kohlbecker
|
import org.vaadin.spring.events.EventBus;
|
13 |
3f1ceae0
|
Andreas Kohlbecker
|
|
14 |
6469b938
|
Andreas Kohlbecker
|
import com.vaadin.navigator.View;
|
15 |
|
|
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
|
16 |
|
|
import com.vaadin.server.Responsive;
|
17 |
|
|
import com.vaadin.spring.annotation.SpringView;
|
18 |
|
|
|
19 |
eaee371d
|
Andreas Kohlbecker
|
import eu.etaxonomy.cdm.vaadin.design.registration.DashBoardDesign;
|
20 |
3f1ceae0
|
Andreas Kohlbecker
|
import eu.etaxonomy.vaadin.ui.navigation.NavigationEvent;
|
21 |
6469b938
|
Andreas Kohlbecker
|
|
22 |
|
|
/**
|
23 |
|
|
* @author a.kohlbecker
|
24 |
|
|
* @since Mar 2, 2017
|
25 |
|
|
*
|
26 |
|
|
*/
|
27 |
|
|
@SpringView(name=DashBoardView.NAME)
|
28 |
|
|
public class DashBoardView extends DashBoardDesign implements View {
|
29 |
|
|
|
30 |
|
|
public static final String NAME = "dashboard";
|
31 |
|
|
|
32 |
|
|
private static final long serialVersionUID = -6172448806905158782L;
|
33 |
|
|
|
34 |
3f1ceae0
|
Andreas Kohlbecker
|
@Autowired
|
35 |
be4a9789
|
Andreas Kohlbecker
|
protected EventBus.UIEventBus uiEventBus;
|
36 |
3f1ceae0
|
Andreas Kohlbecker
|
|
37 |
6469b938
|
Andreas Kohlbecker
|
public DashBoardView() {
|
38 |
|
|
Responsive.makeResponsive(dashboard);
|
39 |
be4a9789
|
Andreas Kohlbecker
|
buttonNew.addClickListener(e -> uiEventBus.publish(this, new NavigationEvent(StartRegistrationViewBean.NAME)));
|
40 |
|
|
buttonContinue.addClickListener(e -> uiEventBus.publish(this, new NavigationEvent(ListViewBean.NAME + "/" + ListView.Mode.inProgress.name())));
|
41 |
|
|
buttonList.addClickListener(e -> uiEventBus.publish(this, new NavigationEvent(ListViewBean.NAME + "/" + ListViewBean.Mode.all.name())));
|
42 |
6469b938
|
Andreas Kohlbecker
|
}
|
43 |
|
|
|
44 |
|
|
/**
|
45 |
|
|
* {@inheritDoc}
|
46 |
|
|
*/
|
47 |
|
|
@Override
|
48 |
|
|
public void enter(ViewChangeEvent event) {
|
49 |
|
|
// TODO Auto-generated method stub
|
50 |
|
|
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
}
|