-
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.
Merge pull request #13 from AdvancedProgrammingSUT2022/aqaDanial
Aqa danial
- Loading branch information
Showing
6 changed files
with
37 additions
and
22 deletions.
There are no files selected for viewing
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
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
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
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
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,12 @@ | ||
package View; | ||
|
||
import java.util.Scanner; | ||
import java.util.regex.Matcher; | ||
|
||
public abstract class Menu { | ||
|
||
protected Scanner scanner; | ||
public abstract void run(); | ||
|
||
public Menu(Scanner scanner) {this.scanner = scanner;} | ||
} |
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 |
---|---|---|
@@ -1,18 +1,23 @@ | ||
package View; | ||
|
||
import Controller.menu.ProfileMenuController; | ||
|
||
import Enum.MenuName; | ||
import java.util.Scanner; | ||
import java.util.regex.Matcher; | ||
|
||
public class ProfileMenu { | ||
public class ProfileMenu extends Menu{ | ||
private final ProfileMenuController profileMenuController; | ||
private static Scanner scanner; | ||
public ProfileMenu(Scanner scanner, ProfileMenuController profileMenuController){ | ||
ProfileMenu.scanner = scanner; | ||
super(scanner); | ||
this.profileMenuController = profileMenuController; | ||
} | ||
|
||
public static void run() { | ||
|
||
public void run() { | ||
String input; | ||
Matcher matcher; | ||
while (MenuName.getCurrentMenu() == MenuName.PROFILE_MENU) { | ||
input = scanner.nextLine(); | ||
} | ||
} | ||
} |