org.datamanager.event
Class DataManagerEventAdapter

java.lang.Object
  |
  +--org.datamanager.event.DataManagerEventAdapter
All Implemented Interfaces:
DataManagerEvent, EntityValue, Serializable
Direct Known Subclasses:
AddEntityPoolEvent, AttachLinkEvent, DetachLinkEvent, DisposeGuiRequestEvent, EmailConfigurationRequestEvent, EmailDisplayRequestEvent, EmailMetadataSearchEvent, EmailParametersEnteredCollectorEvent, EmailParametersRequestEvent, EmailReplyRequestEvent, EntityDisplayRequestEvent, ExportGuiRequestEvent, GetValueEvent, KernelShutdownRequestEvent, LaunchBrowserWithURLEvent, NewsGroupDownloadRequestEvent, SearchPoolEvent, SearchRequestEvent, SearchResultsFoundEvent, SetValueEvent, SMTPSendRequestEvent, StartedRetrievingEmailEvent, StoppedRetrievingEmailEvent, SubscribeEventGeneratorEvent, UnsubscribeEventGeneratorEvent, WebSearchRequestEvent

public abstract class DataManagerEventAdapter
extends Object
implements DataManagerEvent

This class is an implementation of DataManagerEvent. Its main function is to implement the generic methods required by a DataManagerEvent. This class can be extended by any event to take care of method such as getTime(), getSource(). This class is abstract because it requires any subclass to implement the toString() method required by DataManagerEvent.

Author:
Matthew Farrellee
See Also:
Serialized Form

Field Summary
protected  EventGenerator source
           
protected  long time
           
 
Constructor Summary
DataManagerEventAdapter(EventGenerator source)
           
 
Method Summary
 EventGenerator getSource()
          Report the object that generated this event.
 long getTime()
          Report the time at which this event was created (in milliseconds).
abstract  String toString()
          Report a String representation of the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

time

protected long time

source

protected EventGenerator source
Constructor Detail

DataManagerEventAdapter

public DataManagerEventAdapter(EventGenerator source)
Method Detail

getSource

public EventGenerator getSource()
Report the object that generated this event.

Specified by:
getSource in interface DataManagerEvent
Returns:
EventGenerator The source of this event.

getTime

public long getTime()
Report the time at which this event was created (in milliseconds).

Specified by:
getTime in interface DataManagerEvent
Returns:
long The time of the event's creation (in milliseconds).

toString

public abstract String toString()
Description copied from interface: DataManagerEvent
Report a String representation of the event.

Specified by:
toString in interface DataManagerEvent
Overrides:
toString in class Object


See the Helium Website