Enum WindowEvent.Type

    • Enum Constant Detail

      • WINDOW_ACTIVATED

        public static final WindowEvent.Type WINDOW_ACTIVATED
        The window was activated.
      • WINDOW_CLOSING

        public static final WindowEvent.Type WINDOW_CLOSING
        The window is about to be closed.
      • WINDOW_CLOSED

        public static final WindowEvent.Type WINDOW_CLOSED
        The window was closed.
      • WINDOW_DEACTIVATED

        public static final WindowEvent.Type WINDOW_DEACTIVATED
        The window was deactivated.
      • WINDOW_DEICONIFIED

        public static final WindowEvent.Type WINDOW_DEICONIFIED
        A window that was minimized to an icon was restored.
      • WINDOW_ICONIFIED

        public static final WindowEvent.Type WINDOW_ICONIFIED
        A window was minimized to an icon.
      • WINDOW_OPENED

        public static final WindowEvent.Type WINDOW_OPENED
        The window was opened. This is the first event that can be fired by a window.
    • Method Detail

      • values

        public static WindowEvent.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WindowEvent.Type c : WindowEvent.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WindowEvent.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null