Enum Class Page

All Implemented Interfaces:
Serializable, Comparable<Page>, Constable

public enum Page extends Enum<Page>
Represents the different pages available in the application, where each page is associated with a specific FXML file used for its layout.
  • Enum Constant Details

    • HOME

      public static final Page HOME
    • PROFILE

      public static final Page PROFILE
    • SIGN_IN

      public static final Page SIGN_IN
    • REGISTER

      public static final Page REGISTER
    • ORGANIZATIONS

      public static final Page ORGANIZATIONS
    • MY_PROFILE

      public static final Page MY_PROFILE
    • DONATION_NOT_LOGGED_IN

      public static final Page DONATION_NOT_LOGGED_IN
    • DONATION_AMOUNT

      public static final Page DONATION_AMOUNT
    • DONATION_PAYMENT

      public static final Page DONATION_PAYMENT
    • DONATION_CONFIRMATION

      public static final Page DONATION_CONFIRMATION
  • Method Details

    • values

      public static Page[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Page valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFileName

      public String getFileName()
      Returns the FXML filename associated with this page.
      Returns:
      the FXML filename