Package UI.InventoryPages
Class ViewInventoryPage
java.lang.Object
Common.UserInterface
UI.InventoryPages.ViewInventoryPage
The
ViewInventoryPage
class provides functionality for displaying
the inventory of medicines. It extends UserInterface
and interacts
with the InventoryDatabase
to retrieve and display inventory details.-
Field Summary
Fields inherited from class Common.UserInterface
scanner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
display
(InventoryDatabase inventoryDatabase) Displays the contents of the specified inventory database.Methods inherited from class Common.UserInterface
displayError, displaySuccess, getIntInput, getNumericString, getValidatedInt, getValidatedString, pauseAndView
-
Constructor Details
-
ViewInventoryPage
public ViewInventoryPage()
-
-
Method Details
-
display
Displays the contents of the specified inventory database.- Parameters:
inventoryDatabase
- theInventoryDatabase
containing inventory items to display
-