Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How can a user easily enter input of type DATE ?
How can a user easily enter input of type DATE ? [message #292625] Sat, 08 October 2005 17:06 Go to next message
Eclipse UserFriend
Originally posted by: bobruney.gmx.net

Hi,

iŽm currently coding a programm, which needs the user to enter a valid
Date and Time into a SWT input form.

I wonder how i can do this best, cause the Date dataclass is quite complex
and i canŽt figure out how to enable the user to letting him/her enter a
date without getting error messages all the time, because the date is not
in the right format.

Is there maybe a widget for stuff like this floating round? (like the file
choser dialog)
Or has anybody any input on how to do this best?

Thanks a lot for your time and any answer
Andreas
Re: How can a user easily enter input of type DATE ? [message #292648 is a reply to message #292625] Mon, 10 October 2005 05:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.bettsockentraeger.de

Hi
These are just a few I found by searching the web.
http://swtcalendar.sourceforge.net/index.html (this one is nice and
brings all you need)
http://gface.sourceforge.net/ (this one I haven't tested but I included
anyway)

HTH
Stefan

Andreas wrote:
> Hi,
>
> iŽm currently coding a programm, which needs the user to enter a valid
> Date and Time into a SWT input form.
>
> I wonder how i can do this best, cause the Date dataclass is quite
> complex and i canŽt figure out how to enable the user to letting him/her
> enter a date without getting error messages all the time, because the
> date is not in the right format.
>
> Is there maybe a widget for stuff like this floating round? (like the
> file choser dialog)
> Or has anybody any input on how to do this best?
>
> Thanks a lot for your time and any answer
> Andreas
>
Re: How can a user easily enter input of type DATE ? [message #292695 is a reply to message #292648] Tue, 11 October 2005 09:11 Go to previous messageGo to next message
Eclipse UserFriend
also see
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet179.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

Grant

"Stefan Langer" <eclipse@bettsockentraeger.de> wrote in message
news:434A37C8.9050807@bettsockentraeger.de...
> Hi
> These are just a few I found by searching the web.
> http://swtcalendar.sourceforge.net/index.html (this one is nice and
> brings all you need)
> http://gface.sourceforge.net/ (this one I haven't tested but I included
> anyway)
>
> HTH
> Stefan
>
> Andreas wrote:
> > Hi,
> >
> > i
Re: How can a user easily enter input of type DATE ? [message #292705 is a reply to message #292695] Tue, 11 October 2005 10:05 Go to previous message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

> also see
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet179.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

unsatisfying. a control (probably Text) haveing the local separators and
refusing everything else than numbers would be far more convenient to the
user.
e g (we assume german date of the format dd.mm.yyyy)
[__.__.____] if the user types anything else than numbers it's ignored, if
the numbers given are unreasonable (days above 31 and month above 12)
the're ignored.

i played around with a Text and a ModifyListener (the ModifyListener
called in turn an IInputValidator and bothered with an error-messafe in
the StatusLine as long as the Text's text did not match a given pattern)
but it was still not satisfying. so i switched to swt-datepicker
(http://sourceforge.net/projects/swt-datepicker/) using the
DatepcikerCombo as input but it's still not what i want.
Previous Topic:Best Practice: implementing a "Control View" for another view
Next Topic:How to patch a plugin?
Goto Forum:
  


Current Time: Fri May 02 08:07:50 EDT 2025

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

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

Back to the top