-
Notifications
You must be signed in to change notification settings - Fork 0
/
EnglishDisplay.java
106 lines (68 loc) · 2.5 KB
/
EnglishDisplay.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
package bankingapplication;
import java.util.Scanner;
public class EnglishDisplay implements Menu {
static Scanner customerInput = new Scanner(System.in);
public void displayAccountBalance(Currency currency, double balance) {
System.out.println("Account Balance: " + balance + " " + currency);
}
public void displayAccountMenu() {
System.out.println("ACCOUNT MENU");
DisplayHandler.menuBreaker();
System.out.println("1 - Check Balance");
System.out.println("2 - Deposit");
System.out.println("3 - Withdraw");
System.out.println("4 - Display Last Transcations");
System.out.println("5 - Log Out");
}
public void displayAccountNotFoundMessage() {
System.out.println("This account was not found.");
}
public void displayAppWelcome(String bankname) {
System.out.println("Welcome to the Bank of " + bankname + "!");
}
public void displayCreateUsernameMessage() {
System.out.print("Please create new username: ");
}
public void displayCurrentLanguage() {
System.out.print("Lang: " + Language.ENG + " ");
}
public static void displayLanguageChoice() {
System.out.println("You have selected English!");
DisplayHandler.displayGap();
//System.out.println("Sie haben Deutsch gewählt!");
}
public void displayLoggedOutMessage(String accountName) {
System.out.println(accountName + " has decided to log out. Good Bye");
}
public void displayLoginMenu() {
System.out.println("LOGIN MENU");
DisplayHandler.menuBreaker();
System.out.print("Dear Customer. Please enter your Username: ");
}
public void displayQuitAppMessage() {
System.out.print("You have selected close this Application. Thank you and Goodbye!");
}
public void displayStartMenu() {
System.out.println("MAIN MENU");
DisplayHandler.menuBreaker();
System.out.println("1 - Login Account");
System.out.println("2 - Create Account");
System.out.println("3 - Display Account Names");
System.out.println("4 - Quit Application");
System.out.println("5 - Change Language");
}
public void displaySelectLanguageHeading() {
System.out.println("Please select your desired Language:");
int index = 0;
for(Language lang : Language.values()) {
index++;
System.out.println(index + " - " + lang);
}
}
public void displayWrongInputMessage() {
System.out.print("Please enter a correct option.");
}
public void displayWelcomeLoggedCustomer(String cid, String name) {
System.out.println("Welcome Customer ID: " + cid + ". "+ name + "!");
}
}