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
FieldsModifier and TypeFieldDescriptionprivate javafx.scene.control.Buttonprivate javafx.scene.control.TextFieldprivate javafx.scene.control.Buttonprivate javafx.scene.control.TextFieldprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(URL url, ResourceBundle resourceBundle) protected voidInitializes View Componentprotected voidonBackButtonClick(javafx.event.ActionEvent event) Return to the previous viewprotected voidonButtonClickNavigateToView(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 voidonSearchPathButtonClick(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:
onBackButtonClickin 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:
initializein interfacejavafx.fxml.Initializable- See Also:
-
Initializable.initialize(URL, ResourceBundle)
-
initializeViewComponents
protected void initializeViewComponents()Description copied from class:ViewControllerInitializes View Component- Specified by:
initializeViewComponentsin classViewController- See Also:
-