codecraig
|
 |
« on: September 24, 2008, 06:36:43 » |
|
I currently have a rather complex UI. In it there is a particular view which has its own Proxy, Mediator and view components, but now I need to allow the user to multiple displays of it. So instead of a single view, maybe I use a tabbed style view.
For example, say this view displays stats about ONE baseball team. It lists players, batting averages, win/loss, etc. If they want to look at another team there is a combo box and they select a team and click "update" and the view updates.
Now, I need to have N-number of these views displayed for different teams. So, if I did a tabbed view they could have 3 tabs (for example), each tab displays stats for a different team.
Is there a recommended approach to refactoring my code to support this? Right now it's all based on getting data and displaying data for one team. Now it seems like I need a parent proxy (which handles giving data about a team to the correct child proxy) and a parent mediator and a parent view.
What do you think?
|