当前页面: 
在线文档首页 > 
JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档
Class java.awt.event.ContainerEvent - JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档
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
   
  -   COMPONENT_ADDED COMPONENT_ADDED
-   The component moved event type.
  
-   COMPONENT_REMOVED COMPONENT_REMOVED
-   The component resized event type.
  
-   CONTAINER_FIRST CONTAINER_FIRST
-   Marks the first integer id for the range of container event ids.
  
-   CONTAINER_LAST CONTAINER_LAST
-   Marks the last integer id for the range of container event ids.
   
  -   ContainerEvent(Component, int, Component) ContainerEvent(Component, int, Component)
-   Constructs a ContainerEvent object with the specified source
 container, type, and child which is being added or removed.
   
  -   getChild() getChild()
-   Returns the child component that was added or removed in
 this event.
  
-   getContainer() getContainer()
-   Returns the container where this event originated.
  
-   paramString() paramString()
-  
   
 CONTAINER_FIRST
CONTAINER_FIRST
 public static final int CONTAINER_FIRST
  -  Marks the first integer id for the range of container event ids.
 
 CONTAINER_LAST
CONTAINER_LAST
 public static final int CONTAINER_LAST
  -  Marks the last integer id for the range of container event ids.
 
 COMPONENT_ADDED
COMPONENT_ADDED
 public static final int COMPONENT_ADDED
  -  The component moved event type.
 
 COMPONENT_REMOVED
COMPONENT_REMOVED
 public static final int COMPONENT_REMOVED
  -  The component resized event type.
 
   
 ContainerEvent
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
  
 
   
 getContainer
getContainer
 public Container getContainer()
  -  Returns the container where this event originated.
 
 getChild
getChild
 public Component getChild()
  -  Returns the child component that was added or removed in
 this event.
 
 paramString
paramString
 public String paramString()
  - 
    -  Overrides:
    
-  paramString in class ComponentEvent
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index
Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A.  All Rights Reserved.