Package View
Class ViewObject
java.lang.Object
View.ViewObject
- All Implemented Interfaces:
IView
- Direct Known Subclasses:
AppointmentManagementView
,EnumView
,InventoryManagementView
,LoginView
,SelectionView
,StaffManagementView
,UserView
Abstract class for all views
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
display()
Display the viewprotected int
getInput()
Get user input and handle it (Calls @see handleInput)int
handleInput
(int choice) Handle user input
Runs the function associated with the choiceprotected void
Print all actions in the actions list
-
Field Details
-
actions
-
-
Constructor Details
-
ViewObject
public ViewObject()
-
-
Method Details
-
display
-
getInput
protected int getInput()Get user input and handle it (Calls @see handleInput)- Returns:
- 0 to end the display loop, 1 to show the menu again
-
handleInput
public int handleInput(int choice) Handle user input
Runs the function associated with the choice- Parameters:
choice
- user input- Returns:
- 0 to end the display loop, 1 to show the menu again
-
printActions
protected void printActions()Print all actions in the actions list- See Also:
-