org.fest.swing.util
Class AWTEvents

java.lang.Object
  extended by org.fest.swing.util.AWTEvents

public final class AWTEvents
extends Object

Understands utility methods related to AWT events.

Author:
Alex Ruiz

Method Summary
static boolean windowClosed(AWTEvent e)
          Returns true if the id of the given event is equal to WINDOW_CLOSED
static boolean windowOpened(AWTEvent e)
          Returns true if the id of the given event is equal to WINDOW_OPENED
static boolean windowShown(AWTEvent e)
          Returns true if the id of the given event is equal to COMPONENT_SHOWN and the source of the event is a Window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

windowOpened

public static boolean windowOpened(AWTEvent e)
Returns true if the id of the given event is equal to WINDOW_OPENED

Parameters:
e - the given event.
Returns:
true if the id of the given event is equal to WINDOW_OPENED; false otherwise.

windowShown

public static boolean windowShown(AWTEvent e)
Returns true if the id of the given event is equal to COMPONENT_SHOWN and the source of the event is a Window.

Parameters:
e - the given event.
Returns:
true if the id of the given event is equal to COMPONENT_SHOWN and the source of the event is a window; false otherwise.

windowClosed

public static boolean windowClosed(AWTEvent e)
Returns true if the id of the given event is equal to WINDOW_CLOSED

Parameters:
e - the given event.
Returns:
true if the id of the given event is equal to WINDOW_CLOSED; false otherwise.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.