diff options
author | Artur Signell <artur@vaadin.com> | 2013-04-22 13:52:21 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-04-23 07:45:59 +0000 |
commit | 069e4d2d870fc174df10680275fe7614274edba7 (patch) | |
tree | a6fd42763e636467099074727561f708dd6619d5 /uitest/src/com | |
parent | 0584f4a9a5ec602e421f969dc91029891605dea5 (diff) | |
download | vaadin-framework-069e4d2d870fc174df10680275fe7614274edba7.tar.gz vaadin-framework-069e4d2d870fc174df10680275fe7614274edba7.zip |
Renamed DisplayState to WindowMode (#11662)
Change-Id: I0f70c4195a0871185a1924b008ebd855068e5787
Diffstat (limited to 'uitest/src/com')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/window/WindowMaximizeRestoreTest.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/uitest/src/com/vaadin/tests/components/window/WindowMaximizeRestoreTest.java b/uitest/src/com/vaadin/tests/components/window/WindowMaximizeRestoreTest.java index fe45b036a1..a8102a7d1a 100644 --- a/uitest/src/com/vaadin/tests/components/window/WindowMaximizeRestoreTest.java +++ b/uitest/src/com/vaadin/tests/components/window/WindowMaximizeRestoreTest.java @@ -4,7 +4,7 @@ import com.vaadin.data.Item; import com.vaadin.data.Property.ValueChangeEvent; import com.vaadin.data.Property.ValueChangeListener; import com.vaadin.server.VaadinRequest; -import com.vaadin.shared.ui.window.WindowState.DisplayState; +import com.vaadin.shared.ui.window.WindowMode; import com.vaadin.tests.components.AbstractTestUI; import com.vaadin.ui.Button; import com.vaadin.ui.Button.ClickEvent; @@ -17,8 +17,8 @@ import com.vaadin.ui.VerticalLayout; import com.vaadin.ui.Window; import com.vaadin.ui.Window.CloseEvent; import com.vaadin.ui.Window.CloseListener; -import com.vaadin.ui.Window.DisplayStateChangeEvent; -import com.vaadin.ui.Window.DisplayStateChangeListener; +import com.vaadin.ui.Window.WindowModeChangeEvent; +import com.vaadin.ui.Window.WindowModeChangeListener; public class WindowMaximizeRestoreTest extends AbstractTestUI { Button.ClickListener addListener = new Button.ClickListener() { @@ -72,11 +72,11 @@ public class WindowMaximizeRestoreTest extends AbstractTestUI { @Override public void buttonClick(ClickEvent event) { - if (w.getDisplayState() == DisplayState.MAXIMIZED) { - w.setDisplayState(DisplayState.NORMAL); + if (w.getWindowMode() == WindowMode.MAXIMIZED) { + w.setWindowMode(WindowMode.NORMAL); maximize.setCaption("Maximize"); } else { - w.setDisplayState(DisplayState.MAXIMIZED); + w.setWindowMode(WindowMode.MAXIMIZED); maximize.setCaption("Restore"); } } @@ -85,15 +85,15 @@ public class WindowMaximizeRestoreTest extends AbstractTestUI { maximize.addClickListener(listener); ((ComponentContainer) w.getContent()).addComponent(maximize); - w.addDisplayStateChangeListener(new DisplayStateChangeListener() { + w.addWindowModeChangeListener(new WindowModeChangeListener() { @Override - public void displayStateChanged(DisplayStateChangeEvent event) { - DisplayState state = (event.getWindow().getDisplayState()); - if (state == DisplayState.NORMAL) { + public void windowModeChanged(WindowModeChangeEvent event) { + WindowMode state = (event.getWindow().getWindowMode()); + if (state == WindowMode.NORMAL) { w.setCaption("Window " + w.getData() + " Normal"); maximize.setCaption("Maximize"); - } else if (state == DisplayState.MAXIMIZED) { + } else if (state == WindowMode.MAXIMIZED) { w.setCaption("Window " + w.getData() + " Maximized"); maximize.setCaption("Restore"); } |