How to focus the calender after selecting the date from calender..
I am selecting the date and calender is also closing but after that focus is missing.
Please help me on this issue..
Regards
Sk
It seriously depends on the calendar implementation you use.
If the calendar is drown by Java tag try to seek the onchange attribute and set it to:
document.getElementById('calendarFieldId').focus();
Related
I would like the DateField to be defaulted to my user's timezone. I've tried DateField.setZoneId() but this really didn't seem to do anything. I then tried to do DateField.setDefaultValue(LocalDateAdjustedForTimeZone) which mostly worked in that the blue box was correctly highlighted but the black outline remained under the server's timezone.
As far as I can see in the Vaadin client component VAbstractCalendarPanel#buildCalendarBody(), there's no way to influence which day is marked with the today CSS style v-datefield-calendarpanel-day-today. The client component Java code about determining "today" looks like:
final Date tmp = new Date();
final Date today = new Date(tmp.getYear(), tmp.getMonth(), tmp.getDate());
So I guess when it's translated to JavaScript it will take the current date on the browser's system.
However, as a workaround you can at least adapt the CSS styles to hide the today marker. I wonder why Vaadin did not think about your use case (which is mine, too). Can you open an issue at Vaadin please?
I need to get the modify date of calendar event, but I can't find an appropriate field in Events table.
Thanks for any help!
My question is this: Is there a solution to bekome a DatePicker with only the month and year without days? Since a standard DatePuicker works with Java LocalDate it does not seems so simple...
One of the options is to make the text field with a mask through regex, but then the "Picker" would be lost, that I would like to leave. Has somebody already faced with this?
Thanks in advance!
Date picker has a calendar that pops up when clicked on. Is it possible to only use the calendar that displays? If so how?
I just want to display a calendar that shows info for each date. I'm pretty new to JAVA FX.
EDIT: I kinda want something like a "CalendarView". Where I can edit content etc.
I've got a DateTime (SWT.TIME) and want to know if the hours or minutes or seconds are selected.
I would like to get this information because I want that the User can scroll the mouse wheel in order to change the selected values accordingly.
Unfortunately I couldn't find any way to get the selected element of the DateTime Control. Does anybody have an idea?
DateTime provides many methods for getting the selected date. Like getHours, getMinutes, getDay, and so on. It's unclear to me what's your exact question, but appropiate setters are there as well.