Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.event
Class CayenneEvent

    java.lang.Object
      java.util.EventObject
          org.apache.cayenne.event.CayenneEvent

All Implemented Interfaces:
  java.io.Serializable

Direct Known Subclasses:
  DataContextEvent, GraphEvent, MapEvent, SnapshotEvent

    public class CayenneEvent

extends java.util.EventObject

Common superclass for events passed from the EventManager to Listeners; encapsulates optional event information.

Author:
  Dirk Olmes, Holger Hoffstaette
See Also:
  Serialized Form

Field Summary
`protected java.util.Map` | `info`
`protected java.lang.Object` | `postedBy`
`protected EventSubject` | `subject`

Fields inherited from class java.util.EventObject
`source`

Constructor Summary
`CayenneEvent(java.lang.Object source)`
`CayenneEvent(java.lang.Object source, java.util.Map info)`
`CayenneEvent(java.lang.Object source, java.lang.Object postedBy, java.util.Map info)` Creates CayenneEvent with possibly different event source and poster.

Method Summary
`java.util.Map` | `getInfo()`
`java.lang.Object` | `getPostedBy()` Returns an object that posted this event.
`EventSubject` | `getSubject()`
`void` | `setPostedBy(java.lang.Object postedBy)`
`void` | `setSubject(EventSubject subject)`

Methods inherited from class java.util.EventObject
`getSource, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### info

    protected java.util.Map info

### postedBy

    protected transient java.lang.Object postedBy

### subject

    protected EventSubject subject

Constructor Detail

### CayenneEvent

    public CayenneEvent(java.lang.Object source)

### CayenneEvent

    public CayenneEvent(java.lang.Object source,
                        java.util.Map info)

### CayenneEvent

    public CayenneEvent(java.lang.Object source,
                        java.lang.Object postedBy,
                        java.util.Map info)

  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 Detail

### getInfo

    public java.util.Map getInfo()

### getSubject

    public EventSubject getSubject()

  Since:
    1.2

### setSubject

    public void setSubject(EventSubject subject)

  Since:
    1.2

### getPostedBy

    public java.lang.Object getPostedBy()

  Returns an object that posted this event. It may be different from event source, if event is reposted multiple times.

### setPostedBy

    public void setPostedBy(java.lang.Object postedBy)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 Apache.org All Rights Reserved.