API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.event. WindowEvent View Source
Author(s)
Carl Quinn
Amy Fowler
Since
JDK1.1
Version
1.37, 04/18/06
Serial
Hierarchy
 Object
      EventObject
          AWTEvent
              ComponentEvent
                  WindowEvent
Implements
Subclasses
Description
public class WindowEvent
  A low-level event that indicates that a window has changed its status.
Constructors
public WindowEvent (Window source, int id)
  Constructs a WindowEvent object.
public WindowEvent (Window source, int id, int oldState, int newState)
  Constructs a WindowEvent object with the specified previous and new window states.
public WindowEvent (Window source, int id, Window opposite)
  Constructs a WindowEvent object with the specified opposite Window.
public WindowEvent (Window source, int id, Window opposite, int oldState, int newState)
  Constructs a WindowEvent object.
Methods
Hide/Show inherited methods
protected void consume () [Inherited From AWTEvent]
  Consumes this event, if this event can be consumed.
public Component getComponent () [Inherited From ComponentEvent]
  Returns the originator of the event.
public int getID () [Inherited From AWTEvent]
Returns the event type.
public int getNewState ()
  For WINDOW_STATE_CHANGED events returns the new state of the window.
public int getOldState ()
  For WINDOW_STATE_CHANGED events returns the previous state of the window.
public Window getOppositeWindow ()
  Returns the other Window involved in this focus or activation change.
public Object getSource () [Inherited From EventObject]
  The object on which the Event initially occurred.
public Window getWindow ()
  Returns the originator of the event.
protected boolean isConsumed () [Inherited From AWTEvent]
Returns whether this event has been consumed.
public String paramString () [Overrides ComponentEvent]
  Returns a parameter string identifying this event.
public void setSource (Object newSource) [Inherited From AWTEvent]
  Retargets an event to a new source.
public String toString () [Inherited From AWTEvent]
Returns a String representation of this object.
Fields
Hide/Show inherited fields
publicfinalstatic long ACTION_EVENT_MASK = "128" [Inherited From AWTEvent]
The event mask for selecting action events.
publicfinalstatic long ADJUSTMENT_EVENT_MASK = "256" [Inherited From AWTEvent]
The event mask for selecting adjustment events.
publicfinalstatic long COMPONENT_EVENT_MASK = "1" [Inherited From AWTEvent]
The event mask for selecting component events.
publicfinalstatic int COMPONENT_FIRST = "100" [Inherited From ComponentEvent]
The first number in the range of ids used for component events.
publicfinalstatic int COMPONENT_HIDDEN = "103" [Inherited From ComponentEvent]
This event indicates that the component was rendered invisible.
publicfinalstatic int COMPONENT_LAST = "103" [Inherited From ComponentEvent]
The last number in the range of ids used for component events.
publicfinalstatic int COMPONENT_MOVED = "100" [Inherited From ComponentEvent]
This event indicates that the component's position changed.
publicfinalstatic int COMPONENT_RESIZED = "101" [Inherited From ComponentEvent]
This event indicates that the component's size changed.
publicfinalstatic int COMPONENT_SHOWN = "102" [Inherited From ComponentEvent]
This event indicates that the component was made visible.
protected boolean consumed [Inherited From AWTEvent]
  Controls whether or not the event is sent back down to the peer once the source has processed it - false means it's sent to the peer; true means it's not.
publicfinalstatic long CONTAINER_EVENT_MASK = "2" [Inherited From AWTEvent]
The event mask for selecting container events.
publicfinalstatic long FOCUS_EVENT_MASK = "4" [Inherited From AWTEvent]
The event mask for selecting focus events.
publicfinalstatic long HIERARCHY_BOUNDS_EVENT_MASK = "65536" [Inherited From AWTEvent]
The event mask for selecting hierarchy bounds events.
publicfinalstatic long HIERARCHY_EVENT_MASK = "32768" [Inherited From AWTEvent]
The event mask for selecting hierarchy events.
protected int id [Inherited From AWTEvent]
  The event's id.
publicfinalstatic long INPUT_METHOD_EVENT_MASK = "2048" [Inherited From AWTEvent]
The event mask for selecting input method events.
publicfinalstatic long INVOCATION_EVENT_MASK = "16384" [Inherited From AWTEvent]
The event mask for selecting invocation events.
publicfinalstatic long ITEM_EVENT_MASK = "512" [Inherited From AWTEvent]
The event mask for selecting item events.
publicfinalstatic long KEY_EVENT_MASK = "8" [Inherited From AWTEvent]
The event mask for selecting key events.
publicfinalstatic long MOUSE_EVENT_MASK = "16" [Inherited From AWTEvent]
The event mask for selecting mouse events.
publicfinalstatic long MOUSE_MOTION_EVENT_MASK = "32" [Inherited From AWTEvent]
The event mask for selecting mouse motion events.
publicfinalstatic long MOUSE_WHEEL_EVENT_MASK = "131072" [Inherited From AWTEvent]
  The event mask for selecting mouse wheel events.
pack-private int newState
pack-private int oldState
TBS
pack-privatetransient Window opposite
  The other Window involved in this focus or activation change.
publicfinalstatic long PAINT_EVENT_MASK = "8192" [Inherited From AWTEvent]
The event mask for selecting paint events.
publicfinalstatic int RESERVED_ID_MAX = "1999" [Inherited From AWTEvent]
  The maximum value for reserved AWT event IDs.
protectedtransient Object source [Inherited From EventObject]
The object on which the Event initially occurred.
publicfinalstatic long TEXT_EVENT_MASK = "1024" [Inherited From AWTEvent]
The event mask for selecting text events.
publicfinalstatic int WINDOW_ACTIVATED = "205"
  The window-activated event type.
publicfinalstatic int WINDOW_CLOSED = "202"
  The window closed event.
publicfinalstatic int WINDOW_CLOSING = "201"
  The "window is closing" event.
publicfinalstatic int WINDOW_DEACTIVATED = "206"
  The window-deactivated event type.
publicfinalstatic int WINDOW_DEICONIFIED = "204"
  The window deiconified event type.
publicfinalstatic long WINDOW_EVENT_MASK = "64" [Inherited From AWTEvent]
The event mask for selecting window events.
publicfinalstatic int WINDOW_FIRST = "200"
The first number in the range of ids used for window events.
publicfinalstatic long WINDOW_FOCUS_EVENT_MASK = "524288" [Inherited From AWTEvent]
  The event mask for selecting window focus events.
publicfinalstatic int WINDOW_GAINED_FOCUS = "207"
  The window-gained-focus event type.
publicfinalstatic int WINDOW_ICONIFIED = "203"
  The window iconified event.
publicfinalstatic int WINDOW_LAST = "209"
The last number in the range of ids used for window events.
publicfinalstatic int WINDOW_LOST_FOCUS = "208"
  The window-lost-focus event type.
publicfinalstatic int WINDOW_OPENED = "200"
  The window opened event.
publicfinalstatic int WINDOW_STATE_CHANGED = "209"
  The window-state-changed event type.
publicfinalstatic long WINDOW_STATE_EVENT_MASK = "262144" [Inherited From AWTEvent]
  The event mask for selecting window state events.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar