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.vaadin.ui.navigation;
|
10
|
|
11
|
import java.util.List;
|
12
|
|
13
|
import com.vaadin.navigator.View;
|
14
|
import com.vaadin.ui.Field;
|
15
|
|
16
|
import eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter;
|
17
|
import eu.etaxonomy.vaadin.mvp.ApplicationView;
|
18
|
import eu.etaxonomy.vaadin.ui.view.PopupView;
|
19
|
|
20
|
public interface NavigationManager {
|
21
|
|
22
|
View getCurrentView();
|
23
|
|
24
|
/**
|
25
|
*
|
26
|
* @param popupType
|
27
|
* Type of the popup to open
|
28
|
* @param parentView
|
29
|
* The view from where the request to open the popup is being triggered
|
30
|
* @param targetField
|
31
|
* The field which will needs to be updated after the popup view has been closed. Can be <code>null</code>.
|
32
|
* @return
|
33
|
*/
|
34
|
<T extends PopupView> T showInPopup(Class<T> popupType, ApplicationView parentView, Field<?> targetField);
|
35
|
|
36
|
public List<AbstractEditorPresenter<?,?>> getPopupEditorPresenters();
|
37
|
|
38
|
void reloadCurrentView();
|
39
|
|
40
|
public String getCurrentViewName();
|
41
|
|
42
|
/**
|
43
|
*
|
44
|
* @return
|
45
|
*/
|
46
|
public List<String> getCurrentViewParameters();
|
47
|
|
48
|
Field<?> targetFieldOf(PopupView popupView);
|
49
|
}
|