summaryrefslogtreecommitdiffstats
path: root/shared/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-11-29 16:36:27 +0200
committerVaadin Code Review <review@vaadin.com>2012-11-30 07:42:46 +0000
commit9dd665b56eb4166d2af92a4825c37d20d15ed413 (patch)
treecb49de0aa15e6e8a29464e928c4653dd6ba19dad /shared/src
parentcfb2513cd2049d6cae90b6d2c725a03e75194ce9 (diff)
downloadvaadin-framework-9dd665b56eb4166d2af92a4825c37d20d15ed413.tar.gz
vaadin-framework-9dd665b56eb4166d2af92a4825c37d20d15ed413.zip
UI scroll position can be given programmatically (#9952)
Change-Id: Icef0858ee495abcacab7823f7f8fc6044abd64dc
Diffstat (limited to 'shared/src')
-rw-r--r--shared/src/com/vaadin/shared/ui/ui/ScrollClientRpc.java26
-rw-r--r--shared/src/com/vaadin/shared/ui/ui/UIServerRpc.java3
2 files changed, 29 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/ui/ScrollClientRpc.java b/shared/src/com/vaadin/shared/ui/ui/ScrollClientRpc.java
new file mode 100644
index 0000000000..26ec7f2de2
--- /dev/null
+++ b/shared/src/com/vaadin/shared/ui/ui/ScrollClientRpc.java
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2011 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.ui;
+
+import com.vaadin.shared.communication.ClientRpc;
+
+public interface ScrollClientRpc extends ClientRpc {
+
+ public void setScrollTop(int scrollTop);
+
+ public void setScrollLeft(int scrollLeft);
+}
diff --git a/shared/src/com/vaadin/shared/ui/ui/UIServerRpc.java b/shared/src/com/vaadin/shared/ui/ui/UIServerRpc.java
index 11a400bbe0..a89b70c8cd 100644
--- a/shared/src/com/vaadin/shared/ui/ui/UIServerRpc.java
+++ b/shared/src/com/vaadin/shared/ui/ui/UIServerRpc.java
@@ -23,4 +23,7 @@ public interface UIServerRpc extends ClickRpc, ServerRpc {
@Delayed(lastOnly = true)
public void resize(int viewWidth, int viewHeight, int windowWidth,
int windowHeight);
+
+ @Delayed(lastOnly = true)
+ public void scroll(int scrollTop, int scrollLeft);
} \ No newline at end of file