Hi Deepa,
I am not able to get the exact requriment with the class Names 'A',
'B','C'...
"In( A, B, C, D) I create a class One or Two based on a method call and
add it as a child to A/B/C/D as these are mxml files."
From The above statement, It looks like you want to create set of
containers that can hold each others as their child. In this case, we can
call this as 'Composite' rather 'Decorator'.
If you can explain your problem with some Business terms, I can try
helping u in this ...
Thanks & Regards,
Sathish Kumar T.
On Thu, Oct 2, 2008 at 3:20 PM, deepa <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have a set of classes A, B, C, D. All are mxml components/files
>
> These classes have common properties. They can be of series One or
> Two.
>
> A, B, C, D can be of type One and Two.
>
> Right now I have one base class CommonOneTwo that has all common
> properties.
>
> Class One and Two extend from CommonOneTwo. All these are mxml files.
>
> A, B, C, and D also implement a coomon interface that is exposed to
> the calling class/client.
>
> In( A, B, C, D) I create a class One or Two based on a method call and
> add it as a child to A/B/C/D as these are mxml files.
>
> If A, B, C, D dont need to have some properties I tried to remove/add
> those properties(like checkbox, hbox) in the One or Two Classes.
>
> I thought this is the best way of implementing, but someone else was
> of opinion that decorator pattern is an option.
>
> I am a bit confused how can I use decorator pattern here. Will that
> pattern suit to my current requirements?
>
> Can you explain how can it be implemented.
>
> Thanks
>
> >
>
--
Warm Regards,
Sathish Kumar T
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex
India Community" 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/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---