Date/Calendar widgets - any validation support? [message #598562] |
Mon, 02 November 2009 12:14  |
Eclipse User |
|
|
|
Hi,
I need to provide date selection where non-business days cannot be chosen. I have holiday schedules so I know which days aren't business days...
Do any of the available calendar widgets support being able to disable certain dates? Having some callback to query whether a data is valid or not would be good.
I'm guessing nothing like this is available, is it?
Alternatively maybe one of the widgets supports alernate painting of specific dates, so the user at least would then have a visual clue that they shouldn't select it?
Thanks,
Justin
|
|
|
Re: Date/Calendar widgets - any validation support? [message #598566 is a reply to message #598562] |
Mon, 02 November 2009 19:44  |
Eclipse User |
|
|
|
I'm not able to respond for other Nebula calendars, but this is actually
not possible with DateChooser.
However it should be relatively simple to add. Please post a feature
request in bugzilla if you are interested.
For the alternate painting, DateChooser support the possibility to use a
different foreground color for non-business days. It is implemented by
default in the provided themes (except the new SYSTEM theme I just
commit today). And you can define your own themes with your own colors.
Regards,
Eric
> Hi,
>
> I need to provide date selection where non-business days cannot be
> chosen. I have holiday schedules so I know which days aren't business
> days...
>
> Do any of the available calendar widgets support being able to disable
> certain dates? Having some callback to query whether a data is valid or
> not would be good.
>
> I'm guessing nothing like this is available, is it?
>
> Alternatively maybe one of the widgets supports alernate painting of
> specific dates, so the user at least would then have a visual clue that
> they shouldn't select it?
>
> Thanks,
> Justin
>
|
|
|
Powered by
FUDForum. Page generated in 0.03373 seconds