java.awt.event
public class ComponentEvent extends AWTEvent
Since: 1.1
See Also: ComponentAdapter ComponentListener
UNKNOWN: updated to 1.4
Field Summary | |
---|---|
static int | COMPONENT_FIRST This is the first id in the range of ids used by this class. |
static int | COMPONENT_HIDDEN This id indicates that a component was hidden. |
static int | COMPONENT_LAST This is the last id in the range of ids used by this class. |
static int | COMPONENT_MOVED This id indicates that a component was moved. |
static int | COMPONENT_RESIZED This id indicates that a component was resized. |
static int | COMPONENT_SHOWN This id indicates that a component was shown. |
Constructor Summary | |
---|---|
ComponentEvent(Component source, int id)
Initializes a new instance of ComponentEvent with the
specified source and id. |
Method Summary | |
---|---|
Component | getComponent()
This method returns the event source as a Component . |
String | paramString()
This method returns a string identifying this event. |
ComponentEvent
with the
specified source and id. Note that an invalid id leads to unspecified
results.
Parameters: source the source of the event id the event id
Throws: IllegalArgumentException if source is null
Component
. If the
source has subsequently been modified to a non-Component, this returns
null.
Returns: the event source as a Component
, or null
Returns: a string identifying this event