Made a new add-on for selecting the time.
This is simpler and faster than the usual select box selection methods.
How to set default value ?
"setValue(…) " not working.
CircleSelect hour = new CircleSelect();
hour.setCaption(messageCtx.getMessage("time.selector.24.hour.system"));
hour.setSectors(12);
hour.setVisibleValues(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
hour.setInnerValues(13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 00);
hour.setValue(3); <-- not work
Yes seems I’ve missed that when creating the standalone CircleSelect component.
I added a ticket
https://github.com/caalador/TimeSelector/issues/6
and will try to get it fixed asap when I have time.
If there’s any other problems that you find post on this thread or better yet just create an issue in github.
I’ll inform people here also that 7.7.4 introduced a new State CustomFieldState and this breaks the component.
see issue #7:
https://github.com/caalador/TimeSelector/issues/7
This should be fixed in the framework for 7.7.5 see issue #20468
https://dev.vaadin.com/ticket/20468
For the mean time if you are using this component stick to 7.7.3
Just published 1.2.1 that fixes the setValue issue #6