-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added general-purpose Controller class (closes #10 )
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
hw4/cmd_regestration_form/src/main/java/edu/summer/java/Controller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package edu.summer.java; | ||
|
||
import java.util.ResourceBundle; | ||
|
||
/** | ||
* Class Controller is general controller contains app flow logic. | ||
* Contains references to: | ||
* @see ResourceBundle | ||
* @author Roman Bozhko | ||
* @version 1.0 | ||
*/ | ||
public class Controller { | ||
private final ResourceBundle bundle; | ||
|
||
public Controller(ResourceBundle bundle) { | ||
this.bundle = bundle; | ||
} | ||
|
||
public void runApp() { | ||
new RecordController(bundle, new RecordView()).processInput(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters