Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [Databinding] Binding a Date to a Date
[Databinding] Binding a Date to a Date [message #313335] Tue, 13 March 2007 11:51 Go to next message
Eclipse UserFriend
Originally posted by: dknotts.co.brazos.tx.us

Hello,

I have a DateChooser widget that is a combination mask edit box and
pop-up calendar. The user can select a date off the pop-up calendar and
the date is filled into the mask edit box. The value in the mask edit
box is a type Date. My model object has a Date property in it. I want
to bind the value in the mask edit box to the Date property in my model.

Any suggestions on how I could do this?

Thanks,
Derek
Re: [Databinding] Binding a Date to a Date [message #313364 is a reply to message #313335] Wed, 14 March 2007 09:43 Go to previous message
Eclipse UserFriend
You're control will need to fire a change event when the Date changes.
You'll need to create an IObservableValue implementation for your control
(see TextObservableValue as an example). Once you have an observable
you'll be able to bind just like you do to any other type of observable.

-brad
Previous Topic:eclipse.buildScript error with Eclipse 3.2
Next Topic:Eclipse crash
Goto Forum:
  


Current Time: Thu Jul 17 23:54:54 EDT 2025

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

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

Back to the top