Package proseccoCoding.TLN.control
Class ListCountriesController
java.lang.Object
proseccoCoding.TLN.control.ListCountriesController
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 Summary
FieldsModifier and TypeFieldDescriptionprivate javafx.scene.control.ListView<String>
ListView object used to contain the list of the countries' names -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Method called when ListCountriesController is loaded.private void
Switches scene to the "home" one
-
Field Details
-
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
Switches scene to the "home" one- Throws:
IOException
-