Sorry in advance if this topic has already been covered before, but I just can't seem to find the answer to this.
Because I'd like to have manageable code, I'm trying not to place everything in one single class (like I see in all the basic examples). So I have several Component classes that cover pages, buttons, tabs, tables, etc. But how do I get the events to talk to each other when each of the components are in different classes? For example, let's say I have a new Page widget that I create from my Entrypoint. That page contains a button and a table. The button is supposed to do something to the table such as load it with data. How do I get the button's handler object to access the table? Here are my options: 1) Pass in the table to the button. 2) Pass in the page to the button (like a parent object?) 3) Have some sort of global event bus on the entrypoint that marshals events back and forth??? None of these have worked particularly well. Is everyone else just including all your objects as finals in a single class? Or is there some sort of simple design principle I'm missing here? Trevor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
