Class UIWindowEvent
public class UIWindowEvent extends UIEvent
{
// Fields
public static final int WINDOW_ACTIVATED;
public static final int WINDOW_CLOSED;
public static final int WINDOW_CLOSING;
public static final int WINDOW_DEACTIVATED;
public static final int WINDOW_DEICONIFIED;
public static final int WINDOW_ICONIFIED;
public static final int WINDOW_OPENED;
// Constructors
public UIWindowEvent(UIWindow source, int id);
// Methods
public UIWindow getWindow();
public String paramString();
}
This class represents a window event and is generated for notification purposes when events changes occur to a top level window.
Also see com.ms.ui.IUIWindowListener
EventObject
|
+--UIBaseEvent
|
+--UIEvent
|
+--UIWindowEvent
public UIWindowEvent(UIWindow source, int id);
Creates a UIWindowEvent object with the specified source window and type.
Parameter | Description |
source
| The component where the event originated.
|
id
| The event type, which can be one of the following:
|
public UIWindow getWindow();
Retrieves the window where this event originated.
Return Value:
Returns the UIWindow object.
public String paramString();
Retrieves the event type of the UIWindowEvent object as a String.
Return Value:
Returns one of the following strings based on the event type (in parentheses):
If the event is not one of these types, returns "unknown type".
- WINDOW_ACTIVATED
- The window activated event type.
- 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_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_DEACTIVATED
- The window deactivated event type.
- WINDOW_DEICONIFIED
- The window de-iconified event type.
- WINDOW_ICONIFIED
- The window iconified event type.
- WINDOW_OPENED
- The window-opened event type. This event is delivered only the first time a window is made visible.