java.lang.Object
View.bookscrabbleapp.WelcomePageController
- All Implemented Interfaces:
Observer,javafx.fxml.Initializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbutton handler that presents the Input fields for creating a lobbyvoidinitBtnHandler(javafx.event.ActionEvent actionEvent) this function validates the user's input and if no problems with the input were detected,asks permission from the hostServer to connect ,and redirects the user to the lobby pagevoidinitialize(URL url, ResourceBundle resourceBundle) sets background image to the front page of the app sets this class as an observer of the ViewModelvoidbutton handler that presents the Input fields for joining an existing lobbyvoidupdate(Observable o, Object arg)
-
Constructor Details
-
WelcomePageController
public WelcomePageController()
-
-
Method Details
-
joinBtnHandler
public void joinBtnHandler()button handler that presents the Input fields for joining an existing lobby -
createBtnHandler
public void createBtnHandler()button handler that presents the Input fields for creating a lobby -
initBtnHandler
public void initBtnHandler(javafx.event.ActionEvent actionEvent) this function validates the user's input and if no problems with the input were detected,asks permission from the hostServer to connect ,and redirects the user to the lobby page- Parameters:
actionEvent- - the event that we caught
-
initialize
sets background image to the front page of the app sets this class as an observer of the ViewModel- Specified by:
initializein interfacejavafx.fxml.Initializable
-
update
-