Enum Class CloseOperation

java.lang.Object
java.lang.Enum<CloseOperation>
com.github.tadukoo.view.constants.CloseOperation
All Implemented Interfaces:
Serializable, Comparable<CloseOperation>, Constable

public enum CloseOperation extends Enum<CloseOperation>
Close Operation represents what to do on closure of a frame/window.
Version:
Alpha v.0.3.3
Author:
Logan Ferree (Tadukoo)
  • Enum Constant Details

    • DO_NOTHING_ON_CLOSE

      public static final CloseOperation DO_NOTHING_ON_CLOSE
      Do nothing when the frame/window is closed
    • HIDE_ON_CLOSE

      public static final CloseOperation HIDE_ON_CLOSE
      Hide the frame/window when closed
    • DISPOSE_ON_CLOSE

      public static final CloseOperation DISPOSE_ON_CLOSE
      Disposes of the frame/window when closed
    • EXIT_ON_CLOSE

      public static final CloseOperation EXIT_ON_CLOSE
      Exits the program when the frame/window is closed
  • Field Details

    • value

      private final int value
      The int value used to represent the close operation
  • Constructor Details

    • CloseOperation

      private CloseOperation(int value)
      Constructs a new close operation with the given value
      Parameters:
      value - The int value used to represent the close operation
  • Method Details

    • values

      public static CloseOperation[] 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 CloseOperation 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
    • getValue

      public int getValue()
      Returns:
      The int value used to represent the close operation