summaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/com/vaadin/shared/ui/window/WindowServerRpc.java6
-rw-r--r--shared/src/com/vaadin/shared/ui/window/WindowState.java6
2 files changed, 12 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/window/WindowServerRpc.java b/shared/src/com/vaadin/shared/ui/window/WindowServerRpc.java
index c42f91c006..0128adca40 100644
--- a/shared/src/com/vaadin/shared/ui/window/WindowServerRpc.java
+++ b/shared/src/com/vaadin/shared/ui/window/WindowServerRpc.java
@@ -15,8 +15,14 @@
*/
package com.vaadin.shared.ui.window;
+import com.vaadin.shared.annotations.Delayed;
import com.vaadin.shared.communication.ServerRpc;
import com.vaadin.shared.ui.ClickRpc;
+import com.vaadin.shared.ui.window.WindowState.DisplayState;
public interface WindowServerRpc extends ClickRpc, ServerRpc {
+
+ @Delayed(lastOnly = true)
+ public void windowDisplayStateChanged(DisplayState newState);
+
} \ No newline at end of file
diff --git a/shared/src/com/vaadin/shared/ui/window/WindowState.java b/shared/src/com/vaadin/shared/ui/window/WindowState.java
index 4afc20f2b1..eb6f1c758a 100644
--- a/shared/src/com/vaadin/shared/ui/window/WindowState.java
+++ b/shared/src/com/vaadin/shared/ui/window/WindowState.java
@@ -21,6 +21,11 @@ public class WindowState extends PanelState {
{
primaryStyleName = "v-window";
}
+
+ public enum DisplayState {
+ NORMAL, MAXIMIZED;
+ }
+
public boolean modal = false;
public boolean resizable = true;
public boolean resizeLazy = false;
@@ -28,4 +33,5 @@ public class WindowState extends PanelState {
public boolean centered = false;;
public int positionX = -1;
public int positionY = -1;
+ public DisplayState displayState = DisplayState.NORMAL;
} \ No newline at end of file