swingwt.awt.event
Class ComponentEvent
java.lang.Object
java.util.EventObject
swingwt.awt.AWTEvent
swingwt.awt.event.ComponentEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ContainerEvent, FocusEvent, InputEvent, PaintEvent
- public class ComponentEvent
- extends AWTEvent
An event that indicates a component 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 |
COMPONENT_FIRST
public static final int COMPONENT_FIRST
- See Also:
- Constant Field Values
COMPONENT_LAST
public static final int COMPONENT_LAST
- See Also:
- Constant Field Values
COMPONENT_MOVED
public static final int COMPONENT_MOVED
- See Also:
- Constant Field Values
COMPONENT_RESIZED
public static final int COMPONENT_RESIZED
- See Also:
- Constant Field Values
COMPONENT_SHOWN
public static final int COMPONENT_SHOWN
- See Also:
- Constant Field Values
COMPONENT_HIDDEN
public static final int COMPONENT_HIDDEN
- See Also:
- Constant Field Values
ComponentEvent
public ComponentEvent(Component source)
ComponentEvent
public ComponentEvent(Component source,
int id)
- Parameters:
id
- an integer indicating the type of event
getComponent
public Component getComponent()
- Returns:
- the Component that originated the event