Where Am I? Class Hierarchy (JDK) All Classes (JDK) All Fields and Methods (JDK)

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

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

Constructor Index

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

Method Index

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

Variables

CONTAINER_FIRST
 public static final int CONTAINER_FIRST
Marks the first integer id for the range of container event ids.

CONTAINER_LAST
 public static final int CONTAINER_LAST
Marks the last integer id for the range of container event ids.

COMPONENT_ADDED
 public static final int COMPONENT_ADDED
The component moved event type.

COMPONENT_REMOVED
 public static final int COMPONENT_REMOVED
The component resized event type.


Constructors

ContainerEvent
 public ContainerEvent(Component source,
                       int id,
                       Component child)
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

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

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

paramString
 public String paramString()
Overrides:
paramString in class ComponentEvent

Where Am I? Class Hierarchy (JDK) All Classes (JDK) All Fields and Methods (JDK)