org.jwarp.flow.form.event
Class ComponentEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--org.jwarp.flow.form.event.ComponentEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ContainerEvent

public class ComponentEvent
extends java.awt.AWTEvent

This is the form library's component event. It's basically the same as the one defined within AWT excluded that id takes IComponent objects inspite of Component objects in AWT. Even the base class is the same.

Author:
Anatole Tresch
See Also:
ComponentEvent, Serialized Form

Field Summary
static int COMPONENT_FIRST
          The first number in the range of ids used for component events.
static int COMPONENT_HIDDEN
          This event indicates that the component was rendered invisible.
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.
static int COMPONENT_SHOWN
          This event indicates that the component was made visible.
 
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, INPUT_METHODS_ENABLED_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
 
Constructor Summary
ComponentEvent(IComponent source, int id)
          Constructs a ComponentEvent object.
 
Method Summary
 IComponent getComponent()
          Returns the originator of the event.
 java.lang.String paramString()
          Returns a parameter string identifying this event.
 
Methods inherited from class java.awt.AWTEvent
, consume, convertToOld, copyPrivateDataInto, finalize, getID, isConsumed, movePrivateDataInto, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, 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.

COMPONENT_LAST

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

COMPONENT_MOVED

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

COMPONENT_RESIZED

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

COMPONENT_SHOWN

public static final int COMPONENT_SHOWN
This event indicates that the component was made visible.

COMPONENT_HIDDEN

public static final int COMPONENT_HIDDEN
This event indicates that the component was rendered invisible.
Constructor Detail

ComponentEvent

public ComponentEvent(IComponent source,
                      int id)
Constructs a ComponentEvent object.
Parameters:
source - the Component object that originated the event
id - an integer indicating the type of event
Method Detail

getComponent

public IComponent getComponent()
Returns the originator of the event.
Returns:
the Component object that originated the event

paramString

public java.lang.String paramString()
Returns a parameter string identifying this event. This method is useful for event-logging and for debugging.
Overrides:
paramString in class java.awt.AWTEvent
Returns:
a string identifying the event and its attributes

©   O R C A   S y s t e m s