N
N
Nayils2015-11-08 12:25:36
Design patterns
Nayils, 2015-11-08 12:25:36

What are the responsibilities of the MVP components?

Good afternoon. Help deal with the issue. With MVP, the business logic is separated from the presentation and manages the data. Does this mean that the Presenter only manages data (getting, adding, processing, etc.) or should it also handle interface events (selecting a menu item, opening dialog boxes, etc.)? For example, there is some application that works with the database, but this application also has functions that have nothing to do with the database: the "Exit" or "Help" menu item, changing the background and text colors, changing the text on the button (For example when you click on the button, the text "Enable" changes to "Disable"), some functions for decorating the window, in general, everything that has nothing to do with the model. Should all this functionality be implemented in the View or in the Presenter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question