Package start

Class Main


  • public class Main
    extends javafx.application.Application
    Main starting Java commands for the Production GUI.
    Author:
    Brandon Heck
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javafx.application.Application

        javafx.application.Application.Parameters
    • Field Summary

      • Fields inherited from class javafx.application.Application

        STYLESHEET_CASPIAN, STYLESHEET_MODENA
    • Constructor Summary

      Constructors 
      Constructor Description
      Main()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static void setProduct​(Product device)
      Passes a Product Device to the Controller so that it is able to Retain the.
      void start​(javafx.stage.Stage primaryStage)  
      void toggleStage​(boolean show)
      Toggle Stage.
      void validatePassword​(java.lang.String pass)
      Sends the entered password to test if it is valid to the database.
      • Methods inherited from class javafx.application.Application

        getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Main

        public Main()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • start

        public void start​(javafx.stage.Stage primaryStage)
                   throws java.lang.Exception
        Specified by:
        start in class javafx.application.Application
        Throws:
        java.lang.Exception
      • validatePassword

        public void validatePassword​(java.lang.String pass)
        Sends the entered password to test if it is valid to the database.
        Parameters:
        pass - Password to try to log into the database with.
      • toggleStage

        public void toggleStage​(boolean show)
        Toggle Stage.
        Parameters:
        show - true = show the stage | false = hide the stage.
      • setProduct

        public static void setProduct​(Product device)
        Passes a Product Device to the Controller so that it is able to Retain the. Provided information from the User when they added the type of product they Selected.
        Parameters:
        device - is-a Product class that extends Product and has further information about the Product to add the the Product Database.