Servoy Stuff - Home of all Servoy related stuff!


busy JSDoc keyListeners whois VelocityReport
BrowserSuite DateChooserBean DnDFileBean SliderBean SVGBean







Archive



Beans




DateChooserBean

The DateChooserBean v1.2.1

v1.2.1
Fixed onDataChange callback that was not called if the user was typing a date instead of choosing it from the date picker - thanks to Michael Sedita for noticing (and notifying).

v1.2
Breaking compatibility with previous version this one is for Servoy 5+ to allow better interactions (JSEvent, property editors, usage on globals)

v1.1.1
Backward compatible changes to adapt to the new version of the IStylePropertyChanges interface of Servoy 4.1.4

v1.1
The DateChooserBean was not properly working with globals, this fix allow globals to be taken into account properly and to fire onDataChange event properly (in the Smart and the Web Client)
- Thanks to Gary Dotzlaw for discovering it and notifying me.

Also fixed incorrect use of localized format which was leading to errors if the web client used another Locale.

And added a Serializable interface to the WicketDateChooser class to help Servoy serialize the bean correctly.

v1.0.4
Fixed a small bug in Firefox, where the calendar button was pushed past the input box

v1.0.3
Added i18n support for format, titleText and toolTipText

v1.0.2
Added AM/PM - 12/24 hours support

v1.0.1
Added Time controls
- Thanks to Thomas Parry for noticing it

v1.0
First public release

This bean a free (LGPL licensed) fully featured replacement for the field of displayType "CALENDAR" in Servoy, it is totally compatible with Servoy developer, smart client AND web client (for Servoy 4.1+).

I have finished putting the last touches today, testing every single attributes and scripts to emulate as much as possible a regular field.

v1.2.1
To download: click here (rename to datebean.jar if necessary).
To get the sources (Eclipse project): click here (read the README.txt file included before use).

There is now a companion Google-Code project where you will be able to submit issues/feature requests and check out the code from SVN


v1.1.1
To download: click here (rename to datebean.jar if necessary).
To get the sources (Eclipse project): click here (read the README.txt file included before use).

 


To install: just put the "datebean.jar" into your /Servoy/application_server/beans folder, then start Servoy Developer.
To add to a form: choose "Place Bean..." and select the "DateChooserBean".

The bean will look like this in Servoy Smart client:
DateChooserBean in the Smart client


In the web client, it will look like that:
DateChooserBean in a browser


The properties you can define are:
DateChooserBean properties


And it is scriptable just like any field of displayType "CALENDAR":
DateChooserBean scripting

KNOW BUGS/LIMITATIONS:

The method hooks (onAction, onDataChange, onFocusGained, onFocusLost) are not linked to the Method Property editor of Servoy, this is due to the fact that the internal editors are not (yet) usable from a Bean - no longer true with v1.2


Same thing for the DataProvider property, which is plain text and not linked to the Servoy DataProvider Editor, for the same reason - no longer true with 1.2


In the swing component, the onFocusLost and onDataChange methods are  triggered correctly but the "application.getMethodTriggerElementName()" method will not find the name of the bean - no longer true with v1.2 using JSEvent


In the Wicket component (on the web client), the methods are triggered correctly but the "application.getMethodTriggerElementName()" will fail to find the name of the component, I didn't find in the API how to set the element before doing a callback - no longer true with v1.2 using JSEvent


The bean is not CSS aware, I couldn't find a way to access the current CSS stylesheet and to parse it reliably for the Swing component, sadly still the case with v1.2


 

If you like this bean, consider donating to help me make more cool stuff available!

You can send me a note with any comment, feature request, bug report, using the contact form.