Thursday, 14 February 2008
ListModel problem solved (for now)
After looking at Daniel's newest version of the code, where the Vectors containing Schemas have been replaced by ArrayLists, I have given up on automatically syncing the two data structures. The quick-and-dirty fix is simply to find every action which changes the ArrayList, and perform the equivilent action in the ListModel. This works well for the moment, and any progress is good, but I'd like to re-visit this and find a more elegant way to do it. One thought I have at the moment is to write an add/remove method in the Processor class which would take a schema as a parameter and add/remove is from both structures. Something like this should act to keep things in sync, so long as it is used everytime in place of modifying the structures directly.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment