Package start

Class WindowManager


  • public class WindowManager
    extends java.lang.Object
    Manager of fxml file formats to show on the screen.
    Author:
    Brandon Heck
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javafx.stage.Stage data
      Information gathering Stage.
      static javafx.stage.Stage info
      Stage re-used for error,warnings, and password required occurrence's .
      static ItemType type
      Item Type to be known to the controller.
    • Constructor Summary

      Constructors 
      Constructor Description
      WindowManager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void closeError()
      When the error Window is open close the window to go away.
      void displayOperation​(java.lang.String alert, int quantity, java.lang.String message)
      Alert box to alert the user that an operation has occurred.
      void enterDetails​(ItemType itemType)
      After required information of a product is entered .
      void enterPassword()
      When a password is required prompt the password field .
      void setUserOfPassword​(java.lang.String user)
      Set the User Of Password for when password is required.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • WindowManager

        public WindowManager()
    • Method Detail

      • displayOperation

        public void displayOperation​(java.lang.String alert,
                                     int quantity,
                                     java.lang.String message)
                              throws java.io.IOException
        Alert 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.IOException
        When 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.