swingwt.awt.event
Class ComponentEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byswingwt.awt.AWTEvent
          extended byswingwt.awt.event.ComponentEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ContainerEvent, FocusEvent, InputEvent, PaintEvent

public class ComponentEvent
extends AWTEvent

An event that indicates a component movement/resizing/visibility etc.

See Also:
Serialized Form

Field Summary
static int COMPONENT_FIRST
           
static int COMPONENT_HIDDEN
           
static int COMPONENT_LAST
           
static int COMPONENT_MOVED
           
static int COMPONENT_RESIZED
           
static int COMPONENT_SHOWN
           
 
Fields inherited from class swingwt.awt.AWTEvent
consumed, eventID
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ComponentEvent(Component source)
           
ComponentEvent(Component source, int id)
           
 
Method Summary
 Component getComponent()
           
 
Methods inherited from class swingwt.awt.AWTEvent
consume, getID, isConsumed, setSource
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPONENT_FIRST

public static final int COMPONENT_FIRST
See Also:
Constant Field Values

COMPONENT_LAST

public static final int COMPONENT_LAST
See Also:
Constant Field Values

COMPONENT_MOVED

public static final int COMPONENT_MOVED
See Also:
Constant Field Values

COMPONENT_RESIZED

public static final int COMPONENT_RESIZED
See Also:
Constant Field Values

COMPONENT_SHOWN

public static final int COMPONENT_SHOWN
See Also:
Constant Field Values

COMPONENT_HIDDEN

public static final int COMPONENT_HIDDEN
See Also:
Constant Field Values
Constructor Detail

ComponentEvent

public ComponentEvent(Component source)

ComponentEvent

public ComponentEvent(Component source,
                      int id)
Parameters:
id - an integer indicating the type of event
Method Detail

getComponent

public Component getComponent()
Returns:
the Component that originated the event