swingwt.awt.event
Class ContainerEvent
java.lang.Object
java.util.EventObject
swingwt.awt.AWTEvent
swingwt.awt.event.ComponentEvent
swingwt.awt.event.ContainerEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ContainerEvent
- extends ComponentEvent
An event that indicates a container movement/resizing/visibility etc.
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CONTAINER_FIRST
public static final int CONTAINER_FIRST
- See Also:
- Constant Field Values
CONTAINER_LAST
public static final int CONTAINER_LAST
- See Also:
- Constant Field Values
COMPONENT_ADDED
public static final int COMPONENT_ADDED
- See Also:
- Constant Field Values
COMPONENT_REMOVED
public static final int COMPONENT_REMOVED
- See Also:
- Constant Field Values
ContainerEvent
public ContainerEvent(Component source,
int id,
Component child)
- Parameters:
source
- the Component that originated the eventid
- type of eventchild
- the component that was added or removed
getContainer
public Container getContainer()
- Returns the originator of the event.
- Returns:
- the Container object that originated the event
getChild
public Component getChild()
- Returns:
- the Component object that was added or removed