Revision 14fd703d
Added by Andreas Kohlbecker about 6 years ago
src/main/java/eu/etaxonomy/vaadin/ui/view/PopupView.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.vaadin.ui.view; |
2 | 2 |
|
3 |
import com.vaadin.ui.Window;
|
|
3 |
import com.vaadin.server.Sizeable.Unit;
|
|
4 | 4 |
|
5 | 5 |
import eu.etaxonomy.vaadin.ui.CanCastComponent; |
6 |
import eu.etaxonomy.vaadin.ui.navigation.NavigationManagerBean; |
|
7 | 6 |
|
8 | 7 |
/** |
9 | 8 |
* This interface defines the api used by the {@link NavigationManagerBean} to |
... | ... | |
15 | 14 |
*/ |
16 | 15 |
public interface PopupView extends CanCastComponent { |
17 | 16 |
|
18 |
String getWindowCaption(); |
|
19 |
|
|
20 | 17 |
boolean isResizable(); |
21 | 18 |
|
22 | 19 |
/** |
20 |
* Whether to show an activepopupView close button in the popup window header. |
|
21 |
*/ |
|
22 |
boolean isClosable(); |
|
23 |
|
|
24 |
boolean isModal(); |
|
25 |
|
|
26 |
/** |
|
27 |
* The initial width of the window. A value of <code>-1</code> |
|
28 |
* means undefined. |
|
29 |
* |
|
23 | 30 |
* @return a positive number to define the initial with of the windows. |
24 | 31 |
* A negative number implies <b>unspecified size</b> (terminal is free |
25 | 32 |
* to set the size). |
26 | 33 |
*/ |
27 |
int getWindowPixelWidth();
|
|
34 |
int getWindowWidth(); |
|
28 | 35 |
|
29 |
boolean isModal(); |
|
36 |
|
|
37 |
Unit getWindowWidthUnit(); |
|
38 |
|
|
39 |
int getWindowHeight(); |
|
30 | 40 |
|
31 | 41 |
/** |
32 | 42 |
* The initial width of the window. A value of <code>-1</code> |
33 | 43 |
* means undefined. |
34 | 44 |
* |
45 |
* @return a positive number to define the initial with of the windows. |
|
46 |
* A negative number implies <b>unspecified size</b> (terminal is free |
|
47 |
* to set the size). |
|
48 |
*/ |
|
49 |
Unit getWindowHeightUnit(); |
|
50 |
|
|
51 |
String getWindowCaption(); |
|
52 |
|
|
53 |
/** |
|
35 | 54 |
* @return |
36 | 55 |
*/ |
37 | 56 |
boolean isWindowCaptionAsHtml(); |
Also available in: Unified diff
ref #7269 layout improvements in messages popup window