My program has essentially 3 steps: 1) Query Geocoder object for some Coordinates and store them in a Collection 2) Send the results to my main module for plotting on a map 3) Plot them on a google map widget
I have created a Requestor class for the purpose of handling the Geocoding -- this class has a getResults() function that returns an ArrayList of coordinates to my main module to be plotted on the map.
However, when I try to do all 3 steps within the confines of my onModuleLoad() method, I run into a concurrency problem and pull null results from the result set. I have gotten this working with a set of 3 buttons (request, pull results, and plot) but would like to have them fired automatically when the module loads.
I suspect this has something to do with firing Events and having Handlers in the proper places; if that is the case please provide a concrete example as I have tried to find a good tutorial on EventHandlers with some difficulty.