swingwt.awt.event
Class ContainerEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byswingwt.awt.AWTEvent
          extended byswingwt.awt.event.ComponentEvent
              extended byswingwt.awt.event.ContainerEvent
All Implemented Interfaces:
java.io.Serializable

public class ContainerEvent
extends ComponentEvent

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

See Also:
Serialized Form

Field Summary
static int COMPONENT_ADDED
           
static int COMPONENT_REMOVED
           
static int CONTAINER_FIRST
           
static int CONTAINER_LAST
           
 
Fields inherited from class swingwt.awt.event.ComponentEvent
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN
 
Fields inherited from class swingwt.awt.AWTEvent
consumed, eventID
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ContainerEvent(Component source, int id, Component child)
           
 
Method Summary
 Component getChild()
           
 Container getContainer()
          Returns the originator of the event.
 
Methods inherited from class swingwt.awt.event.ComponentEvent
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

CONTAINER_FIRST

public static final int CONTAINER_FIRST
See Also:
Constant Field Values

CONTAINER_LAST

public static final int CONTAINER_LAST
See Also:
Constant Field Values

COMPONENT_ADDED

public static final int COMPONENT_ADDED
See Also:
Constant Field Values

COMPONENT_REMOVED

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

ContainerEvent

public ContainerEvent(Component source,
                      int id,
                      Component child)
Parameters:
source - the Component that originated the event
id - type of event
child - the component that was added or removed
Method Detail

getContainer

public Container getContainer()
Returns the originator of the event.

Returns:
the Container object that originated the event

getChild

public Component getChild()
Returns:
the Component object that was added or removed