net.sf.jguiraffe.gui.builder.event
Enum WindowEvent.Type

java.lang.Object
  extended by java.lang.Enum<WindowEvent.Type>
      extended by net.sf.jguiraffe.gui.builder.event.WindowEvent.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WindowEvent.Type>
Enclosing class:
WindowEvent

public static enum WindowEvent.Type
extends java.lang.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
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
static WindowEvent.Type valueOf(java.lang.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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2010 The JGUIraffe Team. All Rights Reserved.