Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4641ab2

Browse filesBrowse files
author
Stamatis Pitsios
committed
Update MainApp.java
Added a short explanation of the application's logic.
1 parent 6c80af2 commit 4641ab2
Copy full SHA for 4641ab2

1 file changed

+15Lines changed: 15 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎model-view-presenter/src/main/java/com/iluwatar/MainApp.java‎

Copy file name to clipboardExpand all lines: model-view-presenter/src/main/java/com/iluwatar/MainApp.java
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
package 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+
*/
318
public class MainApp {
419

520
public static void main(String[] args) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.