public class Event extends EventObject
IEventListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
Event.Builder<B extends Event.Builder<B>> |
source
Modifier | Constructor and Description |
---|---|
protected |
Event(Event.Builder<?> b) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Throwable |
getException()
Gets the exception, if any.
|
String |
getMessage()
Gets a message describing the event or giving precision.
|
String |
getName()
Gets the event name.
|
Object |
getSource()
Gets the object representing the source of this event.
|
int |
hashCode() |
boolean |
is(Event event) |
boolean |
is(String... eventName) |
String |
toString()
Returns the event message, if set, or the return value of
toString() on source. |
protected Event(Event.Builder<?> b)
public Object getSource()
getSource
in class EventObject
public String getName()
public String getMessage()
public Throwable getException()
null
public boolean is(Event event)
public boolean is(String... eventName)
public String toString()
toString()
on source.toString
in class EventObject
Copyright © 2008–2023 Norconex Inc.. All rights reserved.