Class GUIStarter

java.lang.Object
javafx.application.Application
it.polimi.ingsw.view.gui.GUIStarter

public class GUIStarter
extends javafx.application.Application
Class used by javafx to start GUI
  • 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
    GUIStarter()  
  • Method Summary

    Modifier and Type Method Description
    void start​(javafx.stage.Stage stage)
    Method called by javafx when the gui starts: instantiates: a client to receives messages from the server, a gui to receive update from the client and a scene controller to load and manages gui windows
    void stop()
    Method called by javafx when the last stage will be closed: close the server socket and the process

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet

    Methods inherited from class java.lang.Object

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

    • GUIStarter

      public GUIStarter()
  • Method Details

    • start

      public void start​(javafx.stage.Stage stage)
      Method called by javafx when the gui starts: instantiates: a client to receives messages from the server, a gui to receive update from the client and a scene controller to load and manages gui windows
      Specified by:
      start in class javafx.application.Application
    • stop

      public void stop()
      Method called by javafx when the last stage will be closed: close the server socket and the process
      Overrides:
      stop in class javafx.application.Application