java.lang.Object
com.example.cab302project.RegisterController
Controller class for the User Registration screen (register-view.fxml).
Handles the creation of new user accounts, input validation (email and phone),
and navigation back to the login screen. Includes address autocomplete for
the home location field, which is forward-geocoded to coordinates on submit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWires up address autocomplete after FXML has loaded.voidHandles the registration logic when the user submits the form.voidNavigates the application back to the login screen.voidAction handler for the Login tab button.voidAction handler for the Sign Up tab button.
-
Constructor Details
-
RegisterController
public RegisterController()Initializes a new RegisterController. Links the controller to the globalIAppDAOinstance defined inHelloApplication.
-
-
Method Details
-
initialize
public void initialize()Wires up address autocomplete after FXML has loaded. -
onRegisterAccount
public void onRegisterAccount()Handles the registration logic when the user submits the form. The home location field accepts a plain-text address which is forward-geocoded to coordinates. If left blank, Brisbane CBD is used as default. -
onReturnToLogin
public void onReturnToLogin()Navigates the application back to the login screen. -
onTabLogin
public void onTabLogin()Action handler for the Login tab button. -
onTabSignup
public void onTabSignup()Action handler for the Sign Up tab button.
-