Enum WindowEvent.Type
- java.lang.Object
-
- java.lang.Enum<WindowEvent.Type>
-
- net.sf.jguiraffe.gui.builder.window.WindowEvent.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<WindowEvent.Type>
- Enclosing class:
- WindowEvent
public static enum WindowEvent.Type extends Enum<WindowEvent.Type>
An enumeration for the different types of window events. The type determines the action that was performed on the window when an event was fired.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description WINDOW_ACTIVATED
The window was activated.WINDOW_CLOSED
The window was closed.WINDOW_CLOSING
The window is about to be closed.WINDOW_DEACTIVATED
The window was deactivated.WINDOW_DEICONIFIED
A window that was minimized to an icon was restored.WINDOW_ICONIFIED
A window was minimized to an icon.WINDOW_OPENED
The window was opened.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WindowEvent.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static WindowEvent.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
-