Package swingtree

Enum Class UI.OnWindowClose

java.lang.Object
java.lang.Enum<UI.OnWindowClose>
swingtree.UI.OnWindowClose
All Implemented Interfaces:
Serializable, Comparable<UI.OnWindowClose>, Constable, UIEnum<UI.OnWindowClose>
Enclosing class:
UI

@Immutable public static enum UI.OnWindowClose extends Enum<UI.OnWindowClose> implements UIEnum<UI.OnWindowClose>
Defines a set of close operations for a JDialog or JFrame windows. The following list describes what each enum instance represents:
  • DISPOSE - The window is disposed when it is closed.
  • HIDE - The window is hidden when it is closed. It will not be disposed and can be shown again.
  • DO_NOTHING - The window does nothing when it is closed.
See UIForAnyWindow.withOnCloseOperation(OnWindowClose) for more information about the usage of this enum.
  • Enum Constant Details

  • Method Details

    • values

      public static UI.OnWindowClose[] 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 UI.OnWindowClose 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
    • forSwing

      public int forSwing()