|
Préférences
Moteurs de recherche
|
|||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
java.awt.event
|
Field Summary | |
---|---|
static int |
TEXT_FIRST
The first number in the range of ids used for text events. |
static int |
TEXT_LAST
The last number in the range of ids used for text events. |
static int |
TEXT_VALUE_CHANGED
This event id indicates that object's text changed. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
TextEvent(Object source,
int id)
Constructs a TextEvent object. |
Method Summary | |
---|---|
String |
paramString()
Returns a parameter string identifying this text 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 TEXT_FIRST
public static final int TEXT_LAST
public static final int TEXT_VALUE_CHANGED
Constructor Detail |
---|
public TextEvent(Object source, int id)
TextEvent
object.
Note that passing in an invalid id
results in
unspecified behavior. This method throws an
IllegalArgumentException
if source
is null
.
source
- the (TextComponent
) object that
originated the eventid
- an integer that identifies the event type
IllegalArgumentException
- if source
is nullMethod Detail |
---|
public String paramString()
paramString
in class AWTEvent