| |
|
| java.awt.AWTEvent java.awt.event.ComponentEvent java.awt.event.ContainerEvent
ContainerEvent | public class ContainerEvent extends ComponentEvent (Code) | | 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 version: 1.8 08/19/02 author: Tim Prinzing author: Amy Fowler |
Field Summary | |
final public static int | COMPONENT_ADDED The component moved event type. | final public static int | COMPONENT_REMOVED The component resized event type. | final public static int | CONTAINER_FIRST Marks the first integer id for the range of container event ids. | final public static int | CONTAINER_LAST Marks the last integer id for the range of container event ids. | Component | child |
Constructor Summary | |
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. |
COMPONENT_ADDED | final public static int COMPONENT_ADDED(Code) | | The component moved event type.
|
COMPONENT_REMOVED | final public static int COMPONENT_REMOVED(Code) | | The component resized event type.
|
CONTAINER_FIRST | final public static int CONTAINER_FIRST(Code) | | Marks the first integer id for the range of container event ids.
|
CONTAINER_LAST | final public static int CONTAINER_LAST(Code) | | Marks the last integer id for the range of container event ids.
|
ContainerEvent | public ContainerEvent(Component source, int id, Component child)(Code) | | 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 Component getChild()(Code) | | Returns the child component that was added or removed in
this event.
|
getContainer | public Container getContainer()(Code) | | Returns the container where this event originated.
|
|
|
|