|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.5.0
java.awt.event
|
Field Summary | |
---|---|
static int |
COMPONENT_FIRST
The first number in the range of ids used for component events. |
static int |
COMPONENT_HIDDEN
This event indicates that the component was rendered invisible. |
static int |
COMPONENT_LAST
The last number in the range of ids used for component events. |
static int |
COMPONENT_MOVED
This event indicates that the component's position changed. |
static int |
COMPONENT_RESIZED
This event indicates that the component's size changed. |
static int |
COMPONENT_SHOWN
This event indicates that the component was made visible. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ComponentEvent(Component source,
int id)
Constructs a ComponentEvent object. |
Method Summary | |
---|---|
Component |
getComponent()
Returns the originator of the event. |
String |
paramString()
Returns a parameter string identifying this event. |
Methods inherited from class java.awt.AWTEvent |
---|
consume, getID, isConsumed, setSource, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int COMPONENT_FIRST
public static final int COMPONENT_LAST
public static final int COMPONENT_MOVED
public static final int COMPONENT_RESIZED
public static final int COMPONENT_SHOWN
public static final int COMPONENT_HIDDEN
Constructor Detail |
---|
public ComponentEvent(Component source, int id)
ComponentEvent
object.
Note that passing in an invalid id
results in
unspecified behavior. This method throws an
IllegalArgumentException
if source
is null
.
source
- the Component
that originated the eventid
- an integer indicating the type of event
IllegalArgumentException
- if source
is nullMethod Detail |
---|
public Component getComponent()
Component
object that originated
the event, or null
if the object is not a
Component
.public String paramString()
paramString
in class AWTEvent