Thursday, July 10, 2008

Style size feature

Hmm my third blog on Style size feature.

In my previous blog i was telling about how the feature was implemented. We have a stylecombination object for each item and styleattribute object which would contain the stylecombination objects in a arraylist. Since we do not how many styleobjects would exist for each attribute i had used arraylist to create the styleattribute. other requirement is to have level for each attribute that is to say, if there is an attribute Red color, at the level 2, then we should know that what is the level or attribute name for the Red color. Hmm using the styleattribute objects we would know how many attributes should be shown on the UI. and using the level we could create the options at the right place.

So when the user has selected an option we can enable disable the rest of the options based on the stylecombinations that each attribute has and finding out the attributes available for each stylecombination object

No comments: