public class WindowEvent extends Event
| Modifier and Type | Field and Description |
|---|---|
static EventType<WindowEvent> |
ANY
Common supertype for all window event types.
|
static EventType<WindowEvent> |
WINDOW_CLOSE_REQUEST
This event is delivered to a
window when there is an external request to close that window.
|
static EventType<WindowEvent> |
WINDOW_HIDDEN
This event occurs on window just after it is hidden.
|
static EventType<WindowEvent> |
WINDOW_HIDING
This event occurs on window just before it is hidden.
|
static EventType<WindowEvent> |
WINDOW_SHOWING
This event occurs on window just before it is shown.
|
static EventType<WindowEvent> |
WINDOW_SHOWN
This event occurs on window just after it is shown.
|
consumed, eventType, NULL_SOURCE_TARGET, target| Constructor and Description |
|---|
WindowEvent(Window source,
EventType<? extends Event> eventType)
Construct a new
Event with the specified event source, target
and type. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Returns a string representation of this
WindowEvent object. |
clone, consume, copyFor, fireEvent, getEventType, getTarget, isConsumedpublic static final EventType<WindowEvent> ANY
public static final EventType<WindowEvent> WINDOW_SHOWING
public static final EventType<WindowEvent> WINDOW_SHOWN
public static final EventType<WindowEvent> WINDOW_HIDING
public static final EventType<WindowEvent> WINDOW_HIDDEN
public static final EventType<WindowEvent> WINDOW_CLOSE_REQUEST
public WindowEvent(Window source, EventType<? extends Event> eventType)
Event with the specified event source, target
and type. If the source or target is set to null, it is replaced
by the NULL_SOURCE_TARGET value.source - the event source which sent the eventeventType - the event typeCopyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.