Project

General

Profile

Download (1.05 KB) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.vaadin.ui.navigation;
2

    
3
import java.util.List;
4

    
5
import com.vaadin.navigator.View;
6
import com.vaadin.ui.Field;
7

    
8
import eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter;
9
import eu.etaxonomy.vaadin.mvp.ApplicationView;
10
import eu.etaxonomy.vaadin.ui.view.PopupView;
11

    
12
public interface NavigationManager {
13

    
14
	View getCurrentView();
15

    
16
	/**
17
	 *
18
	 * @param popupType
19
	 *         Type of the popup to open
20
	 * @param parentView
21
	 *         The view from where the request to open the popup is being triggered
22
	 * @param targetField
23
	 *         The field which will needs to be updated after the popup view has been closed. Can be <code>null</code>.
24
	 * @return
25
	 */
26
	<T extends PopupView> T showInPopup(Class<T> popupType, ApplicationView parentView, Field<?> targetField);
27

    
28
	public List<AbstractEditorPresenter<?,?>> getPopupEditorPresenters();
29

    
30
	void reloadCurrentView();
31

    
32
	public String getCurrentViewName();
33

    
34
	/**
35
	 *
36
	 * @return
37
	 */
38
	public List<String> getCurrentViewParameters();
39

    
40
    Field<?> targetFieldOf(ApplicationView parentView, PopupView popupView);
41
}
(3-3/8)