Enum Class PopupName

java.lang.Object
java.lang.Enum<PopupName>
it.polimi.ingsw.eriantys.client.gui.PopupName
All Implemented Interfaces:
Serializable, Comparable<PopupName>, Constable

public enum PopupName extends Enum<PopupName>
An enumeration to map *.fxml files to a name. The sources contain all the information and settings to render a popup scene.
  • Enum Constant Details

    • TOWERS

      public static final PopupName TOWERS
    • WIZARDS

      public static final PopupName WIZARDS
    • ASSISTANT_CARDS

      public static final PopupName ASSISTANT_CARDS
  • Method Details

    • values

      public static PopupName[] 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 PopupName 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
    • getPath

      public String getPath()
      A getter for the relative path of the literal. The method can be used to load a target popup scene into the GUI application.
      Returns:
      the relative path to the *.fxml file