Hi all.
I am up to the final stage of my system, and it requires use of the observer/observable pattern, something I haven't a clue about!
Basically, I now have a functioning "WatchList" system with which to store specific objects (Locations). Now, these objects have a number of fields relating to "stats" about that object, like "Current Weather Overview" and "Current Temperature", as well as other weathery things.
Basically, I want the values of these fields to appear in TextFields (or similar) my GUI whenever it's Location objects gets selected in my WatchList. Sounds simple enough, I think I could do that.
However, I'm thinking that perhaps I need to use the Observer pattern to update the statistics dynamically and have them change automatically when displayed, rather than having to click some sort of "refresh" button.
Anyway, I hope that makes sense. Can anybody offer any suggestions? Thanks.