DatePicker setResolution API missing

Hi,

Vaadin 8 DateField had an API to set the resolution of the date, couldn’t find the same with DatePicker.

Example:

DateField myDateField = new DateField("Select Year");
myDateField.setResolution(DateResolution.YEAR);

Any suggestions?

Thanks!

I don’t now about this setResolution thing in v8, but I would use some other type of component, perhaps NumberField or so if you wanna select a year only.