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
|
/**
|
23
|
* @return a positive number to define the initial with of the windows.
|
24
|
* A negative number implies <b>unspecified size</b> (terminal is free
|
25
|
* to set the size).
|
26
|
*/
|
27
|
int getWindowPixelWidth();
|
28
|
|
29
|
boolean isModal();
|
30
|
|
31
|
/**
|
32
|
* The initial width of the window. A value of <code>-1</code>
|
33
|
* means undefined.
|
34
|
*
|
35
|
* @return
|
36
|
*/
|
37
|
boolean isWindowCaptionAsHtml();
|
38
|
|
39
|
/**
|
40
|
* Is called once the popView is displayed in the UI
|
41
|
*/
|
42
|
void viewEntered();
|
43
|
|
44
|
/**
|
45
|
* Can be implemented by editor views to set the focus on a specific form
|
46
|
* item.
|
47
|
*/
|
48
|
void focusFirst();
|
49
|
|
50
|
/**
|
51
|
* Cancel any operation in progress and close the view.
|
52
|
*/
|
53
|
public void cancel();
|
54
|
|
55
|
|
56
|
}
|