All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.awt.event.ContainerEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----java.awt.AWTEvent
                   |
                   +----java.awt.event.ComponentEvent
                           |
                           +----java.awt.event.ContainerEvent

public class ContainerEvent
extends ComponentEvent
The class for container-level events. These events are provided for notification purposes ONLY; The AWT will automatically handle container add and remove operations internally.

See Also:
ContainerListener

Variable Index

 o COMPONENT_ADDED
The component moved event type.
 o COMPONENT_REMOVED
The component resized event type.
 o CONTAINER_FIRST
Marks the first integer id for the range of container event ids.
 o CONTAINER_LAST
Marks the last integer id for the range of container event ids.

Constructor Index

 o ContainerEvent(Component, int, Component)
Constructs a ContainerEvent object with the specified source container, type, and child which is being added or removed.

Method Index

 o getChild()
Returns the child component that was added or removed in this event.
 o getContainer()
Returns the container where this event originated.
 o paramString()

Variables

 o CONTAINER_FIRST
Properties Public Constant 
   CONTAINER_FIRST=int 
Marks the first integer id for the range of container event ids.

 o CONTAINER_LAST
Properties Public Constant 
   CONTAINER_LAST=int 
Marks the last integer id for the range of container event ids.

 o COMPONENT_ADDED
Properties Public Constant 
   COMPONENT_ADDED=int 
The component moved event type.

 o COMPONENT_REMOVED
Properties Public Constant 
   COMPONENT_REMOVED=int 
The component resized event type.

Constructors

 o ContainerEvent
    method ContainerEvent(source=Component, -
                          id=int, -
                          child=Component) public 
Constructs a ContainerEvent object with the specified source container, type, and child which is being added or removed.

Parameters:
source - the container where the event originated

Methods

 o getContainer
    method getContainer() returns Container public     
Returns the container where this event originated.

 o getChild
    method getChild() returns Component public     
Returns the child component that was added or removed in this event.

 o paramString
    method paramString() returns String public     
Overrides:
paramString in class ComponentEvent

All Packages  Class Hierarchy  This Package  Previous  Next  Index