Package org.apache.cayenne.event
Class CayenneEvent
java.lang.Object
java.util.EventObject
org.apache.cayenne.event.CayenneEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GraphEvent
,MapEvent
,SnapshotEvent
Common superclass for events passed from the EventManager to Listeners; encapsulates
optional event information.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionCayenneEvent
(Object source) CayenneEvent
(Object source, Object postedBy, Map info) Creates CayenneEvent with possibly different event source and poster.CayenneEvent
(Object source, Map info) -
Method Summary
Modifier and TypeMethodDescriptiongetInfo()
Returns an object that posted this event.void
setPostedBy
(Object postedBy) void
setSubject
(EventSubject subject) Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
info
-
postedBy
-
subject
-
-
Constructor Details
-
CayenneEvent
-
CayenneEvent
-
CayenneEvent
Creates CayenneEvent with possibly different event source and poster. This may be the case when an event is resent by listener.- Since:
- 1.1
-
-
Method Details
-
getInfo
-
getSubject
- Since:
- 1.2
-
setSubject
- Since:
- 1.2
-
getPostedBy
Returns an object that posted this event. It may be different from event source, if event is reposted multiple times. -
setPostedBy
-