public class JoinGameMenuController
extends java.lang.Object
Constructor | Description |
---|---|
JoinGameMenuController() |
Modifier and Type | Method | Description |
---|---|---|
void |
handleBackButtonAction(javafx.event.ActionEvent actionEvent) |
Called when the user selects the back button
|
void |
handleJoinButtonAction(javafx.event.ActionEvent actionEvent) |
Called when the user selects the join button
|
void |
initialize() |
Initialize the list view
|
void |
removeHost(java.lang.String username) |
Remove a host username from the currently displayed list of hosts
|
void |
setUserName(java.lang.String name) |
Set this user's username
|
void |
showInvalidHostDialog() |
Displays an error box if the selected host is not valid for some reason
|
void |
startBroadcastReceiver() |
Start the broadcast receiver to start detecting active hosts
|
void |
updateHostList(java.lang.String username) |
Update the list of host usernames being displayed with a new username
|
public void handleBackButtonAction(javafx.event.ActionEvent actionEvent)
actionEvent
- The action takenpublic void handleJoinButtonAction(javafx.event.ActionEvent actionEvent)
actionEvent
- The action takenpublic void showInvalidHostDialog()
public void setUserName(java.lang.String name)
name
- The name to usepublic void startBroadcastReceiver()
public void initialize()
public void updateHostList(java.lang.String username)
username
- The username to add to the listpublic void removeHost(java.lang.String username)
username
- The username to remove