Revision f97b0886
Added by Andreas Kohlbecker about 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/ui/RegistrationUI.java | ||
---|---|---|
1 |
/** |
|
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 |
package eu.etaxonomy.cdm.vaadin.ui; |
|
10 |
|
|
11 |
import org.springframework.beans.factory.annotation.Autowired; |
|
12 |
|
|
13 |
import com.vaadin.annotations.Theme; |
|
14 |
import com.vaadin.annotations.Title; |
|
15 |
import com.vaadin.annotations.Viewport; |
|
16 |
import com.vaadin.annotations.Widgetset; |
|
17 |
import com.vaadin.navigator.ViewDisplay; |
|
18 |
import com.vaadin.server.Responsive; |
|
19 |
import com.vaadin.server.VaadinRequest; |
|
20 |
import com.vaadin.spring.annotation.SpringUI; |
|
21 |
import com.vaadin.ui.Component; |
|
22 |
import com.vaadin.ui.UI; |
|
23 |
import com.vaadin.ui.themes.ValoTheme; |
|
24 |
|
|
25 |
/** |
|
26 |
* @author a.kohlbecker |
|
27 |
* @since Feb 24, 2017 |
|
28 |
* |
|
29 |
*/ |
|
30 |
@Theme("edit-valo") |
|
31 |
@Title("Registration") |
|
32 |
@SpringUI(path="registration") |
|
33 |
@Viewport("width=device-width, initial-scale=1") |
|
34 |
@Widgetset("eu.etaxonomy.cdm.vaadin.AppWidgetSet") |
|
35 |
@SuppressWarnings("serial") |
|
36 |
// @PreserveOnRefresh |
|
37 |
// @Push |
|
38 |
public class RegistrationUI extends UI { |
|
39 |
|
|
40 |
@Autowired |
|
41 |
private ViewDisplay viewDisplay; |
|
42 |
|
|
43 |
@Autowired |
|
44 |
// private javax.enterprise.event.Event<UIInitializedEvent> event; |
|
45 |
|
|
46 |
@Override |
|
47 |
protected void init(VaadinRequest request) { |
|
48 |
addStyleName(ValoTheme.UI_WITH_MENU); |
|
49 |
Responsive.makeResponsive(this); |
|
50 |
|
|
51 |
setContent((Component) viewDisplay); |
|
52 |
|
|
53 |
// event.fire(new UIInitializedEvent()); |
|
54 |
} |
|
55 |
} |
Also available in: Unified diff
initial UI class for the phycobank