How shawneetz/22project works
This is a JavaFX shop and farm inventory prototype. A user enters the main product view, where manager/clerk actions can add stock to the shelf and managers can open the product database; product creation and stock transfers update in-memory containers. The code also saves database and shelf data to text files. Inventory management is represented, but the main view currently uses the database where inventory is intended. Login and import/export code appear unfinished or leftover. Relationships below are limited to the excerpts and SOURCE INDEX; unsampled data-loading behavior is not inferred.
Main entry points: Main.java Main View · ProductContainer.java Product Containers · ProductCreationWindow.java Create Product · AddProductWindow.java Add Stock
Components 15
Application
- Main View
fxtest2/src/application/Main.java - Import Export Handler
fxtest2/src/application/ImportExportHandler.java
Shop Interface
- Product Database
fxtest2/src/ui/DatabaseScene.java - Inventory View
fxtest2/src/ui/InventoryScene.java - Add Stock
fxtest2/src/ui/AddProductWindow.java - Create Product
fxtest2/src/ui/ProductCreationWindow.java - Text Field
fxtest2/src/ui/LabelledTextField.java - Test Login
fxtest2/src/ui/TestLoginWindow.java - Password Field
fxtest2/src/ui/LabelledPasswordField.java
Product Domain
- Product
fxtest2/src/application/Product.java - Product Containers
fxtest2/src/application/ProductContainer.java - User Roles
fxtest2/src/application/User.java
Text Data
- Product Database File
fxtest2/src/data/productsDB.txt - Shelf File
fxtest2/src/data/shelf.txt
Other components
- Shop User
Connections 23
- Shop User → Main View: uses
- Main View → Product Database: opens
fxtest2/src/application/Main.java - Main View → Inventory View: references
fxtest2/src/application/Main.java - Main View → Add Stock: opens
fxtest2/src/application/Main.java - Main View → Create Product: references
fxtest2/src/application/Main.java - Main View → Product Containers: manages
fxtest2/src/application/Main.java - Main View → Product: creates
fxtest2/src/application/Main.java - Main View → User Roles: checks roles
fxtest2/src/application/Main.java - Main View → Product Database File: writes
fxtest2/src/application/Main.java - Main View → Shelf File: writes
fxtest2/src/application/Main.java - Product Database → Create Product: opens
fxtest2/src/ui/DatabaseScene.java - Product Database → Product Containers: displays
fxtest2/src/ui/DatabaseScene.java - Inventory View → Add Stock: opens
fxtest2/src/ui/InventoryScene.java - Inventory View → Product Containers: displays
fxtest2/src/ui/InventoryScene.java - Add Stock → Product Containers: transfers stock
fxtest2/src/ui/AddProductWindow.java - Add Stock → Product: selects
fxtest2/src/ui/AddProductWindow.java - Create Product → Product Containers: adds product
fxtest2/src/ui/ProductCreationWindow.java - Create Product → Product: creates
fxtest2/src/ui/ProductCreationWindow.java - Create Product → Text Field: uses fields
fxtest2/src/ui/ProductCreationWindow.java - Product Containers → Product: stores
fxtest2/src/application/ProductContainer.java - Test Login → User Roles: checks credentials
fxtest2/src/ui/TestLoginWindow.java - Test Login → Text Field: uses field
fxtest2/src/ui/TestLoginWindow.java - Test Login → Password Field: uses field
fxtest2/src/ui/TestLoginWindow.java