puremvc
|
|
« Reply #3 on: December 22, 2008, 12:54:06 » |
|
I think the responsibilities of the Shell and Canvas as shown in the demo are pretty clear, even though it might not be the most well-conceived demo of all time.
The Shell is responsible for communications with the Widgets, which just happen to be visually contained within the Shell component itself as children, though they could simply be held in an array that the Shell has access to.
Also, the Shell and the modules need not have a visual appearance.
When the Modules communicate with the Shell, the communicates their wishes to the rest of the main application. So the Canvas doesn't need to know anything about the modules or how do communicate with them. In the demo, we're adding or removing components to/from the canvas based on these communications.
-=Cliff>
|