1
|
/**
|
2
|
* Copyright (C) 2015 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
|
|
12
|
import java.util.logging.Logger;
|
13
|
|
14
|
import com.vaadin.annotations.Theme;
|
15
|
import com.vaadin.annotations.Widgetset;
|
16
|
import com.vaadin.navigator.Navigator;
|
17
|
import com.vaadin.server.VaadinRequest;
|
18
|
import com.vaadin.spring.annotation.SpringUI;
|
19
|
import com.vaadin.ui.UI;
|
20
|
|
21
|
import eu.etaxonomy.cdm.vaadin.component.taxon.StatusComposite;
|
22
|
|
23
|
/**
|
24
|
* @author cmathew
|
25
|
* @date 11 Mar 2015
|
26
|
*
|
27
|
*/
|
28
|
@Theme("edit")
|
29
|
@SpringUI(path="editstatus")
|
30
|
@Widgetset("eu.etaxonomy.cdm.vaadin.AppWidgetSet")
|
31
|
public class StatusEditorUI extends AbstractAuthenticatedUI {
|
32
|
|
33
|
Navigator navigator;
|
34
|
|
35
|
private static final String FIRST_VIEW = "editstatus";
|
36
|
|
37
|
private final static Logger logger =
|
38
|
Logger.getLogger(StatusEditorUI.class.getName());
|
39
|
|
40
|
@Override
|
41
|
protected void doInit(VaadinRequest request) {
|
42
|
// FIXME: remove this when testing is done
|
43
|
//setIgnoreAuthentication(true);
|
44
|
|
45
|
getPage().setTitle("Status Editor");
|
46
|
StatusComposite statusEditor = new StatusComposite();
|
47
|
UI.getCurrent().getNavigator().addView(FIRST_VIEW, statusEditor);
|
48
|
|
49
|
}
|
50
|
|
51
|
@Override
|
52
|
public String getFirstViewName() {
|
53
|
return FIRST_VIEW;
|
54
|
}
|
55
|
|
56
|
}
|