aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldServerRpc.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldServerRpc.java b/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldServerRpc.java
index e82c45f171..0344110443 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldServerRpc.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldServerRpc.java
@@ -17,6 +17,7 @@ package com.vaadin.shared.ui.datefield;
import java.util.Map;
+import com.vaadin.shared.annotations.Delayed;
import com.vaadin.shared.communication.ServerRpc;
/**
@@ -42,6 +43,27 @@ public interface AbstractDateFieldServerRpc extends ServerRpc {
void update(String newDateString, Map<String, Integer> resolutions);
/**
+ * Updates the typed data string and resolution names and values with
+ * delayed rpc. The rpc will be sent by triggering another non
+ * {@link Delayed} annotated rpc.
+ *
+ * @since
+ *
+ * @param newDateString
+ * the value of the text field part. It enables analyzing invalid
+ * input on the server. {@code null} if the date was chosen with
+ * popup calendar or contains user-typed string
+ * @param resolutions
+ * map of time unit (resolution) name and value, the key is the
+ * resolution name e.g. "HOUR", "MINUTE", the value can be
+ * {@code null}. If the map is empty, that means the
+ * {@code newDateString} is invalid
+ */
+ @Delayed(lastOnly = true)
+ void updateValueWithDelay(String newDateString,
+ Map<String, Integer> resolutions);
+
+ /**
* Indicates to the server that the client-side has lost focus.
*/
void blur();