amber.awt.event
Class ComponentWindowEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.AWTEvent
|
+--java.awt.event.ComponentEvent
|
+--amber.awt.event.ComponentWindowEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ComponentWindowEvent
- extends java.awt.event.ComponentEvent
This class is required to override the requirement that a WindowEvent
be generated by a Window.
This class sets the underlying source object bypassing the WindowEvent
constructor.
It is important to note that getWindow() will return null as it returns
a Window. The base getSource() correctly returns the source ComponentHandler.
- See Also:
WindowEvent,
ComponentHandler, Serialized Form
| Fields inherited from class java.awt.event.ComponentEvent |
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN |
| Fields inherited from class java.awt.AWTEvent |
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK |
| Fields inherited from class java.util.EventObject |
source |
|
Method Summary |
ComponentHandler |
getWindow()
Returns the window where this event originated. |
java.lang.String |
paramString()
Returns information on the current event. |
java.lang.String |
toString()
Describes the current window event. |
| Methods inherited from class java.awt.event.ComponentEvent |
getComponent |
| Methods inherited from class java.awt.AWTEvent |
consume, finalize, getID, isConsumed |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WINDOW_FIRST
public static final int WINDOW_FIRST
- Marks the first integer id for the range of window event ids.
WINDOW_LAST
public static final int WINDOW_LAST
- Marks the last integer id for the range of window event ids.
WINDOW_OPENED
public static final int WINDOW_OPENED
- The window opened event type. This event is delivered only
the first time a window is made visible.
WINDOW_CLOSING
public static final int WINDOW_CLOSING
- The window closing event type. This event is delivered when
the user selects "Quit" from the window's system menu. If
the program does not explicitly hide or destroy the window as
a result of this event, the window close operation will be
cancelled.
WINDOW_CLOSED
public static final int WINDOW_CLOSED
- The window closed event type. This event is delivered after
the window has been closed as the result of a call to hide or
destroy.
WINDOW_ICONIFIED
public static final int WINDOW_ICONIFIED
- The window iconified event type.
WINDOW_DEICONIFIED
public static final int WINDOW_DEICONIFIED
- The window deiconified event type.
WINDOW_ACTIVATED
public static final int WINDOW_ACTIVATED
- The window activated event type.
WINDOW_DEACTIVATED
public static final int WINDOW_DEACTIVATED
- The window deactivated event type.
ComponentWindowEvent
public ComponentWindowEvent(ComponentHandler source,
int id)
- Constructor for the window event.
This is the event for Amber component window events.
- Parameters:
source - ComponentHandler which generated this event.id - The type of WindowEvent generated.
getWindow
public ComponentHandler getWindow()
- Returns the window where this event originated.
- Returns:
- ComponentHandler which fired the event.
paramString
public java.lang.String paramString()
- Returns information on the current event.
- Overrides:
paramString in class java.awt.event.ComponentEvent
- Returns:
- String containing required information.
toString
public java.lang.String toString()
- Describes the current window event.
- Overrides:
toString in class java.awt.AWTEvent
- Returns:
- String containing required information.
Copyright © 2002 Clearfield Research Ltd. All Rights Reserved.