summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-20 10:54:25 +0200
committerPéter Török <31210544+torok-peter@users.noreply.github.com>2017-10-20 11:54:25 +0300
commit3929d0ac6f8e3d7370412d1d181db1b2361d13e3 (patch)
treee59252649924608b756d2dbfac8ad3fb116cec7b /shared
parentafb9d3b6c1d143b59506e08c3f27eb088555801c (diff)
downloadvaadin-framework-3929d0ac6f8e3d7370412d1d181db1b2361d13e3.tar.gz
vaadin-framework-3929d0ac6f8e3d7370412d1d181db1b2361d13e3.zip
AbstractDateField.formatDate() to be abstract (#10186)
* AbstractDateField.formatDate to be abstract Remove invalidDateString paramter, as it can be deduced * Fix test * Remove AbstractDateField.getResolutionVariable VAbstractTextualDate: rename updateDateVariables() to updateBufferedResolutions() * Revert to use fixed value of MONDAY. * release notes * updateAndSendBufferedValues() * Missed call to updateAndSendBufferedValues(); * release note
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/datefield/AbstractDateFieldServerRpc.java12
1 files changed, 5 insertions, 7 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 2ef8993fb6..cdd8e30815 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
@@ -33,15 +33,13 @@ public interface AbstractDateFieldServerRpc extends ServerRpc {
* 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 invalidDateString
- * Whether the last date string is invalid or not
* @param resolutions
- * map of time unit (resolution) name and value, name is the
- * lower-case resolution name e.g. "hour", "minute", and value
- * can be {@code null}
+ * 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
*/
- void update(String newDateString, boolean invalidDateString,
- Map<String, Integer> resolutions);
+ void update(String newDateString, Map<String, Integer> resolutions);
/**
* Indicates to the server that the client-side has lost focus.