SlideShare a Scribd company logo
1 of 3
Download to read offline
This application is used to keep track of inventory information. A company wants to allow users
to input information about inventory items and then print a list of items in inventory that need
to be re-ordered.
There are three classes in this assignment (specific details further down) in addition to the
application main class:
The Inventory Class
o This is the class that you wrote in Assignment 1.
o You must make any necessary corrections to this class before you write this assignment.
See your Assignment 1 evaluation.
The InventoryList class
o Models an Array or List of Inventory objects that are input by the user.
The Assign2Controller class
o Has an object of the InventoryList class to store and manage the information of items in
the inventory.
o This class must contain all event handling code needed to run the application (more
details below).
All classes must be part of the same package.
1. Inventory Class
You wrote this class in Assignment 1.
You must make any corrections to this class before you finish Assignment 2.
2. InventoryList Class
The InventoryList class models a list of the inventory items entered by the user. For this
assignment it will be used to contain Inventory objects as they are input by the user. The
specs for the InventoryList class are shown in the diagram below:
Class: InventoryList
Data Members:
- invList : ArrayList
Method Members:
+ InventoryList()
+ add(inventory : Inventory) : void
+ get(index : int) : Inventory
+ length() : int
The invList member is an Array or ArrayList of Inventory objects. You can instantiate the
empty ArrayList in the same statement in which you declare it.
The add() method accepts an Inventory object to add to the invList. There is nothing
special going on here: simply add the object to invList.
The get() method accepts an integer index and returns the Inventory object at that
index, but only if the index is a valid index. If the index is invalid, the method should
simply return a null object.
The length() method returns the size of the invList (the # of elements that contain
Inventory objects).
You don't need a toString() at this time, but you could add one if you wanted to.
The UI Controls, Layout, and Styling
The Main UI
Your program has the following UI elements (specific details about functionality are outlined
later):
A label heading with the text "Inventory Tracker". The label is bound to the top of the
screen and remains centred, regardless of screen width.
Label/TextField pairs to be used for data entry by the user. There is one pair of controls
for each field input. The labels contain the String captions.
The ADD button. This button has the hot-key "A" and is used to clear the input fields so
that the user can easily type inputs for a new Inventory object.
The SAVE button. This button has the hot-key "S" and is used to save the current input
values as an Inventory object to the InventoryList. The inputs entered by the user are
validated before the Inventory object is added to the InventoryList: any errors are
displayed in Alert dialog boxes.
The ORDERS button. This button has the hot-key "O" and, when clicked, will display a list
of Inventory objects from the InventoryList that need to be re-ordered (qoh <= rop). The
list of items is displayed in the TextArea below the input area.
The EXIT button. This button is used to exit the program, upon confirmation from the
user.
The input fields and buttons are laid out in the "Input Area", in a GridPane container
(instead of AnchorPane, details later).
The Messages Label. This label is at the bottom of the UI. It is used for:
- It displays a message "No items to list. Add some." in red when the user clicks the
ORDER button while the InventoryList is empty.
- It displays a message "No items to re-order." when the user clicks ORDERS and there
are items in the InventoryList, but none that need to be re-ordered.
The UI elements must be laid out and displayed exactly as shown in the screen shots. Your UI
must contain a meaningful title in the title bar.
The UI's Functionality
Use event handlers to add control functionalities as follows:
When ADD Button is clicked or Hot key: A is used, the following tasks are done:
All text fields emptied of all text.
Depending on how you deal with the message label, you might also need to remove the
"error" from the message label at this point and empty its text.
When SAVE Button is clicked or Hot key: S is used:
Construct a new Inventory object and use the mutator methods to assign the user
inputs to each field.
Handle any error: display an Alert dialog box for the field that has the error. Note: only
show one error message at a time. Showing several error dialogs at once is extremely
cumbersome for the user. Alert dialogs appear with Inventory error messages when an
input is invalid.
If no exceptions occur: Add the new Inventory item to the InventoryList.
When ORDERS Button is clicked or Hot key: O is used:
Display only those items from the InventoryList that need re-ordering
If the InventoryList is empty, display the message "No items to list. Add some." in the
bottom message label.
If there are items in the InventoryList, display each Inventory object that needs to be re-
ordered by adding those Inventory objects to the TextArea on a separate line.
If no items get added to the TextArea, display the message "No items to re-order." in
the bottom message label.
EXIT Button
Displays an Alert dialog that asks if the user is sure that they wish to exit (Yes/No). If the
user says Yes, exit the program. If the user says no, do nothin

