DateRangeField
DateRangeField
This is a field for specifying date ranges based on the stepper add-on (http://vaadin.com/addon/stepper).
It has a couple of special features I needed including the ability to force the range to be within a calendar year. The particular calendar year can be specified or user selectable. A minimum and maximum year can be specified for the date range as well.
The add-on uses joda-time 2.3 and stepper 2.1.2. If you're going to work with the add-on code, you will need lombok 1.12.4 as well.
The add-on was developed with with vaadin 7.1.13 but should work with any 7.0+.
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Added a theme to demonstrate new error highlighting functionality. Theme wasn't compiling so refactored project so web stuff is in src/main/webapp as opposed web. Also made it easier to run the demo app as a war, while still being able to build the jar.
- Released
- 2014-05-23
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.0+
- Browser
- N/A
DateRangeField - Vaadin Add-on Directory
DateRangeFieldSource Code
DateRangeField version 1.0.0
Initial release
DateRangeField version 1.0.1
The year Field can have a passed in Property. The From and To dates required properties to be passed in and the year Field required a value or null. Now the year Field can also have an Integer Property.
DateRangeField version 1.0.2
Fixed some logic. Handling of forcing the range to be within a year was improperly linked with the setting of the minimum and maximum allowed years. Also made the DateRangeField have an internal DateRange value that changed as the from and to field values changed. This caused ValueChangeListeners added to the DateRangeField to be handled properly.
DateRangeField version 1.0.3
Added the ability to specify a custom error format for the 3 sub-fields that make up the DateRangeField.
DateRangeField version 1.0.4
Added a theme to demonstrate new error highlighting functionality. Theme wasn't compiling so refactored project so web stuff is in src/main/webapp as opposed web. Also made it easier to run the demo app as a war, while still being able to build the jar.