javax.rad.ui.event
Class UIFocusEvent

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

public class UIFocusEvent
extends UIEvent

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

See Also:
FocusEvent

Field Summary
static int FOCUS_FIRST
          The first number in the range of ids used for focus events.
static int FOCUS_GAINED
          This event indicates that the Component is now the focus owner.
static int FOCUS_LAST
          The last number in the range of ids used for focus events.
static int FOCUS_LOST
          This event indicates that the Component is no longer the focus owner.
 
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
UIFocusEvent(IComponent pSource, int pId, long pWhen, int pModifiers)
          Creates a new instance of UIFocusEvent.
 
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

FOCUS_FIRST

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

See Also:
Constant Field Values

FOCUS_GAINED

public static final int FOCUS_GAINED
This event indicates that the Component is now the focus owner.

See Also:
Constant Field Values

FOCUS_LOST

public static final int FOCUS_LOST
This event indicates that the Component is no longer the focus owner.

See Also:
Constant Field Values

FOCUS_LAST

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

See Also:
Constant Field Values
Constructor Detail

UIFocusEvent

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

Parameters:
pSource - the Source of this UIFocusEvent.
pId - the Id of this UIFocusEvent.
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.