Package serverui

Class Controller

java.lang.Object
serverui.Controller
All Implemented Interfaces:
javafx.fxml.Initializable

public class Controller extends Object implements javafx.fxml.Initializable
Additional Graphical interface for server management.
  • Field Details

    • server

      private static ServerApp server
    • textLable

      javafx.scene.control.Label textLable
      Text label, shows the mode of operation of the server.
    • buttonClose

      javafx.scene.control.Button buttonClose
      Server shutdown button.
  • Constructor Details

    • Controller

      public Controller()
  • Method Details

    • closeConnection

      public void closeConnection()
      Stops the server and closes the network connection.
    • initialize

      public void initialize(URL location, ResourceBundle resources)
      Starts the server in a parallel thread.
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      location - an unused parameter.
      resources - an unused parameter.