Keel 2.1RC2

org.keel.services.event.defaultevent
Class DefaultEvent

java.lang.Object
  extended byorg.keel.services.event.defaultevent.DefaultEvent
All Implemented Interfaces:
Event, java.io.Serializable

public class DefaultEvent
extends java.lang.Object
implements Event, java.io.Serializable

Events are posted to an DefaultEventManager by the object originating the DefaultEvent. The DefaultEventManager then takes care of notifying all of the registered listeners that the event has taken place

See Also:
Serialized Form

Field Summary
private  java.util.Map myDetails
           
private  java.lang.String myIdentifier
           
private  java.lang.Object postedBy
           
 
Fields inherited from interface org.keel.services.event.Event
ROLE
 
Constructor Summary
DefaultEvent()
           
 
Method Summary
 java.util.Map getDetails()
          An DefaultEvent may provide a Map of details, these details being any arbitrary attributes that the DefaultEvent wants to supply to listeners.
 java.lang.String getIdentifier()
          Get the identifier that indicates what kind of DefaultEvent this is
 java.lang.Object getPostedBy()
          Return the object that originally posted this event, if available
 void setDetails(java.util.Map m)
           
 void setIdentifier(java.lang.String newIdent)
          Set the identifier that indicates the type of this event.
 void setPostedBy(java.lang.Object e)
          Set the reference to the object that posted this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myIdentifier

private java.lang.String myIdentifier

postedBy

private java.lang.Object postedBy

myDetails

private java.util.Map myDetails
Constructor Detail

DefaultEvent

public DefaultEvent()
Method Detail

setIdentifier

public void setIdentifier(java.lang.String newIdent)
Set the identifier that indicates the type of this event.

Specified by:
setIdentifier in interface Event

setPostedBy

public void setPostedBy(java.lang.Object e)
Set the reference to the object that posted this event. Not all Events support this.

Specified by:
setPostedBy in interface Event

getPostedBy

public java.lang.Object getPostedBy()
Return the object that originally posted this event, if available

Specified by:
getPostedBy in interface Event

getIdentifier

public java.lang.String getIdentifier()
Get the identifier that indicates what kind of DefaultEvent this is

Specified by:
getIdentifier in interface Event

getDetails

public java.util.Map getDetails()
An DefaultEvent may provide a Map of details, these details being any arbitrary attributes that the DefaultEvent wants to supply to listeners. These may further identify the DefaultEvent, pass on data, or supply any other DefaultEvent-specific need.

Specified by:
getDetails in interface Event

setDetails

public void setDetails(java.util.Map m)
Specified by:
setDetails in interface Event

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.