Well, my motivation.......
In my past projects in doing the same technique, it has
made modifications to the code very simplistic, including
more reusable across entire application.
My objects: Pretty simplistic object structure...
I have an interface called ClickAndDropObj which will be an aggregate
object in a list called ClickAndDropObjLibrary.
There are other responsibilites of the CNDObjLibrary. Once and CNDObj
is added, the library will update its view (being a self contained GUI).
So at all times the CNDObject will know how to display itself.
But, my real confusion is the following:
I want the best way to add these elements to the library, but who really
needs the responsibility of doing so? The element, library, or moderator ?
If it is the element, then the element would be coupled with the library.
Likewise with the library.
The moderator would be the glue between the lib and aggregates. Mainly responsible for adding,removing, updating the list.
So, is there any best way to do so ?
Thanks for reading my post....