Class java.awt.event.ContainerEvent
All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.event.ContainerEvent
Object
|
+----EventObject
|
+----AWTEvent
|
+----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.
- Version:
- 1.4 07/01/98
- Author:
- Tim Prinzing, Amy Fowler
- See Also:
- ContainerListener
-
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.
-
java.awt.event.ContainerEvent(Component, int, Component)
- Constructs a ContainerEvent object with the specified source
container, type, and child which is being added or removed.
-
getChild()
- Returns the child component that was added or removed in
this event.
-
getContainer()
- Returns the container where this event originated.
-
paramString()
-
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.
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.
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
getChild
public java.awt.Component getChild()
- Returns the child component that was added or removed in
this event.
getContainer
public java.awt.Container getContainer()
- Returns the container where this event originated.
paramString
public java.lang.String paramString()
- Overrides:
- paramString in class ComponentEvent
All Packages Class Hierarchy This Package Previous Next Index