File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
model-view-presenter/src/main/java/com/iluwatar Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 11package com .iluwatar ;
22
3+ /**
4+ *
5+ * The Model-View-Presenter(MVP) architectural pattern, helps us achieve what is
6+ * called "The separation of concerns" principle. This is accomplished
7+ * by separating the application's logic(Model), GUIs(View), and finally
8+ * the way that the user's actions update the application's logic(Presenter).
9+ *
10+ * In the following example, The FileLoader class represents the app's logic,
11+ * the FileSelectorJFrame is the GUI and the FileSelectorPresenter is
12+ * responsible to respond to users' actions.
13+ *
14+ * Finally, please notice the wiring between the Presenter and the View
15+ * and between the Presenter and the Model.
16+ *
17+ */
318public class MainApp {
419
520 public static void main (String [] args ) {
You can’t perform that action at this time.
0 commit comments