More Related Content

Similar to This application is used to keep track of inventory information. A c.pdf

The purpose of this assignment is to give you practice with writing lo.docx
The purpose of this assignment is to give you practice with writing lo.docxThe purpose of this assignment is to give you practice with writing lo.docx
The purpose of this assignment is to give you practice with writing lo.docxStephenzcxParsonsq
 
in python Purpose The purpose of this assignment is to give you practi.docx
in python Purpose The purpose of this assignment is to give you practi.docxin python Purpose The purpose of this assignment is to give you practi.docx
in python Purpose The purpose of this assignment is to give you practi.docxMichaelQEBMartinc
 
ObjectivesUse inheritance to create base and child classes.docx
ObjectivesUse inheritance to create base and child classes.docxObjectivesUse inheritance to create base and child classes.docx
ObjectivesUse inheritance to create base and child classes.docxmccormicknadine86
 
How to Create Drop Down Lists in Excel, step by step
How to Create Drop Down Lists in Excel, step by stepHow to Create Drop Down Lists in Excel, step by step
How to Create Drop Down Lists in Excel, step by stepSelect Distinct Limited
 
Alv report-tutorial-www.sapexpert.co .uk-
Alv report-tutorial-www.sapexpert.co .uk-Alv report-tutorial-www.sapexpert.co .uk-
Alv report-tutorial-www.sapexpert.co .uk-Faina Fridman
 
Excel Formulas Functions
Excel Formulas FunctionsExcel Formulas Functions
Excel Formulas Functionssimply_coool
 
Getting started with the visual basic editor
Getting started with the visual basic editorGetting started with the visual basic editor
Getting started with the visual basic editorputiadetiara
 
Excel Formulas Functions 2007
Excel Formulas Functions 2007Excel Formulas Functions 2007
Excel Formulas Functions 2007simply_coool
 
Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020Adhi Wikantyoso
 
INTRODUCTION The goal of this programming project is to entble studen.pdf
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdfameancal
 
Debugger Of Turbo C
Debugger Of Turbo CDebugger Of Turbo C
Debugger Of Turbo Cmohit2501
 
Baijan Savalan Hysys v8.0
Baijan Savalan Hysys v8.0Baijan Savalan Hysys v8.0
Baijan Savalan Hysys v8.0Baijan Savalan
 
Computer Applications in Business Tally unit 5
Computer Applications in Business Tally  unit 5Computer Applications in Business Tally  unit 5
Computer Applications in Business Tally unit 5Dr T.Sivakami
 

Similar to This application is used to keep track of inventory information. A c.pdf (20)

The purpose of this assignment is to give you practice with writing lo.docx
The purpose of this assignment is to give you practice with writing lo.docxThe purpose of this assignment is to give you practice with writing lo.docx
The purpose of this assignment is to give you practice with writing lo.docx
 
in python Purpose The purpose of this assignment is to give you practi.docx
in python Purpose The purpose of this assignment is to give you practi.docxin python Purpose The purpose of this assignment is to give you practi.docx
in python Purpose The purpose of this assignment is to give you practi.docx
 
Maliram poonia project
Maliram poonia projectMaliram poonia project
Maliram poonia project
 
ObjectivesUse inheritance to create base and child classes.docx
ObjectivesUse inheritance to create base and child classes.docxObjectivesUse inheritance to create base and child classes.docx
ObjectivesUse inheritance to create base and child classes.docx
 
Module iii part i
Module iii part iModule iii part i
Module iii part i
 
