public final class AWTEvents extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
wasWindowClosed(AWTEvent e)
Indicates whether the id of the given event is equal to
WindowEvent.WINDOW_CLOSED. |
static boolean |
wasWindowOpened(AWTEvent e)
Indicates whether the id of the given event is equal to
WindowEvent.WINDOW_OPENED. |
static boolean |
wasWindowShown(AWTEvent e)
Indicates whether the id of the given event is equal to
WindowEvent.COMPONENT_SHOWN and the source of the
event is a Window. |
public static boolean wasWindowOpened(@Nonnull AWTEvent e)
WindowEvent.WINDOW_OPENED.e - the given event.true if the id of the given event is equal to WINDOW_OPENED; false otherwise.public static boolean wasWindowShown(@Nonnull AWTEvent e)
WindowEvent.COMPONENT_SHOWN and the source of the
event is a Window.e - the given event.true if the id of the given event is equal to COMPONENT_SHOWN and the source of the event
is a Window; false otherwise.Copyright © 2014 AssertJ. All rights reserved.