Package FLOTF
Class UserEntryController
- java.lang.Object
-
- FLOTF.UserEntryController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
public class UserEntryController extends java.lang.Object implements javafx.fxml.Initializable
This class controls the window that takes in user entries for Job Control Number and Quantity that needs to be ordered- Author:
- Bernard Chan, Sonali Loomba
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javafx.scene.control.Button
cancel
fx id of Button for user to cancel order and return to display of parsed parts from technical order MainController.fxml window(package private) javafx.scene.text.Text
description
fx id of Text displaying chosen part's description(package private) javafx.scene.control.TextField
jcn
fx id of TextField for user to enter Job Control Number(package private) javafx.scene.text.Text
nsn
fx id of Text displaying chosen part's matching stock number(package private) javafx.scene.control.Button
order
fx id of Button for user to order part and fill F9006(package private) javafx.scene.text.Text
partNumber
fx id of Text displaying chosen part's number(package private) javafx.scene.control.TextField
quantity
fx id of TextField for user to enter quantity that needs to be ordered(package private) javafx.scene.text.Text
stock
fx id of Text displaying chosen part's quantity currently in stock
-
Constructor Summary
Constructors Constructor Description UserEntryController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel(javafx.event.ActionEvent e)
Clears part chosen information Returns to MainController.fxml window with TO part table and clears chosen part informationvoid
initialize(java.net.URL url, java.util.ResourceBundle rb)
Initializes UserEntryController.fxml window Sets part number, stock number, description, and quantity in stock from chosen part's relevant fieldsvoid
order(javafx.event.ActionEvent e)
Stores job control number and quantity that user has entered Closes program if both fields are entered
-
-
-
Field Detail
-
jcn
javafx.scene.control.TextField jcn
fx id of TextField for user to enter Job Control Number
-
quantity
javafx.scene.control.TextField quantity
fx id of TextField for user to enter quantity that needs to be ordered
-
order
javafx.scene.control.Button order
fx id of Button for user to order part and fill F9006
-
cancel
javafx.scene.control.Button cancel
fx id of Button for user to cancel order and return to display of parsed parts from technical order MainController.fxml window
-
partNumber
javafx.scene.text.Text partNumber
fx id of Text displaying chosen part's number
-
nsn
javafx.scene.text.Text nsn
fx id of Text displaying chosen part's matching stock number
-
stock
javafx.scene.text.Text stock
fx id of Text displaying chosen part's quantity currently in stock
-
description
javafx.scene.text.Text description
fx id of Text displaying chosen part's description
-
-
Method Detail
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle rb)
Initializes UserEntryController.fxml window Sets part number, stock number, description, and quantity in stock from chosen part's relevant fields- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
-rb
-
-
order
public void order(javafx.event.ActionEvent e)
Stores job control number and quantity that user has entered Closes program if both fields are entered- Parameters:
e
- button clicked
-
cancel
public void cancel(javafx.event.ActionEvent e) throws java.lang.Exception
Clears part chosen information Returns to MainController.fxml window with TO part table and clears chosen part information- Parameters:
e
- button clicked- Throws:
java.lang.Exception
- if MainController.fxml is unable to load
-
-