How to Create Drop Down Lists in Excel, step by step
How to Create Drop Down Lists in Excel, step by stepHow to Create Drop Down Lists in Excel, step by step
How to Create Drop Down Lists in Excel, step by step
 
2 front panel
2  front panel2  front panel
2 front panel
 
Alv report-tutorial-www.sapexpert.co .uk-
Alv report-tutorial-www.sapexpert.co .uk-Alv report-tutorial-www.sapexpert.co .uk-
Alv report-tutorial-www.sapexpert.co .uk-
 
Excel Formulas Functions
Excel Formulas FunctionsExcel Formulas Functions
Excel Formulas Functions
 
How to Use VLOOKUP in Excel
How to Use VLOOKUP in ExcelHow to Use VLOOKUP in Excel
How to Use VLOOKUP in Excel
 
Getting started with the visual basic editor
Getting started with the visual basic editorGetting started with the visual basic editor
Getting started with the visual basic editor
 
Excel Formulas Functions 2007
Excel Formulas Functions 2007Excel Formulas Functions 2007
Excel Formulas Functions 2007
 
Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020Easy Pivot Tutorial June 2020
Easy Pivot Tutorial June 2020
 
INTRODUCTION The goal of this programming project is to entble studen.pdf
 INTRODUCTION The goal of this programming project is to entble studen.pdf INTRODUCTION The goal of this programming project is to entble studen.pdf
INTRODUCTION The goal of this programming project is to entble studen.pdf
 
Debugger Of Turbo C
Debugger Of Turbo CDebugger Of Turbo C
Debugger Of Turbo C
 
Tugas testing
Tugas testingTugas testing
Tugas testing
 
Baijan Savalan Hysys v8.0
Baijan Savalan Hysys v8.0Baijan Savalan Hysys v8.0
Baijan Savalan Hysys v8.0
 
LoMag inventory management software - users manual
LoMag inventory management software - users manualLoMag inventory management software - users manual
LoMag inventory management software - users manual
 
Computer Applications in Business Tally unit 5
Computer Applications in Business Tally  unit 5Computer Applications in Business Tally  unit 5
Computer Applications in Business Tally unit 5
 
Tally
TallyTally
Tally
 

More from ambikacomputer4301

This is neuroscience course (masters) 1. What percent.pdf
This is neuroscience course (masters)  1. What percent.pdfThis is neuroscience course (masters)  1. What percent.pdf
This is neuroscience course (masters) 1. What percent.pdfambikacomputer4301
 
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdfthis is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdfambikacomputer4301
 
this is all of the information that I have please help Lab 5 In.pdf
this is all of the information that I have please help  Lab 5 In.pdfthis is all of the information that I have please help  Lab 5 In.pdf
this is all of the information that I have please help Lab 5 In.pdfambikacomputer4301
 
This is a question from AI check if it is correct In which of the .pdf
This is a question from AI check if it is correct  In which of the .pdfThis is a question from AI check if it is correct  In which of the .pdf
This is a question from AI check if it is correct In which of the .pdfambikacomputer4301
 
This is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdfThis is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdfambikacomputer4301
 
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdfThis is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdfambikacomputer4301
 
This is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdfThis is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdfambikacomputer4301
 
Todas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdfTodas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdfambikacomputer4301
 
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdfTodas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdfambikacomputer4301
 
To what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdfTo what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdfambikacomputer4301
 
This data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdfThis data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdfambikacomputer4301
 
To examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdfTo examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdfambikacomputer4301
 
To create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdfTo create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdfambikacomputer4301
 
To complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdfTo complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdfambikacomputer4301
 
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdfTitle Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdfambikacomputer4301
 
This assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdfThis assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdfambikacomputer4301
 
Tide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdfTide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdfambikacomputer4301
 
Throughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdfThroughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdfambikacomputer4301
 
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdfThree students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdfambikacomputer4301
 
