Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 183177

Summary: [DateTime] DateTime widget missing
Product: [RT] RAP Reporter: Markus Krüger <webmaster>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: aleksander.bandelj, elias, ivan, mamtamantri05, Michal.Tkacz, reinhold.bentele, roberto, rsternberg, stefan.hansel
Version: 1.0Keywords: plan
Target Milestone: 1.2 M2   
Hardware: All   
OS: All   
Whiteboard: plan-version=1.2 plan-theme=extend-rwt plan-status=committed
Attachments:
Description Flags
First version of the DateTime widget. Calendar is not implemented yet.
none
Patch without the binary data (images). Calendar is included.
none
Images used in DateTime widget.
none
Patch without the binary data (images). Calendar is included. Bugfixes.
none
Patch without the binary data (images). Calendar is included.
none
Sync the patch with CVS HEAD.
none
calenderDialog none

Description Markus Krüger CLA 2007-04-19 09:41:20 EDT
As posted by more than one user in the newsgroup a Calendar Widget for picking dates should be added to RWT.
Comment 1 Rüdiger Herrmann CLA 2007-05-02 13:55:43 EDT
Currently this is not on our high-priority list. If there is time we will implement a Date widget as in SWT 3.3.
As always we greatly appreciate contributions. So, if there is someone out there who would like to implement her/his first RWT widget, feel free to state this here.
Comment 2 Ivan Furnadjiev CLA 2008-05-26 17:49:53 EDT
I've started the implementation of DateTime widget. Initial, there is one question arises - what time is used in the widget (client or server time)? Please share you opinion.
Comment 3 Michal Tkacz CLA 2008-05-26 21:40:43 EDT
How about a client time, unless initialized otherwise? This way it will always be possible to set it "manually" to the server time.
Comment 4 Rüdiger Herrmann CLA 2008-05-27 02:05:00 EDT
I think we can ignore the timezone issue. The DateTime widget does not have API that deals with timezome information but only methods to manipulate hours, muntes, etc. This way we can be more general and leave it to the application developer who usually better knows how to handle this.
If an initial value is needed when constructing a DateTime widget, we should use the server time for now. It seems to me the simpler and more reliable approach. More complex use cases will probably require to specify a timezone anyway, but that doesn't fall into the responsibility of the DateTime widget.
In any case, we should mention this in the JavaDoc.
Comment 5 Ivan Furnadjiev CLA 2008-06-29 10:03:28 EDT
Created attachment 106077 [details]
First version of the DateTime widget. Calendar is not implemented yet.
Comment 6 Ivan Furnadjiev CLA 2008-07-10 15:08:30 EDT
Created attachment 107127 [details]
Patch without the binary data (images). Calendar is included.

The binary data (images) are removed from the patch.
Put the images from the zip in:
org.eclipse.rap.rwt.q07\js\resource\widget\rap\datechooser
and
org.eclipse.rap.rwt.test.mockup\js\resource\widget\rap\datechooser
Comment 7 Ivan Furnadjiev CLA 2008-07-10 15:09:46 EDT
Created attachment 107128 [details]
Images used in DateTime widget.
Comment 8 Ivan Furnadjiev CLA 2008-07-10 16:15:14 EDT
Created attachment 107134 [details]
Patch without the binary data (images). Calendar is included. Bugfixes.

Put the images from the zip in:
org.eclipse.rap.rwt.q07\js\resource\widget\rap\datechooser
and
org.eclipse.rap.rwt.test.mockup\js\resource\widget\rap\datechooser
Comment 9 Ivan Furnadjiev CLA 2008-07-11 08:00:59 EDT
Created attachment 107194 [details]
Patch without the binary data (images). Calendar is included.

Code refactoring.
Use RWT#getLocale() instead of default locale.
Comment 10 Ivan Furnadjiev CLA 2008-07-11 08:01:59 EDT
Put the images from the zip in:
org.eclipse.rap.rwt.q07\js\resource\widget\rap\calendar
and
org.eclipse.rap.rwt.test.mockup\js\resource\widget\rap\calendar
Comment 11 Ivan Furnadjiev CLA 2008-07-16 05:03:43 EDT
Created attachment 107578 [details]
Sync the patch with CVS HEAD.

Put the images from the zip in:
org.eclipse.rap.rwt.q07\js\resource\widget\rap\calendar
and
org.eclipse.rap.rwt.test.mockup\js\resource\widget\rap\calendar
Comment 12 Rüdiger Herrmann CLA 2008-09-11 14:19:25 EDT
We overlloked to close this bug. Changes are already in CVS HEAD.
Comment 13 marie CLA 2011-03-09 02:34:05 EST
hi all i have seen d files in datetimekit.
but i really dont knw hoe to use dis kit in my application which requires a calendar
can anybody help me .
thanks in advance :)
Comment 14 Ivan Furnadjiev CLA 2011-03-09 02:44:43 EST
Hi mamta, look at SWT Snippets ( http://www.eclipse.org/swt/snippets/ ).
Here is a direct link to the DateTime example:
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet250.java?view=co
Comment 15 marie CLA 2011-03-09 04:28:46 EST
Created attachment 190739 [details]
calenderDialog

hi i have dis file which opens a calender dialog,so please help me to carry out this in my rap application.. see the attachments please
thanks :)
Comment 16 Ralf Sternberg CLA 2011-03-09 06:57:59 EST
(In reply to comment #15)
> hi i have dis file which opens a calender dialog,so please help me to carry out
> this in my rap application.. see the attachments please
> thanks :)

This is a bug tracking system, not a discussion forum. Posts like these clutter the bugzilla and obstruct the work of our project. Please use the RAP forum to ask questions: http://www.eclipse.org/forums/eclipse.technology.rap
Comment 17 marie CLA 2011-03-09 07:25:47 EST
ok
Comment 18 marie CLA 2011-03-09 07:35:42 EST
i m new to this eclipse so i dnt knw
Comment 19 marie CLA 2011-03-09 07:53:53 EST
i m new to this eclipse so i dnt knw