Project

General

Profile

Download (1.42 KB) Statistics
| Branch: | Tag: | Revision:
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.view.registration;
10

    
11
import javax.annotation.PostConstruct;
12

    
13
import com.vaadin.navigator.View;
14
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
15
import com.vaadin.spring.annotation.SpringView;
16
import com.vaadin.ui.Label;
17
import com.vaadin.ui.VerticalLayout;
18

    
19
/**
20
 * @author a.kohlbecker
21
 * @since Feb 24, 2017
22
 *
23
 */
24
@SpringView(name=TestView1.NAME)
25
/*
26
 * MenuBeanDiscovery is not yet working with spring!!!!!
27
@SpringComponent
28
@Scope(scopeName = ViewScopeImpl.VAADIN_VIEW_SCOPE_NAME, proxyMode = ScopedProxyMode.TARGET_CLASS)
29
@MenuItem(name="test", icon=FontAwesome.INFO_CIRCLE, order = 0)
30
*/
31
public class TestView1 extends VerticalLayout  implements View {
32

    
33
    public static final String NAME = "test1";
34

    
35
    private static final long serialVersionUID = 6152530138547633828L;
36

    
37
    public TestView1(){
38
        setWidth(100, Unit.PERCENTAGE);
39
        setMargin(true);
40
        this.addComponent(new Label("This is only a test!"));
41
    }
42

    
43
    @PostConstruct
44
    protected void initialize() {
45
    }
46

    
47
    /**
48
     * {@inheritDoc}
49
     */
50
    @Override
51
    public void enter(ViewChangeEvent event) {
52
        // TODO Auto-generated method stub
53

    
54
    }
55

    
56

    
57

    
58
}
(16-16/18)