-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProduceProductMenu.java
55 lines (45 loc) · 1.14 KB
/
ProduceProductMenu.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
/**
* SER-515 Produce Product Menu responsible for bridge and factory patterns
*
* @author Nirmit Agrawal, [email protected]
* @version 1.3
* @since 10-17-2022
*/
public class ProduceProductMenu implements ProductMenu {
public void showMenu() {
Product P = new Product();
P.Menu("Produce");
}
public void showcart(String username)
{
Product p = new Product();
p.showcart(username, "Produce");
}
public String input(String username)
{
Product p = new Product();
return (p.input(username, "Produce"));
}
@Override
public void showAddButton() {
System.out.println("Add button Showed");
}
@Override
public void showViewButton() {
System.out.println("view button Showed");
}
@Override
public void showRadioButton() {
System.out.println("Radio button Showed");
}
@Override
public void showLabels() {
System.out.println("Labels Showed");
}
public void selectProduct(int UserType, String username, String category)
{
System.out.println("Produce Products Selected ....");
BridgePattern b = new BridgePattern();
Person person = b.bridge(UserType, category);
}
}