summaryrefslogtreecommitdiffstats
path: root/shared/src/com
diff options
context:
space:
mode:
authorjohan <johan@vaadin.com>2013-04-08 11:55:44 +0300
committerjohan <johan@vaadin.com>2013-04-08 12:24:42 +0300
commit309e3de9152ae9958e6e723ed348712b4b39452e (patch)
treeb0b8d78e0aa5b3229eb6b5af2fb55639e5ecb77d /shared/src/com
parent453099e29f5d6ca12f448eb9bb4264efd087ebf3 (diff)
downloadvaadin-framework-309e3de9152ae9958e6e723ed348712b4b39452e.tar.gz
vaadin-framework-309e3de9152ae9958e6e723ed348712b4b39452e.zip
Implement range for date field (#6241)
Change-Id: I34458f676fede39e1992316cbed8d62193ce8509
Diffstat (limited to 'shared/src/com')
-rw-r--r--shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java3
-rw-r--r--shared/src/com/vaadin/shared/ui/datefield/TextualDateFieldState.java14
2 files changed, 15 insertions, 2 deletions
diff --git a/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java b/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java
index 405f89d538..d15d8de100 100644
--- a/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java
+++ b/shared/src/com/vaadin/shared/ui/datefield/InlineDateFieldState.java
@@ -15,9 +15,8 @@
*/
package com.vaadin.shared.ui.datefield;
-import com.vaadin.shared.AbstractFieldState;
-public class InlineDateFieldState extends AbstractFieldState {
+public class InlineDateFieldState extends TextualDateFieldState {
{
primaryStyleName = "v-inline-datefield";
}
diff --git a/shared/src/com/vaadin/shared/ui/datefield/TextualDateFieldState.java b/shared/src/com/vaadin/shared/ui/datefield/TextualDateFieldState.java
index c34f3d8eda..11ad4cdb59 100644
--- a/shared/src/com/vaadin/shared/ui/datefield/TextualDateFieldState.java
+++ b/shared/src/com/vaadin/shared/ui/datefield/TextualDateFieldState.java
@@ -15,10 +15,24 @@
*/
package com.vaadin.shared.ui.datefield;
+import java.util.Date;
+
import com.vaadin.shared.AbstractFieldState;
public class TextualDateFieldState extends AbstractFieldState {
{
primaryStyleName = "v-datefield";
}
+
+ /*
+ * Start range that has been cleared, depending on the resolution of the
+ * date field
+ */
+ public Date rangeStart = null;
+
+ /*
+ * End range that has been cleared, depending on the resolution of the date
+ * field
+ */
+ public Date rangeEnd = null;
}