Package start
Class WindowManager
- java.lang.Object
-
- start.WindowManager
-
public class WindowManager extends java.lang.ObjectManager of fxml file formats to show on the screen.- Author:
- Brandon Heck
-
-
Constructor Summary
Constructors Constructor Description WindowManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseError()When the error Window is open close the window to go away.voiddisplayOperation(java.lang.String alert, int quantity, java.lang.String message)Alert box to alert the user that an operation has occurred.voidenterDetails(ItemType itemType)After required information of a product is entered .voidenterPassword()When a password is required prompt the password field .voidsetUserOfPassword(java.lang.String user)Set the User Of Password for when password is required.
-
-
-
Field Detail
-
type
public static ItemType type
Item Type to be known to the controller.
-
info
public static final javafx.stage.Stage info
Stage re-used for error,warnings, and password required occurrence's .
-
data
public static final javafx.stage.Stage data
Information gathering Stage.
-
-
Method Detail
-
displayOperation
public void displayOperation(java.lang.String alert, int quantity, java.lang.String message) throws java.io.IOExceptionAlert box to alert the user that an operation has occurred.- Parameters:
alert- Alert type to alert the user of.quantity- number specific codes or identifiable alert boxes.message- Message to relay to the user about the operation that has occurred.- Throws:
java.io.IOException- if the error fxml is missing or corrupted.
-
enterDetails
public void enterDetails(ItemType itemType) throws java.io.IOException
After required information of a product is entered . prompt to enter further information about the type of object to be provided.- Parameters:
itemType- Type of Item properties for the user to enter.- Throws:
java.io.IOException- if the information fxml is missing or corrupted.
-
enterPassword
public void enterPassword() throws java.io.IOExceptionWhen a password is required prompt the password field . so that the user may enter the required password.- Throws:
java.io.IOException- if the password fxml is missing or corrupted.
-
closeError
public void closeError()
When the error Window is open close the window to go away.
-
setUserOfPassword
public void setUserOfPassword(java.lang.String user)
Set the User Of Password for when password is required.- Parameters:
user- String of username to appear on window.
-
-