aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/AbstractDateField.java
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year range (#12507)Anna Koskinen2022-01-111-1/+1
|
* Code cleanup (#12333)Anna Koskinen2021-07-081-7/+8
| | | | | | | | | | | | | | | | - removed unused private methods - removed unused private variables - removed unnecessary initializations - removed unnecessary substring(0) - removed inner assignments - renamed private methods that started with upper case - renamed static final variables to use upper case - converted to use non-deprecated options - suppressed unavoidable warnings - divided long Strings to multiple lines - added missing types - added missing JavaDoc parameters - formatting - updated comments & JavaDocs
* Update copyright year range. (#12215)Anna Koskinen2021-03-041-1/+1
| | | | * Update copyright year range.
* Add API to prevent invalid input when integrated range validator is used ↵Tatu Lund2021-02-191-1/+34
| | | | | | | (#12168) Do not fire DateField's value change event if the new date is not within the range. Fixes: #12163
* DateField value should actively adjust to the set resolution. (#12183)7.7.23Anna Koskinen2021-01-221-21/+41
|
* Allow AbstractDateField to provide DST zone names over custom ranges (#11927)Tarek Oraby2020-04-211-5/+84
| | | | | | | | | DateTimeField and DateField currently implement a hardcoded logic by which they adjust their time zone names to display daylight-saving time (DST) zone names. Specifically, this hardcoded logic only adjusts the displayed date to DST format if that date falls in one of the years between 1980 and the following 20 years in the future from the current date (that is, until 2040 at the time of this commit). For some use cases, this is problematic because it is desirable to display proper DST-adjusted time zones beyond the 20 years limit (and possibly also before 1980). Rather than choosing another arbitrary, hardcoded threshold, this commit extends the AbstractDateField API to allow the user to choose the range (start and end years) between which the DST transition dates are calculated (and hence displayed properly). If the user doesn't invoke this new API, DateTimeField and DateField will default to behave according the existing logic (i.e. display DST zone names between 1980 and 20 years into the future). Closes #11919
* Set DateField value only if it passes range check (#11887)Tatu Lund2020-04-081-17/+34
| | | Fixes #11108
* Added note to DateField#setRangeStart JavaDoc (#11886)Tatu Lund2020-02-191-0/+2
| | | | | | | | * Added note to DateField#setRangeStart JavaDoc * Added additional checking of valid startDate * Reverted previous commit
* Update Chrome version, snapshots and fix tests (#11684)Zhe Sun2019-08-051-2/+3
|
* Separates a rpc for handling the client event order in DateTimeField (#11574)Zhe Sun2019-06-141-0/+10
| | | | | | | | * Using @Delayed annotation for DateField Rpc * Separate a rpc for handling the time change in DateTimeField * Add test case for wrong event order
* Correct the logic for validation used in DateField (#11307)Sun Zhe2018-11-131-14/+33
| | | | | | | | Fixes #11276 Refactor the code and correct the logic for validation Rename an internal variable, as it contains more than one type of messages
* Force re-updating the resolutions of DateField (#11159)Anastasia Smirnova2018-09-061-0/+1
| | | Fixes #11099
* Fix formatting of some files (#10972)Ilia Motornyi2018-06-121-1/+1
|
* Remove parse error when changing from invalid to empty date text (#10771)Alexander Nittka2018-06-071-2/+7
| | | Fixes #10673.
* Handle UnparsableDateString correctly (#10803)Anastasia Smirnova2018-04-161-1/+12
| | | Resolves #10681
* Update release notes and since tags for 8.4 (#10760)Teemu Suo-Anttila2018-03-271-19/+27
|
* Update copyright year (#10761)Ilia Motornyi2018-03-271-1/+1
|
* Fix date ranges for date and datetime fields (#10685)Ilia Motornyi2018-03-201-9/+63
| | | Fixes #9765
* Add ARIA label support to DateField (#10538)Adam Wagner2018-01-311-0/+28
| | | Fixes #10454
* Tweak date style API (#10493)8.3.0.beta1Leif Åstrand2018-01-081-15/+16
| | | | | | | * Disallow some `null` arguments * Return an unmodifiable map from getDateStyles(). This helps the developer understand that changes to the returned map are not automatically applied to the component. * Remove redundant `@link` markup from `@see` in the javadocs.
* Add missing since tags and JavaDocs (#10487)8.3.0.alpha1Teemu Suo-Anttila2018-01-031-0/+4
|
* Allow setting custom styles to DateField calendar date cells (#10305)Anna Koskinen2017-12-281-0/+68
| | | Fixes #10304
* Update since tags in JavaDoc (#10325)8.2.0.alpha3Teemu Suo-Anttila2017-11-151-1/+1
|
* Fix end of line comments, which were made by automatic formatter (#10234)Ahmed Ashour2017-10-311-3/+2
|
* Remove trailing spaces (#10224)Ahmed Ashour2017-10-261-2/+2
|
* AbstractDateField.formatDate() to be abstract (#10186)Ahmed Ashour2017-10-201-52/+54
| | | | | | | | | | | | | | | | | | | | | | * 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
* AbstractDateField: set value after being invalid (#10187)Ahmed Ashour2017-10-201-20/+19
| | | | Fixes #9763 Fixes #9978
* Convert AbstractDateField not to be a LegacyComponent (#10148)Ahmed Ashour2017-10-131-174/+140
|
* Handle 'z' (timezone) in AbstractDateField.setDateFormat() (#8844)Ahmed Ashour2017-09-281-0/+51
|
* Show validation error selecting invalid date from DateField (#10013)Marco Collovati2017-09-201-1/+1
| | | | | | | | | | Component error was cleared after selecting a date from calendar popup, even if the date is invalid due to validation errors or if user programmatically sets an UserError. This change inverts the order of setValue() and setComponentError(null) in order to preserve errors set by ValueChangeListeners (e.g. Binder validators). Fixes #10011
* Enable setting non-selected default value for DateField (#9745)Olli Tietäväinen2017-08-101-21/+94
| | | Requested feature: allow setting DateField to a certain starting point without selecting a value.
* Fix AbstractDateField parsing and errors handling, support locale (#9740)Ilia Motornyi2017-08-021-165/+92
| | | | | Fixes #9518 Fixes #8991 Fixes #8687
* Add internal state validators for HasValue (#9532)Teemu Suo-Anttila2017-07-031-1/+19
| | | This also fixes/improves AbstractDateField validation.
* Add an optional HasValue to a ValueContextIlia Motornyi2017-06-291-1/+1
|
* Add a maven plugin for formatting according to Eclipse settingsLeif Åstrand2017-02-011-10/+11
| | | | | Running formatter:format will format all files in a submodule using an embedded Eclipse compiler (based on Neon SR1) according to the regular formatting settings file.
* Include old value in ValueChangeEvent (#8229)Aleksi Hietanen2017-01-131-1/+1
| | | | * Include old value in ValueChangeEvent
* Refactor AbstractDateField. (#8146)Denis2017-01-101-117/+166
| | | First round for #8132.
* Rename com.vaadin.data.util.converter to com.vaadin.data.converterPekka Hyvönen2016-12-141-1/+1
|
* Don't use V8 FieldEvents classes in v7 compatibility module. (#93)Denis2016-12-071-12/+0
| | | | | | * Don't use V8 FieldEvents classes in v7 compatibility module. Fixes vaadin/framework8-issues#363
* Refactor listener registration creation to reduce boilerplateLeif Åstrand2016-11-231-6/+2
| | | | Change-Id: I9feaad000cb16351d281d1c0037330dfb76186ff
* Introduces ValidationResult interface to replace Result in validators.Denis Anisimov2016-11-011-1/+2
| | | | | | Fixes vaadin/framework8-issues#414 Change-Id: I2d4e101f29542fadfdd30ce63455a0e078e0e735
* Add ValueContext to ValidatorsTeemu Suo-Anttila2016-10-261-1/+3
| | | | Change-Id: I2ac99adf1fdb60dc0638e6fe98c4542ebd5f21a5
* Fix setValue() methods behavior null argument value + javadocsTeemu Suo-Anttila2016-10-251-0/+7
| | | | Change-Id: I0000c1caf7c129634473161fe4876931f3c8dabf
* Update ValueChange API to use Component and HasValue<>.Denis Anisimov2016-10-251-1/+1
| | | | Change-Id: I785aa82d925cadee42cc1b17d345a8923f6dc8cc
* Make AbstractDateField based on LocalDate (#125).Denis Anisimov2016-09-301-227/+87
| | | | Change-Id: I33a4a4f0f3437a8d1733031a131afbe844c12afb
* Unify listeners on the server sideAleksi Hietanen2016-09-291-29/+16
| | | | | | | | | | | This patch updates server side add*Listener methods to return a registration object and deprecates their corresponding remove*Listener methods. Additionally this patch removes add/removeListener methods which were deprecated in 7.0. Change-Id: I26ac5f11882512288fbbf601c7cb2aaff653ec76
* Update DateRangeValidator to be LocalDate based (#320).Denis Anisimov2016-09-261-4/+6
| | | | Change-Id: I46500d5dd740b806bfa8c3849c54253c6ae92187
* Rename PopupDateField to DateField #297.Denis Anisimov2016-09-231-0/+877
DateField becomes abstract AbstractDateField, PopupDateField becomes DateField Change-Id: I3ac1e02d8754f0770b6a30222cb0fb2a1b9db07b