java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.EditPlayerController

public class EditPlayerController extends Object
Controller for the edit player page
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    backButtonClick(javafx.event.Event event)
    Goes to the last page view when the user clicks on the back button
    void
    backButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to use the back button
    void
    deletePlayer(javafx.event.ActionEvent actionEvent)
    Deletes selected player when the user clicks on the delete player button
    void
    discardChanges(javafx.event.ActionEvent actionEvent)
    Goes to the team management page view when the user clicks on the discard changes button
    void
    exitButtonClick(javafx.event.Event event)
    Goes to the main page view when the user clicks on the home button
    void
    homeButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to go to the home page
    void
    Deprecated.
    void
    playerSelected(javafx.event.ActionEvent actionEvent)
    Enables input when a player is selected
    void
    reportButtonClick(javafx.event.Event event)
    Goes to the report page view when the user clicks on the report button
    void
    reportButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to go to the report page
    void
    saveChanges(javafx.event.ActionEvent actionEvent)
    Saves changes when the user clicks on the save button
    void
    settingsButtonClick(javafx.event.Event event)
    Goes to the settings view when user clicks on the settings button
    void
    settingsButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to go to the settings page
    void
    teamSelected(javafx.event.ActionEvent actionEvent)
    Enables to select a player when a team is selected

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EditPlayerController

      public EditPlayerController()
  • Method Details

    • initialize

      @Deprecated public void initialize()
      Deprecated.
      Initializes the view on load.
    • settingsButtonClick

      public void settingsButtonClick(javafx.event.Event event) throws IOException
      Goes to the settings view when user clicks on the settings button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • reportButtonClick

      public void reportButtonClick(javafx.event.Event event) throws IOException
      Goes to the report page view when the user clicks on the report button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • exitButtonClick

      public void exitButtonClick(javafx.event.Event event) throws IOException
      Goes to the main page view when the user clicks on the home button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • backButtonClick

      public void backButtonClick(javafx.event.Event event) throws IOException
      Goes to the last page view when the user clicks on the back button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • discardChanges

      public void discardChanges(javafx.event.ActionEvent actionEvent) throws IOException
      Goes to the team management page view when the user clicks on the discard changes button
      Parameters:
      actionEvent - Click event
      Throws:
      IOException - if an error occurs
    • saveChanges

      public void saveChanges(javafx.event.ActionEvent actionEvent) throws IOException
      Saves changes when the user clicks on the save button
      Parameters:
      actionEvent - Click event
      Throws:
      IOException - if an error occurs
    • playerSelected

      public void playerSelected(javafx.event.ActionEvent actionEvent)
      Enables input when a player is selected
      Parameters:
      actionEvent - event
    • deletePlayer

      public void deletePlayer(javafx.event.ActionEvent actionEvent) throws IOException
      Deletes selected player when the user clicks on the delete player button
      Parameters:
      actionEvent - Click event
      Throws:
      IOException - if an error occurs
    • teamSelected

      public void teamSelected(javafx.event.ActionEvent actionEvent)
      Enables to select a player when a team is selected
      Parameters:
      actionEvent - event
    • settingsButtonEnter

      public void settingsButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to go to the settings page
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs
    • reportButtonEnter

      public void reportButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to go to the report page
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs
    • backButtonEnter

      public void backButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to use the back button
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs
    • homeButtonEnter

      public void homeButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to go to the home page
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs