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
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. |
time
protected long time
source
protected EventGenerator source
DataManagerEventAdapter
public DataManagerEventAdapter(EventGenerator source)
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