summaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2016-11-23 20:11:33 +0300
committerDenis Anisimov <denis@vaadin.com>2016-11-29 16:03:31 +0300
commit8ba529503b6caee2d7755f292fb1f9f985943e78 (patch)
treea84eae038a6f6944947835ac5e121decaef0927b /shared/src
parentd2ce5362fffe4d85b95762a02f5e68a980af7789 (diff)
downloadvaadin-framework-8ba529503b6caee2d7755f292fb1f9f985943e78.tar.gz
vaadin-framework-8ba529503b6caee2d7755f292fb1f9f985943e78.zip
Provide access to window order position in windows stack (#14325).
Change-Id: I259c659987b5b15b354e16d0be1523f4ede809f0
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/main/java/com/vaadin/shared/EventId.java1
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/WindowOrderRpc.java41
2 files changed, 42 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/EventId.java b/shared/src/main/java/com/vaadin/shared/EventId.java
index c3a785a988..78580abc41 100644
--- a/shared/src/main/java/com/vaadin/shared/EventId.java
+++ b/shared/src/main/java/com/vaadin/shared/EventId.java
@@ -25,4 +25,5 @@ public interface EventId extends Serializable {
public static final String POLL = "poll";
public static final String CHANGE = "change";
public static final String CONTEXT_CLICK = "cClick";
+ public static final String WINDOW_ORDER = "windowOrder";
}
diff --git a/shared/src/main/java/com/vaadin/shared/ui/WindowOrderRpc.java b/shared/src/main/java/com/vaadin/shared/ui/WindowOrderRpc.java
new file mode 100644
index 0000000000..e3cd8290a7
--- /dev/null
+++ b/shared/src/main/java/com/vaadin/shared/ui/WindowOrderRpc.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2000-2016 Vaadin Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package com.vaadin.shared.ui;
+
+import java.util.HashMap;
+
+import com.vaadin.shared.Connector;
+import com.vaadin.shared.communication.ServerRpc;
+
+/**
+ * Window order RPC interface.
+ * <p>
+ * Notifies server when windows order is changed.
+ *
+ * @author Vaadin Ltd
+ * @since 8.0.0
+ *
+ */
+public interface WindowOrderRpc extends ServerRpc {
+
+ /**
+ * Sends RPC request about windows order change.
+ *
+ * @param windowOrders
+ * new windows order
+ */
+ void windowOrderChanged(HashMap<Integer, Connector> windowOrders);
+} \ No newline at end of file