Package masterinventory.controller
Class ModifyPartController
- java.lang.Object
-
- masterinventory.controller.ModifyPartController
-
- All Implemented Interfaces:
javafx.fxml.Initializable
public class ModifyPartController extends java.lang.Object implements javafx.fxml.Initializable
Class that provides the controller for the Modify Part UI view.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ErrorHandling
error
(package private) javafx.scene.Parent
scene
(package private) javafx.stage.Stage
stage
-
Constructor Summary
Constructors Constructor Description ModifyPartController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(java.net.URL url, java.util.ResourceBundle rb)
Initializes the ModifyPartController Class(package private) void
onActionCancelPart(javafx.event.ActionEvent event)
Returns user to the main menu if the Cancel button is clicked(package private) void
onActionClearPart(javafx.event.ActionEvent event)
Clears form input when the "Cancel" button is clicked(package private) void
onActionInHouse(javafx.event.ActionEvent event)
Adjusts label on last field to read Machine ID if the In House radio button is selected(package private) void
onActionOutsourced(javafx.event.ActionEvent event)
Adjusts label on last field to read Company Name if the Outsourced radio button is selected(package private) void
onActionSavePart(javafx.event.ActionEvent event)
Saves part after checking for validationstatic void
passParameters(Part item)
Passes saved part parameters from MainMenuController to ModifyPartController
-
-
-
Field Detail
-
stage
javafx.stage.Stage stage
-
scene
javafx.scene.Parent scene
-
error
ErrorHandling error
-
-
Method Detail
-
passParameters
public static void passParameters(Part item)
Passes saved part parameters from MainMenuController to ModifyPartController- Parameters:
item
-
-
onActionInHouse
void onActionInHouse(javafx.event.ActionEvent event)
Adjusts label on last field to read Machine ID if the In House radio button is selected- Parameters:
event
-
-
onActionOutsourced
void onActionOutsourced(javafx.event.ActionEvent event)
Adjusts label on last field to read Company Name if the Outsourced radio button is selected- Parameters:
event
-
-
onActionCancelPart
void onActionCancelPart(javafx.event.ActionEvent event) throws java.lang.Exception
Returns user to the main menu if the Cancel button is clicked- Parameters:
event
-- Throws:
java.lang.Exception
-
onActionClearPart
void onActionClearPart(javafx.event.ActionEvent event)
Clears form input when the "Cancel" button is clicked- Parameters:
event
-
-
onActionSavePart
void onActionSavePart(javafx.event.ActionEvent event) throws java.lang.Exception
Saves part after checking for validation- Parameters:
event
-- Throws:
java.lang.Exception
-
initialize
public void initialize(java.net.URL url, java.util.ResourceBundle rb)
Initializes the ModifyPartController Class- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
-rb
-
-
-