ContainerEventNameContainerEvent
DescriptionContainer events are fired off when a component is added to or removed from a container. The AWT automatically deals with adding components to containers; these events are provided only for notification. Class Definition
public class java.awt.event.ContainerEvent extends java.awt.event.ComponentEvent { // Constants public final static int COMPONENT_ADDED; public final static int COMPONENT_REMOVED; public final static int CONTAINER_FIRST; public final static int CONTAINER_LAST; // Constructors public ContainerEvent (Component source, int id, Component child); // Instance Methods public Component getChild(); public Container getContainer(); public String paramString(); } ConstantsCOMPONENT_ADDEDpublic final static int COMPONENT_ADDEDEvent type ID indicating that a component was added to a container. CONTAINER_FIRSTpublic final static int CONTAINER_FIRSTSpecifies the beginning range of container event ID values. CONTAINER_LASTpublic final static int CONTAINER_LASTSpecifies the ending range of container event ID values. COMPONENT_REMOVEDpublic final static int COMPONENT_REMOVEDEvent type ID indicating that a component was removed from a container. ConstructorsContainerEventpublic ContainerEvent (Component source, int id, Component child)
Instance MethodsgetChildpublic Component getChild()
getContainerpublic Container getContainer()
paramStringpublic String paramString()
See AlsoComponent, ComponentEvent, Container, ContainerAdapter, ContainerListener |
|