In the im project working on us, we have a strict MVC structure. I am thinking of adding a decorator template to some modal windows (tiny pop-ups) for those implementations where I want some additional features.
So I basically have the following:
SimpleModalWindowController.class
SimpleModalWindowModel.class
SimpleModalWindowView.class
EDIT:
Question: Is it possible to implement a decorator template for this for the new ModalWindows features or should I go with inheritance? I will have many different windows, and I would like to combine some of them in the future.
If I follow the decorator pattern, which class will be abstract?
Will it be a class that combines all of the above classes, such as SimpleModal.class, to set them as an abstract class, or do I have more than one abstract class?
I am obviously new to this pattern and only got average OOP skills, so please be patient.
Thanks for any help.
/ Marthin
source
share