javax.rad.ui.event
Class UIWindowEvent

java.lang.Object
  extended by javax.rad.ui.event.UIEvent
      extended by javax.rad.ui.event.UIWindowEvent

public class UIWindowEvent
extends UIEvent

Platform and technology independent window event definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .

See Also:
WindowEvent

Field Summary
static int WINDOW_ACTIVATED
          The window-activated event type.
static int WINDOW_CLOSED
          The window closed event.
static int WINDOW_CLOSING
          The "window is closing" event.
static int WINDOW_DEACTIVATED
          The window-deactivated event type.
static int WINDOW_DEICONIFIED
          The window deiconified event type.
static int WINDOW_FIRST
          The first number in the range of ids used for window events.
static int WINDOW_ICONIFIED
          The window iconified event.
static int WINDOW_LAST
          The last number in the range of ids used for window events.
static int WINDOW_OPENED
          The window opened event.
 
Fields inherited from class javax.rad.ui.event.UIEvent
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
 
Constructor Summary
UIWindowEvent(IComponent pSource, int pId, long pWhen, int pModifiers)
          Creates a new instance of UIWindowEvent.
 
Method Summary
protected  void checkId(int pId)
          Checks if the current Instance of UIEvent allows the given id.
 
Methods inherited from class javax.rad.ui.event.UIEvent
getId, getModifiers, getSource, getWhen, isModifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WINDOW_FIRST

public static final int WINDOW_FIRST
The first number in the range of ids used for window events.

See Also:
Constant Field Values

WINDOW_OPENED

public static final int WINDOW_OPENED
The window opened event. This event is delivered only the first time a window is made visible.

See Also:
Constant Field Values

WINDOW_CLOSING

public static final int WINDOW_CLOSING
The "window is closing" event. This event is delivered when the user attempts to close the window from the window's system menu. If the program does not explicitly hide or dispose the window while processing this event, the window close operation will be cancelled.

See Also:
Constant Field Values

WINDOW_CLOSED

public static final int WINDOW_CLOSED
The window closed event. This event is delivered after the window has been closed as the result of a call to dispose.

See Also:
Constant Field Values

WINDOW_ICONIFIED

public static final int WINDOW_ICONIFIED
The window iconified event. This event is delivered when the window has been changed from a normal to a minimized state. For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property.

See Also:
Frame.setIconImage(java.awt.Image), Constant Field Values

WINDOW_DEICONIFIED

public static final int WINDOW_DEICONIFIED
The window deiconified event type. This event is delivered when the window has been changed from a minimized to a normal state.

See Also:
Constant Field Values

WINDOW_ACTIVATED

public static final int WINDOW_ACTIVATED
The window-activated event type. This event is delivered when the Window becomes the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

See Also:
Constant Field Values

WINDOW_DEACTIVATED

public static final int WINDOW_DEACTIVATED
The window-deactivated event type. This event is delivered when the Window is no longer the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

See Also:
Constant Field Values

WINDOW_LAST

public static final int WINDOW_LAST
The last number in the range of ids used for window events.

See Also:
Constant Field Values
Constructor Detail

UIWindowEvent

public UIWindowEvent(IComponent pSource,
                     int pId,
                     long pWhen,
                     int pModifiers)
Creates a new instance of UIWindowEvent.

Parameters:
pSource - the Source of this UIWindowEvent.
pId - the Id of this UIWindowEvent.
pWhen - the time the event occurred
pModifiers - represents the modifier keys and mouse buttons down while the event occurred
Method Detail

checkId

protected void checkId(int pId)
Checks if the current Instance of UIEvent allows the given id.

Overrides:
checkId in class UIEvent
Parameters:
pId - the Id of this UIEvent.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.