vendredi 19 juin 2015

What sort of design pattern should I be using here - Tabs Generation

I am fairly new with design patterns, I have been studying them but no practical experience so this is going to be my first try, Graphical representation of GUI is shown in this diagram,

enter image description here

Points

  • Each tab is getting certain amount of data using Ajax web services

  • Master and Detail tab will take 50/50 % of the screen and would be independent of each other in terms of GUI, but only going to have master to detail relationship like if we click something in master, we get it's related details data in details tab.

What I have considered so far

  • Use module revealing pattern

  • Use Pub\Sub for events pattern

  • Create classes like tabCollection, tab, then each singleton class for each tab, let say for list of fruits i will create a fruitTab which will have methods which are going to be getting data, adding markup, adding pub\sub events and so on..

Please put me in right direction, thanks

Aucun commentaire:

Enregistrer un commentaire