Enum Class ViewLoader.View

java.lang.Object
java.lang.Enum<ViewLoader.View>
it.unisa.diem.wordageddon_g16.utility.ViewLoader.View
All Implemented Interfaces:
Serializable, Comparable<ViewLoader.View>, Constable
Enclosing class:
ViewLoader

public static enum ViewLoader.View extends Enum<ViewLoader.View>
Enumerazione delle viste disponibili nell'applicazione.

Ogni valore corrisponde al nome del file FXML da caricare. Utilizzato dal metodo ViewLoader.load(ViewLoader.View).

  • Enum Constant Details

  • Field Details

    • viewName

      private final String viewName
  • Constructor Details

    • View

      private View(String viewName)
      Costruttore della Enum ViewLoader.
      Parameters:
      viewName - nome del file FXML da caricare
  • Method Details

    • values

      public static ViewLoader.View[] 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 ViewLoader.View 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
    • get

      public String get()