diff options
author | Tatu Lund <tatu@vaadin.com> | 2020-09-25 17:25:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-25 17:25:12 +0300 |
commit | aea6cdece5b63a33a8d4c431d94be473c6db4e29 (patch) | |
tree | 19fe6ce7ca94cb0f2ee09bbf0b5efd5c46907de7 /server | |
parent | 43d21c486fbcbc32caf30a4125b58526597af21e (diff) | |
download | vaadin-framework-aea6cdece5b63a33a8d4c431d94be473c6db4e29.tar.gz vaadin-framework-aea6cdece5b63a33a8d4c431d94be473c6db4e29.zip |
Add DateField(LocalDate value) constructor (#12096)
Diffstat (limited to 'server')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/DateField.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/DateField.java b/server/src/main/java/com/vaadin/ui/DateField.java index a79cbd8400..c8fdf0ee16 100644 --- a/server/src/main/java/com/vaadin/ui/DateField.java +++ b/server/src/main/java/com/vaadin/ui/DateField.java @@ -50,6 +50,17 @@ public class DateField extends AbstractLocalDateField { } /** + * Constructs a new <code>DateField</code> with initial date value. + * + * @param value + * the LocalDate value. + */ + public DateField(LocalDate value) { + super(); + setValue(value); + } + + /** * Constructs an empty <code>DateField</code> with caption. * * @param caption |