Three randomly selected children are surveyed. The ages of the child.pdf
Three randomly selected children are surveyed. The ages of the child.pdfThree randomly selected children are surveyed. The ages of the child.pdf
Three randomly selected children are surveyed. The ages of the child.pdfambikacomputer4301
 

More from ambikacomputer4301 (20)

This is neuroscience course (masters) 1. What percent.pdf
This is neuroscience course (masters)  1. What percent.pdfThis is neuroscience course (masters)  1. What percent.pdf
This is neuroscience course (masters) 1. What percent.pdf
 
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdfthis is my project charter..i want to prepare WBS level upto 4 lev.pdf
this is my project charter..i want to prepare WBS level upto 4 lev.pdf
 
this is all of the information that I have please help Lab 5 In.pdf
this is all of the information that I have please help  Lab 5 In.pdfthis is all of the information that I have please help  Lab 5 In.pdf
this is all of the information that I have please help Lab 5 In.pdf
 
This is a question from AI check if it is correct In which of the .pdf
This is a question from AI check if it is correct  In which of the .pdfThis is a question from AI check if it is correct  In which of the .pdf
This is a question from AI check if it is correct In which of the .pdf
 
This is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdfThis is a project management course topic . please help me A proje.pdf
This is a project management course topic . please help me A proje.pdf
 
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdfThis is Canadian Accounting  Nova Gold Miners (NGM) is a gold mining.pdf
This is Canadian Accounting Nova Gold Miners (NGM) is a gold mining.pdf
 
This is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdfThis is for Object oriented and analysis thank youConsider a syste.pdf
This is for Object oriented and analysis thank youConsider a syste.pdf
 
Todas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdfTodas las siguientes afirmaciones describen correctamente alguna par.pdf
Todas las siguientes afirmaciones describen correctamente alguna par.pdf
 
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdfTodas las siguientes afirmaciones describen con precisi�n una comuni.pdf
Todas las siguientes afirmaciones describen con precisi�n una comuni.pdf
 
To what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdfTo what extent do you believe that social media is or is not ubiquit.pdf
To what extent do you believe that social media is or is not ubiquit.pdf
 
This data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdfThis data shows the relation between Tucson and Phoenixs airports a.pdf
This data shows the relation between Tucson and Phoenixs airports a.pdf
 
To examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdfTo examine the potential effects on the transmission of dengue, Bian.pdf
To examine the potential effects on the transmission of dengue, Bian.pdf
 
To create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdfTo create a 2D graphics scene using the HTML canvas element. The ide.pdf
To create a 2D graphics scene using the HTML canvas element. The ide.pdf
 
To complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdfTo complete this discussion, please base your work on Enron, WorldCo.pdf
To complete this discussion, please base your work on Enron, WorldCo.pdf
 
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdfTitle Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
Title Is it a Planned ShowMrs. Jancy works with TBL global servic.pdf
 
This assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdfThis assignment is using Logism to create circuits. I have been tryi.pdf
This assignment is using Logism to create circuits. I have been tryi.pdf
 
Tide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdfTide is conducting market research to assess a new detergent theyre.pdf
Tide is conducting market research to assess a new detergent theyre.pdf
 
Throughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdfThroughout the course project, your persona is that of a data analys.pdf
Throughout the course project, your persona is that of a data analys.pdf
 
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdfThree students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
Three students, Habib, Vikki and Claire, in Bio 200 ran their sample.pdf
 
Three randomly selected children are surveyed. The ages of the child.pdf
Three randomly selected children are surveyed. The ages of the child.pdfThree randomly selected children are surveyed. The ages of the child.pdf
Three randomly selected children are surveyed. The ages of the child.pdf
 

Recently uploaded

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Recently uploaded (20)

KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

