diff options
author | Artur Signell <artur@vaadin.com> | 2011-12-13 18:49:04 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2011-12-14 22:40:44 +0200 |
commit | 4748bc22d82ac2cacfed36c4956e576a9f49e552 (patch) | |
tree | b038b6a2bbc59aad67b3744352e6765c7d284400 /src/com/vaadin/ui/DateField.java | |
parent | a925244b5f5ec13500733d3fcd4d99ef98e9b900 (diff) | |
download | vaadin-framework-4748bc22d82ac2cacfed36c4956e576a9f49e552.tar.gz vaadin-framework-4748bc22d82ac2cacfed36c4956e576a9f49e552.zip |
#8118 Remove support for millisecond resolution
Diffstat (limited to 'src/com/vaadin/ui/DateField.java')
-rw-r--r-- | src/com/vaadin/ui/DateField.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/com/vaadin/ui/DateField.java b/src/com/vaadin/ui/DateField.java index d2001286fc..f645975017 100644 --- a/src/com/vaadin/ui/DateField.java +++ b/src/com/vaadin/ui/DateField.java @@ -61,18 +61,10 @@ public class DateField extends AbstractField<Date> implements * @since 7.0 */ public enum Resolution { - MILLISECOND, SECOND, MINUTE, HOUR, DAY, MONTH, YEAR; + SECOND, MINUTE, HOUR, DAY, MONTH, YEAR; }; /** - * Resolution identifier: milliseconds. - * - * @deprecated Use {@link Resolution#MILLISECOND} - */ - @Deprecated - public static final Resolution RESOLUTION_MSEC = Resolution.MILLISECOND; - - /** * Resolution identifier: seconds. * * @deprecated Use {@link Resolution#SECOND} @@ -159,8 +151,6 @@ public class DateField extends AbstractField<Date> implements private static Map<Resolution, String> variableNameForResolution = new HashMap<DateField.Resolution, String>(); private static Map<Resolution, Integer> calendarFieldForResolution = new HashMap<DateField.Resolution, Integer>(); { - calendarFieldForResolution.put(Resolution.MILLISECOND, - Calendar.MILLISECOND); calendarFieldForResolution.put(Resolution.SECOND, Calendar.SECOND); calendarFieldForResolution.put(Resolution.MINUTE, Calendar.MINUTE); calendarFieldForResolution.put(Resolution.HOUR, Calendar.HOUR_OF_DAY); @@ -168,7 +158,6 @@ public class DateField extends AbstractField<Date> implements calendarFieldForResolution.put(Resolution.MONTH, Calendar.MONTH); calendarFieldForResolution.put(Resolution.YEAR, Calendar.YEAR); - variableNameForResolution.put(Resolution.MILLISECOND, "msec"); variableNameForResolution.put(Resolution.SECOND, "sec"); variableNameForResolution.put(Resolution.MINUTE, "min"); variableNameForResolution.put(Resolution.HOUR, "hour"); |