samedi 2 décembre 2017

Adding a UI to an application that uses the command pattern

I am adding a UI to an application that uses the command pattern, should I put the ActionEvent listeners in each commands class, or in another class?

In detail, what would be the best design to go for, should I put all the ActionEvent listening logic in the individual command's class, or make a seperate class file for the UI, which contains the logic for all the ActionEvents listening?

Aucun commentaire:

Enregistrer un commentaire