java.awt.event
public class WindowEvent extends ComponentEvent
Since: 1.1
See Also: WindowAdapter WindowListener WindowFocusListener WindowStateListener
UNKNOWN: updated to 1.4
Field Summary | |
---|---|
static int | WINDOW_ACTIVATED This is the id for a window that is activated. |
static int | WINDOW_CLOSED This is the id for a window that finished closing. |
static int | WINDOW_CLOSING This is the id for a window that is about to close. |
static int | WINDOW_DEACTIVATED This is the id for a window that is de-activated. |
static int | WINDOW_DEICONIFIED This is the id for a window that is de-iconified. |
static int | WINDOW_FIRST This is the first id in the range of event ids used by this class. |
static int | WINDOW_GAINED_FOCUS
This is the id for a window becoming the focused window.
|
static int | WINDOW_ICONIFIED This is the id for a window that is iconified. |
static int | WINDOW_LAST This is the last id in the range of event ids used by this class. |
static int | WINDOW_LOST_FOCUS
This is the id for a window losing all focus.
|
static int | WINDOW_OPENED This is the id for a window that is opened. |
static int | WINDOW_STATE_CHANGED
This is the id for a window state change, such as maximization.
|
Constructor Summary | |
---|---|
WindowEvent(Window source, int id, Window opposite, int oldState, int newState)
Initializes a new instance of WindowEvent with the specified
parameters. | |
WindowEvent(Window source, int id, Window opposite)
Initializes a new instance of WindowEvent with the specified
parameters. | |
WindowEvent(Window source, int id, int oldState, int newState)
Initializes a new instance of WindowEvent with the specified
parameters. | |
WindowEvent(Window source, int id)
Initializes a new instance of WindowEvent with the specified
parameters. |
Method Summary | |
---|---|
int | getNewState()
Returns the state of this window after the event. |
int | getOldState()
Returns the state of this window before the event. |
Window | getOppositeWindow()
Returns the opposite window if this window was involved in an activation
or focus change. |
Window | getWindow()
Returns the event source as a Window . |
String | paramString()
Returns a string that identifies this event. |
Since: 1.4
Since: 1.4
Since: 1.4
WindowEvent
with the specified
parameters. Note that an invalid id leads to unspecified results.
Parameters: source the window that generated this event id the event id opposite the window that received the opposite event, or null oldState the previous state of this window newState the new state of this window
Throws: IllegalArgumentException if source is null
Since: 1.4
WindowEvent
with the specified
parameters. Note that an invalid id leads to unspecified results.
Parameters: source the window that generated this event id the event id opposite the window that received the opposite event, or null
Throws: IllegalArgumentException if source is null
Since: 1.4
WindowEvent
with the specified
parameters. Note that an invalid id leads to unspecified results.
Parameters: source the window that generated this event id the event id oldState the previous state of this window newState the new state of this window
Throws: IllegalArgumentException if source is null
Since: 1.4
WindowEvent
with the specified
parameters. Note that an invalid id leads to unspecified results.
Parameters: source the window that generated this event id the event id
Throws: IllegalArgumentException if source is null
Returns: the updated state
Since: 1.4
See Also: getExtendedState
Returns: the former state
Since: 1.4
See Also: getExtendedState
Returns: the opposite window, or null
Since: 1.4
Window
. If the source has
subsequently been modified to a non-Window, this returns null.
Returns: the event source as a Window
Returns: a string that identifies this event