tag:blogger.com,1999:blog-1320962532166013289.post7688983723988984184..comments2015-02-23T07:33:48.633-06:00Comments on sgine: Beans Should Be Deprecated - The Future of Object Architecture With Properties (Part 2 of 2)zzornhttp://www.blogger.com/profile/09914572682476230174noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-1320962532166013289.post-28451989878134796982012-02-13T13:41:15.415-06:002012-02-13T13:41:15.415-06:00I haven't gotten around to updating the produc...I haven't gotten around to updating the production release, are you running from Mercurial or dependencies? If you're running from source try updating from the repo.Matt Hickshttps://www.blogger.com/profile/16505852962558029815noreply@blogger.comtag:blogger.com,1999:blog-1320962532166013289.post-48411080925795642092012-02-13T12:44:01.375-06:002012-02-13T12:44:01.375-06:00Well, the thing is, I tried that, but ended up wit...Well, the thing is, I tried that, but ended up with an exception. The stack trace suggests that the change events kept firing... I'm using 2.8.1-0.1<br />with Scala 2.9.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1320962532166013289.post-4006181639496197742012-02-13T08:37:09.843-06:002012-02-13T08:37:09.843-06:00Sure, because Bindings on Properties only update w...Sure, because Bindings on Properties only update when a ChangeEvent is fired and a ChangeEvent is only fired if the value is different.<br /><br />So you can write this:<br /><br />property1 bind property2<br />property2 bind property1<br /><br />property1 := 5<br /><br />What will happen is that property1 will change value to 5, a ChangeEvent will fire that will be caught by property2's binding thus changing the value of property2. This will fire another ChangeEvent that will change the value on property1, but because that's already the value of property1 it will not fire another ChangeEvent, nor will it invoke the binding.Matt Hickshttps://www.blogger.com/profile/16505852962558029815noreply@blogger.comtag:blogger.com,1999:blog-1320962532166013289.post-29174001929866906262012-02-12T23:51:50.781-06:002012-02-12T23:51:50.781-06:00Hi Matt,
It's me, Anonymous :p
Is bidirect...Hi Matt, <br /><br />It's me, Anonymous :p <br /><br />Is bidirectional binding supported?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1320962532166013289.post-79521994693780344162012-02-10T07:25:43.152-06:002012-02-10T07:25:43.152-06:00@Anonymous, JavaFX properties are moderately simil...@Anonymous, JavaFX properties are moderately similar, so creating a binding between shouldn't be very difficult. It could probably be done via a trait in fact should you want to do such a thing.Matt Hickshttps://www.blogger.com/profile/16505852962558029815noreply@blogger.comtag:blogger.com,1999:blog-1320962532166013289.post-75204641256133239552012-02-09T15:35:36.052-06:002012-02-09T15:35:36.052-06:00Great stuff, kudos!
How would you bind your prope...Great stuff, kudos!<br /><br />How would you bind your properties to JavaFx GUI?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1320962532166013289.post-37918132613985196462010-09-20T20:40:38.673-05:002010-09-20T20:40:38.673-05:00@beders: persistence can be handled as a mix-in or...@beders: persistence can be handled as a mix-in or an introspection on uncommitted transactional properties. Consider the benefits of updating your database with only the fields that have changed instead of mass updated for an entire object because something might have changed.<br /><br />@No Side Effects: Thanks! I just hope it finally starts to catch on.Matt Hickshttps://www.blogger.com/profile/05547914531126415586noreply@blogger.comtag:blogger.com,1999:blog-1320962532166013289.post-31433817961404734512010-09-17T00:48:19.504-05:002010-09-17T00:48:19.504-05:00Zomg! Finally somebody who gets it ;)
I've alw...Zomg! Finally somebody who gets it ;)<br />I've always hated getters and setters.. but then again I didn't care for Java much either, because Scala stole my heart.<br /><br />Wonderful implementation of a properties system that is flexible and sooooo much easier to code and utilize than those irritating and cumbersome additional methods!Anonymoushttps://www.blogger.com/profile/05714943086921320242noreply@blogger.comtag:blogger.com,1999:blog-1320962532166013289.post-80577991744914944922010-09-10T11:49:20.732-05:002010-09-10T11:49:20.732-05:00Awesome stuff. Thanks!
How would you add persisten...Awesome stuff. Thanks!<br />How would you add persistence to this mix?<br />Sounds straightforward to add this as a trait.bedershttps://www.blogger.com/profile/12176097238930394619noreply@blogger.com