Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Model - View - Presenter (Supervising Controller)? #18

Open
7 tasks
emaiannone opened this issue Feb 29, 2020 · 0 comments
Open
7 tasks

Possible Model - View - Presenter (Supervising Controller)? #18

emaiannone opened this issue Feb 29, 2020 · 0 comments
Labels
refactor Something can be improved

Comments

@emaiannone
Copy link
Collaborator

emaiannone commented Feb 29, 2020

The architectural pattern might actually be a MVP Supervising Controller, where views do not have any data binding and do not call model logic.
Model is the application, View is the set of Swing dialogs (along with their event handlers) + StartAction and Presenter might be CoreDriver.

Proposal:

  • Rename application --> model
  • Rename presentation --> gui (this allow future User Interfaces)
  • Rename CoreDriver --> CorePresenter
  • CoreDriver(Presenter) should observe on each dialogs instead of using callback interfaces
    • Dialogs should implement a View/Observable interface
    • CoreDriver(Presenter) should implement an Observer interface
  • Split CoreDriver(Presenter) into some Presenters

Another alternative is with Mediator pattern

@emaiannone emaiannone added the refactor Something can be improved label Feb 29, 2020
@emaiannone emaiannone changed the title Possible Model - View - Presenter? Possible Model - View - Presenter pattern? Feb 29, 2020
@emaiannone emaiannone changed the title Possible Model - View - Presenter pattern? Possible Model - View - Presenter (Supervising Controller)? Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Something can be improved
Projects
None yet
Development

No branches or pull requests

1 participant