| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi Florijan,
One option that might be worth considering is adding standard java bean property change support to your eo's since this is a Swing app. You could do that via EOGenerator as previously described but another way could be to do it using aspects. I remember reading an article about this a while back where you use an annotation to apply an aspect which then adds the property change support so that you don't have to implement it for each method. Might be overkill since doing it using a generated super class it probably easier.
An advantage of using the bean property change system would be that it would be easy to bind to other swing components eg Glazed Lists, http://www.publicobject.com/glazedlists
Anyway just a though.
Cheers,
John
Florijan,
the code I am proposing builds upon the ObjectsChangedInEditingContextNotification. This notification is posted as changes happen. It is not delayed until saveChanges(). This is actually used in the Java client to update the UI as changes happen.
This is also posted when changes from other editing contexts are merged in.
Pierre
On 11 Oct 2006, at 14:34, Florijan Stamenkovic wrote:
> Hi Pierre, > > > Thanks for pointing the code, it is however not what I need. It was > my first thought to listen for EditingContext notifications, but > they only are posted on some EditingContext actions, like > saveChanges(), and not when an edit on an EO happens in the client > editing context. I need to be notified as soon as for example: > > person.setName("Dodo"); > > is called, and the change to person done, even though it is not yet > committed to the parent object store. > > Best regards, > Flor > >> Hi! >> >> Using the ChangeNotificationCenter from http://www.bernard-web.com/ >> pierre/webobjects/code.html you may be notified that an object has >> changed. It won't however tell you which attribute was affected. >
- - - Houdah Software s. à r. l. http://www.houdah.com - Quality Mac OS X software - Premium WebObjects consulting
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden
This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden
| References: | |
| >Detecting eo changes when they happen (From: Florijan Stamenkovic <email@hidden>) | |
| >Re: Detecting eo changes when they happen (From: Pierre Bernard <email@hidden>) | |
| >Re: Detecting eo changes when they happen (From: Florijan Stamenkovic <email@hidden>) | |
| >Re: Detecting eo changes when they happen (From: Pierre Bernard <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.