public class NEWTEvent extends EventObject
100..10x200..20x300..30x| Modifier and Type | Method and Description |
|---|---|
Object |
getAttachment() |
int |
getEventType()
Returns the event type of this event.
|
long |
getWhen()
Returns the timestamp, in milliseconds, of this event.
|
boolean |
isSystemEvent()
Indicates whether this event was produced by the system or
generated by user code.
|
void |
setAttachment(Object attachment)
Attach the passed object to this event.
If an object was previously attached, it will be replaced. Attachments to NEWT events allow users to pass on information from one custom listener to another, ie custom listener to listener communication. |
String |
toString() |
StringBuilder |
toString(StringBuilder sb) |
getSourcepublic final boolean isSystemEvent()
public final int getEventType()
public final long getWhen()
public final void setAttachment(Object attachment)
attachment - User application specific objectpublic final Object getAttachment()
public String toString()
toString in class EventObjectpublic StringBuilder toString(StringBuilder sb)
Copyright 2010 JogAmp Community.