
April 8th, 2003, 04:06 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Location: Bavaria, Germany
Posts: 140
Time spent in forums: 3 h 40 m 41 sec
Reputation Power: 11
|
|
|
What you want is transaction based objects like they're used in MTS components (just like SQL transactions). But i guess that's a overkill ;-))
Normally you apply changes to your object when you click 'OK' or 'Save', any change before is kept in another structure like a String or a Textarea. When the user clicks on OK, the String is set at your object.
If you want to work with your object, then implementing Clone methods could also do the job. When you load your editing form, clone your object and let the form do instant manipulating of your clone. If the user clicks on 'OK', save the clone in your collection at the index of your original object.
|