javax.rad.ui.event
Class UIComponentEvent

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

public class UIComponentEvent
extends UIEvent

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

See Also:
ComponentEvent

Field Summary
static int COMPONENT_FIRST
          The first number in the range of ids used for component events.
static int COMPONENT_LAST
          The last number in the range of ids used for component events.
static int COMPONENT_MOVED
          This event indicates that the component's position changed.
static int COMPONENT_RESIZED
          This event indicates that the component's size changed.
 
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
UIComponentEvent(IComponent pSource, int pId, long pWhen, int pModifiers)
          Creates a new instance of UIComponentEvent.
 
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

COMPONENT_FIRST

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

See Also:
Constant Field Values

COMPONENT_MOVED

public static final int COMPONENT_MOVED
This event indicates that the component's position changed.

See Also:
Constant Field Values

COMPONENT_RESIZED

public static final int COMPONENT_RESIZED
This event indicates that the component's size changed.

See Also:
Constant Field Values

COMPONENT_LAST

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

See Also:
Constant Field Values
Constructor Detail

UIComponentEvent

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

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