samedi 2 octobre 2021

How can I design a complex GUI employing both builder design pattern and abstract design pattern?

I am trying to create a complex GUI, let's say the main panel containing a list panel and button panel. The button panel would again contain a couple of buttons. The construction sequence would be something like this: constructMainPanel() constructListPanel(mainpanel) constructButtonPanel(mainPanel) constructButton('b1',buttonPanel) constructButton('b2',buttonPanel) This GUI would have 2 styles: Linux and Windows. How can I design this GUI using both builder design pattern and abstract design pattern? How would the class diagram look like?

I understand the builder and abstract factory patterns, but how can I use them together. This is the builder pattern I refer to builder pattern wiki. This is the abstract factory pattern I refer to abstract factory wiki

Aucun commentaire:

Enregistrer un commentaire