Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [CDateTime] Setting a date with days before month
[CDateTime] Setting a date with days before month [message #1737854] Wed, 13 July 2016 14:23
Massimo Rabbi is currently offline Massimo RabbiFriend
Messages: 29
Registered: November 2010
Location: Padova
Junior Member
Hi all,
just looking for an advice on how to properly handle a use case like the below one.
Suppose I have the following text string in my CDateTime widget "23/02/2017 16.18.48". I want to edit it entering the 30th of March. This is not possible because when I start writing 30, the VerifyListener associated with the widget will say that 30/02/2017 16.18.48 is not a valid date instance and will revert the value to 23. The listener is taking the text for the currently edited field (i.e. days) and when the editing is completed it will try to validate the date.

Is there any way to properly handle this use case?

Best regards,
Massimo.
Previous Topic:swt xy-plot runs only on my pc
Next Topic:Grid and StyledCellLabelProvider
Goto Forum:
  


Current Time: Thu Nov 15 02:16:24 GMT 2018

Powered by FUDForum. Page generated in 0.01611 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top