Is builder design pattern is the right one to create itemBrowsePanel object? this object needs 2 others objects (iconBrowsePanel,textBrowsePanel) in order to be ready to use, as follows:
HTMLPanel itemBrowsePanel=new HTMLPanel("");
HTMLPanel iconBrowsePanel=new HTMLPanel("");
HTMLPanel textBrowsePanel=new HTMLPanel("");
HTMLPanel titlePanel=new HTMLPanel(titlePanelText);
HTMLPanel subTitlePanel=new HTMLPanel(subTitlePanelText+" "+panelName);
textBrowsePanel.add(titlePanel);
textBrowsePanel.add(subTitlePanel);
itemBrowsePanel.add(iconBrowsePanel);
itemBrowsePanel.add(textBrowsePanel);
if builder design pattern is the right one, is it applicable to pass arguments to any object on creation in order to construct other objects ?
Aucun commentaire:
Enregistrer un commentaire