Enum Class ClosePolicy

java.lang.Object
java.lang.Enum<ClosePolicy>
org.yuemi.libs.api.gui.ClosePolicy
All Implemented Interfaces:
Serializable, Comparable<ClosePolicy>, Constable

public enum ClosePolicy extends Enum<ClosePolicy>
Defines the behavior when a user interface GUI is closed.
  • Enum Constant Details

    • CLOSE

      public static final ClosePolicy CLOSE
      Closes the GUI normally, invoking any registered close/cancel callbacks.
    • REOPEN

      public static final ClosePolicy REOPEN
      Prevents closing by automatically reopening the GUI.
    • NOTHING

      public static final ClosePolicy NOTHING
      Closes the GUI, but does not invoke any close/cancel callbacks.
  • Method Details

    • values

      public static ClosePolicy[] 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 ClosePolicy 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