org.bushe.swing.event
Class ObjectEvent

java.lang.Object
  extended by org.bushe.swing.event.AbstractEventServiceEvent
      extended by org.bushe.swing.event.ObjectEvent
All Implemented Interfaces:
EventServiceEvent, PublicationStatusTracker

public class ObjectEvent
extends AbstractEventServiceEvent

A simple event that delivers an untyped object with a source object.

Usage: EventBus.publish(new ObjectEvent(this, objectOfInterest);


Field Summary
 
Fields inherited from class org.bushe.swing.event.AbstractEventServiceEvent
stateLock
 
Constructor Summary
ObjectEvent(Object sourceObject, Object payload)
          Constructor
 
Method Summary
 Object getEventObject()
           
 
Methods inherited from class org.bushe.swing.event.AbstractEventServiceEvent
getPublicationStatus, getSource, setPublicationStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectEvent

public ObjectEvent(Object sourceObject,
                   Object payload)
Constructor

Parameters:
sourceObject - the source of the event
payload - the payload or eventObject of the event
Method Detail

getEventObject

public Object getEventObject()


Copyright © 2011 Bushe Enterprises, Inc.. All Rights Reserved.