Java java.awt.event WindowEvent fields, constructors, methods, implement or subclass

Example usage for Java java.awt.event WindowEvent fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.event WindowEvent.

The text is from its open source code.

Field

intWINDOW_FIRST
The first number in the range of ids used for window events.
intWINDOW_OPENED
The window opened event.
intWINDOW_CLOSING
The "window is closing" event.
intWINDOW_CLOSED
The window closed event.
intWINDOW_ICONIFIED
The window iconified event.
intWINDOW_DEICONIFIED
The window deiconified event type.
intWINDOW_ACTIVATED
The window-activated event type.
intWINDOW_DEACTIVATED
The window-deactivated event type.
intWINDOW_GAINED_FOCUS
The window-gained-focus event type.
intWINDOW_LOST_FOCUS
The window-lost-focus event type.
intWINDOW_STATE_CHANGED
The window-state-changed event type.
intWINDOW_LAST
The last number in the range of ids used for window events.

Constructor

WindowEvent(Window source, int id)
Constructs a WindowEvent object.
WindowEvent(Window source, int id, Window opposite)
Constructs a WindowEvent object with the specified opposite Window .
WindowEvent(Window source, int id, int oldState, int newState)
Constructs a WindowEvent object with the specified previous and new window states.
WindowEvent(Window source, int id, Window opposite, int oldState, int newState)
Constructs a WindowEvent object.

Method

voidconsume()
Consumes this event, if this event can be consumed.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ComponentgetComponent()
Returns the originator of the event.
intgetID()
Returns the event type.
intgetNewState()
For WINDOW_STATE_CHANGED events returns the new state of the window.
intgetOldState()
For WINDOW_STATE_CHANGED events returns the previous state of the window.
WindowgetOppositeWindow()
Returns the other Window involved in this focus or activation change.
ObjectgetSource()
The object on which the Event initially occurred.
WindowgetWindow()
Returns the originator of the event.
booleanisConsumed()
Returns whether this event has been consumed.
StringparamString()
Returns a parameter string identifying this event.