summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-01-19 16:16:35 +0200
committerVaadin Code Review <review@vaadin.com>2015-06-05 12:58:55 +0000
commit7adec3cd86956fde2fe3670ed4b0eef97bbb0904 (patch)
tree55415308abdec1f3de103135cea0217cab81526f /server/src
parent67b0e2dd3f1f520bf25b3715f9cddcefcc24689f (diff)
downloadvaadin-framework-7adec3cd86956fde2fe3670ed4b0eef97bbb0904.tar.gz
vaadin-framework-7adec3cd86956fde2fe3670ed4b0eef97bbb0904.zip
Convenience Window.setPosition(x,y) (#16335)
Change-Id: If574863fc24cecb9f8d17773833817d67f3a0e12
Diffstat (limited to 'server/src')
-rw-r--r--server/src/com/vaadin/ui/Window.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Window.java b/server/src/com/vaadin/ui/Window.java
index 61664fc95d..4d63f40043 100644
--- a/server/src/com/vaadin/ui/Window.java
+++ b/server/src/com/vaadin/ui/Window.java
@@ -268,6 +268,21 @@ public class Window extends Panel implements FocusNotifier, BlurNotifier,
}
/**
+ * Sets the position of the window on the screen using
+ * {@link #setPositionX(int)} and {@link #setPositionY(int)}
+ *
+ * @since
+ * @param x
+ * The new x coordinate for the window
+ * @param y
+ * The new y coordinate for the window
+ */
+ public void setPosition(int x, int y) {
+ setPositionX(x);
+ setPositionY(y);
+ }
+
+ /**
* Sets the distance of Window left border in pixels from left border of the
* containing (main window). Has effect only if in {@link WindowMode#NORMAL}
* mode.