java.lang.Object
com.prog3.ipt.Controller.ViewController
com.prog3.ipt.Controller.SearchPathViewController
- All Implemented Interfaces:
javafx.fxml.Initializable
SearchPathViewController is the controller that handles SearchPath view.
-
Field Summary
Modifier and TypeFieldDescriptionprivate javafx.scene.control.Button
private javafx.scene.control.TextField
private javafx.scene.control.Button
private javafx.scene.control.TextField
private String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(URL url, ResourceBundle resourceBundle) protected void
Initializes View Componentprotected void
onBackButtonClick
(javafx.event.ActionEvent event) Return to the previous viewprotected void
onButtonClickNavigateToView
(javafx.scene.control.Button clickedButton, String destinationView) Loads a .fxml file, creates a scene and set up a stage for a clicked button and a destination viewprivate void
onSearchPathButtonClick
(javafx.event.ActionEvent event) Builds the web url view for the starting and destination pointMethods inherited from class com.prog3.ipt.Controller.ViewController
checkDatePickersContent, checkTextFieldsContent, clearDatePickersContent, clearTextFieldsContent, generatePayPalAlert, getFxmlLoader, getLocalScene, getStage, raiseConfirmationAlert, raiseErrorAlert, raiseInformationAlert, setFxmlLoader, setLocalScene, setStage, validateEmail
-
Field Details
-
backButton
private javafx.scene.control.Button backButton -
startingPointTextField
private javafx.scene.control.TextField startingPointTextField -
destinationPointTextField
private javafx.scene.control.TextField destinationPointTextField -
searchPathButton
private javafx.scene.control.Button searchPathButton -
urlResource
-
-
Constructor Details
-
SearchPathViewController
public SearchPathViewController()
-
-
Method Details
-
onBackButtonClick
protected void onBackButtonClick(javafx.event.ActionEvent event) Return to the previous view- Specified by:
onBackButtonClick
in classViewController
- Parameters:
event
- Button clicked- See Also:
-
onSearchPathButtonClick
private void onSearchPathButtonClick(javafx.event.ActionEvent event) Builds the web url view for the starting and destination point- Parameters:
event
- Button clicked- See Also:
-
initialize
- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- See Also:
-
Initializable.initialize(URL, ResourceBundle)
-
initializeViewComponents
protected void initializeViewComponents()Description copied from class:ViewController
Initializes View Component- Specified by:
initializeViewComponents
in classViewController
- See Also:
-