1
|
package eu.etaxonomy.vaadin.ui.view;
|
2
|
|
3
|
import com.vaadin.ui.Window;
|
4
|
|
5
|
import eu.etaxonomy.vaadin.ui.CanCastComponent;
|
6
|
import eu.etaxonomy.vaadin.ui.navigation.NavigationManagerBean;
|
7
|
|
8
|
/**
|
9
|
* This interface defines the api used by the {@link NavigationManagerBean} to
|
10
|
* show popup view in a {@link Window} with caption etc.
|
11
|
*
|
12
|
* @author a.kohlbecker
|
13
|
* @since Apr 5, 2017
|
14
|
*
|
15
|
*/
|
16
|
public interface PopupView extends CanCastComponent {
|
17
|
|
18
|
String getWindowCaption();
|
19
|
|
20
|
boolean isResizable();
|
21
|
|
22
|
int getWindowPixelWidth();
|
23
|
|
24
|
boolean isModal();
|
25
|
|
26
|
/**
|
27
|
* The initial width of the window. A value of <code>-1</code>
|
28
|
* means undefined.
|
29
|
*
|
30
|
* @return
|
31
|
*/
|
32
|
boolean isWindowCaptionAsHtml();
|
33
|
|
34
|
/**
|
35
|
* Is called once the popView is displayed in the UI
|
36
|
*/
|
37
|
void viewEntered();
|
38
|
|
39
|
/**
|
40
|
* Can be implemented by editor views to set the focus on a specific form
|
41
|
* item.
|
42
|
*/
|
43
|
void focusFirst();
|
44
|
|
45
|
/**
|
46
|
* Cancel any operation in progress and close the view.
|
47
|
*/
|
48
|
public void cancel();
|
49
|
|
50
|
|
51
|
}
|