Class RegisterController

java.lang.Object
com.example.cab302project.RegisterController

public class RegisterController extends Object
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 Details

    • RegisterController

      public RegisterController()
      Initializes a new RegisterController. Links the controller to the global IAppDAO instance defined in HelloApplication.
  • 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.