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.InitializableClass that provides the controller for the Modify Part UI view.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ErrorHandlingerror(package private) javafx.scene.Parentscene(package private) javafx.stage.Stagestage
-
Constructor Summary
Constructors Constructor Description ModifyPartController()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(java.net.URL url, java.util.ResourceBundle rb)Initializes the ModifyPartController Class(package private) voidonActionCancelPart(javafx.event.ActionEvent event)Returns user to the main menu if the Cancel button is clicked(package private) voidonActionClearPart(javafx.event.ActionEvent event)Clears form input when the "Cancel" button is clicked(package private) voidonActionInHouse(javafx.event.ActionEvent event)Adjusts label on last field to read Machine ID if the In House radio button is selected(package private) voidonActionOutsourced(javafx.event.ActionEvent event)Adjusts label on last field to read Company Name if the Outsourced radio button is selected(package private) voidonActionSavePart(javafx.event.ActionEvent event)Saves part after checking for validationstatic voidpassParameters(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.ExceptionReturns 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.ExceptionSaves 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:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-rb-
-
-