This application is used to keep track of inventory information. A c.pdf

  • 1. This application is used to keep track of inventory information. A company wants to allow users to input information about inventory items and then print a list of items in inventory that need to be re-ordered. There are three classes in this assignment (specific details further down) in addition to the application main class: The Inventory Class o This is the class that you wrote in Assignment 1. o You must make any necessary corrections to this class before you write this assignment. See your Assignment 1 evaluation. The InventoryList class o Models an Array or List of Inventory objects that are input by the user. The Assign2Controller class o Has an object of the InventoryList class to store and manage the information of items in the inventory. o This class must contain all event handling code needed to run the application (more details below). All classes must be part of the same package. 1. Inventory Class You wrote this class in Assignment 1. You must make any corrections to this class before you finish Assignment 2. 2. InventoryList Class The InventoryList class models a list of the inventory items entered by the user. For this assignment it will be used to contain Inventory objects as they are input by the user. The specs for the InventoryList class are shown in the diagram below: Class: InventoryList Data Members: - invList : ArrayList Method Members: + InventoryList() + add(inventory : Inventory) : void + get(index : int) : Inventory + length() : int The invList member is an Array or ArrayList of Inventory objects. You can instantiate the empty ArrayList in the same statement in which you declare it.
  • 2. The add() method accepts an Inventory object to add to the invList. There is nothing special going on here: simply add the object to invList. The get() method accepts an integer index and returns the Inventory object at that index, but only if the index is a valid index. If the index is invalid, the method should simply return a null object. The length() method returns the size of the invList (the # of elements that contain Inventory objects). You don't need a toString() at this time, but you could add one if you wanted to. The UI Controls, Layout, and Styling The Main UI Your program has the following UI elements (specific details about functionality are outlined later): A label heading with the text "Inventory Tracker". The label is bound to the top of the screen and remains centred, regardless of screen width. Label/TextField pairs to be used for data entry by the user. There is one pair of controls for each field input. The labels contain the String captions. The ADD button. This button has the hot-key "A" and is used to clear the input fields so that the user can easily type inputs for a new Inventory object. The SAVE button. This button has the hot-key "S" and is used to save the current input values as an Inventory object to the InventoryList. The inputs entered by the user are validated before the Inventory object is added to the InventoryList: any errors are displayed in Alert dialog boxes. The ORDERS button. This button has the hot-key "O" and, when clicked, will display a list of Inventory objects from the InventoryList that need to be re-ordered (qoh <= rop). The list of items is displayed in the TextArea below the input area. The EXIT button. This button is used to exit the program, upon confirmation from the user. The input fields and buttons are laid out in the "Input Area", in a GridPane container (instead of AnchorPane, details later). The Messages Label. This label is at the bottom of the UI. It is used for: - It displays a message "No items to list. Add some." in red when the user clicks the ORDER button while the InventoryList is empty. - It displays a message "No items to re-order." when the user clicks ORDERS and there are items in the InventoryList, but none that need to be re-ordered. The UI elements must be laid out and displayed exactly as shown in the screen shots. Your UI
  • 3. must contain a meaningful title in the title bar. The UI's Functionality Use event handlers to add control functionalities as follows: When ADD Button is clicked or Hot key: A is used, the following tasks are done: All text fields emptied of all text. Depending on how you deal with the message label, you might also need to remove the "error" from the message label at this point and empty its text. When SAVE Button is clicked or Hot key: S is used: Construct a new Inventory object and use the mutator methods to assign the user inputs to each field. Handle any error: display an Alert dialog box for the field that has the error. Note: only show one error message at a time. Showing several error dialogs at once is extremely cumbersome for the user. Alert dialogs appear with Inventory error messages when an input is invalid. If no exceptions occur: Add the new Inventory item to the InventoryList. When ORDERS Button is clicked or Hot key: O is used: Display only those items from the InventoryList that need re-ordering If the InventoryList is empty, display the message "No items to list. Add some." in the bottom message label. If there are items in the InventoryList, display each Inventory object that needs to be re- ordered by adding those Inventory objects to the TextArea on a separate line. If no items get added to the TextArea, display the message "No items to re-order." in the bottom message label. EXIT Button Displays an Alert dialog that asks if the user is sure that they wish to exit (Yes/No). If the user says Yes, exit the program. If the user says no, do nothin