Class HomeController

java.lang.Object
proseccoCoding.TLN.control.HomeController

public class HomeController extends Object
Controller of the home view. It has the duty to let user access all the features of the TrusteListNavigation program.
  • Constructor Details

    • HomeController

      public HomeController()
  • Method Details

    • initialize

      private void initialize()
      Method called when HomesController is loaded. This method initialize the JSONArrays in APIHandler if this hasn't been done yet. In case of connection errors, this method displays an error dialog pane that informs the user and then proceeds to close the application.
    • switchToListCountries

      private void switchToListCountries() throws IOException
      Switches scene to the "listCountries" one
      Throws:
      IOException
    • switchToListServices

      private void switchToListServices() throws IOException
      Switches scene to the "listServices" one
      Throws:
      IOException
    • switchToSelectCountries

      private void switchToSelectCountries() throws IOException
      Switches scene to the "selectCountries" one
      Throws:
      IOException
    • switchToCredits

      private void switchToCredits() throws IOException
      Switches scene to the "credits" one
      Throws:
      IOException