diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2013-02-21 17:04:48 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-04 12:52:55 +0000 |
commit | d937722318c47831775d2f0e6c67b0f0f1d57688 (patch) | |
tree | 92d643f4faa5a13dd86ac175d31e2484ef36cf7a /shared | |
parent | 69def694d5d98f518ad08c039195fd2ac8781d2f (diff) | |
download | vaadin-framework-d937722318c47831775d2f0e6c67b0f0f1d57688.tar.gz vaadin-framework-d937722318c47831775d2f0e6c67b0f0f1d57688.zip |
Maximize Restore for Window #3400
Change-Id: I164ae83bd6cf98f7a3d7e76d8e717a56e8cb5183
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/window/WindowServerRpc.java | 6 | ||||
-rw-r--r-- | shared/src/com/vaadin/shared/ui/window/WindowState.java | 6 |
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 |