Class ListCountriesController

java.lang.Object
proseccoCoding.TLN.control.ListCountriesController

public class ListCountriesController extends Object
Controller of the listCountries view. It has the duty to show the list of the EU countries to the user and to let him go back to the homepage.
  • Field Details

    • countriesList

      private javafx.scene.control.ListView<String> countriesList
      ListView object used to contain the list of the countries' names
  • Constructor Details

    • ListCountriesController

      public ListCountriesController()
  • Method Details

    • initialize

      private void initialize()
      Method called when ListCountriesController is loaded. It adds the list of the countries' names to the private ListView object. The countries names are retrieved as Strings through the use of an APIHandler method.
    • switchToHome

      private void switchToHome() throws IOException
      Switches scene to the "home" one
      Throws:
      IOException