com.binaryfantasy.murq.event
Class SourceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.binaryfantasy.murq.event.SourceEvent
All Implemented Interfaces:
com.binaryfantasy.bfx.events.IDispatchableEvent<ISourceListener>, Serializable

public class SourceEvent
extends EventObject
implements com.binaryfantasy.bfx.events.IDispatchableEvent<ISourceListener>

An event indicating that an ISource has been altered in some way.

Author:
Bill Weiss
See Also:
Serialized Form

Nested Class Summary
static class SourceEvent.Type
          Indicates the type of change that has been performed on a ISource.
 
Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SourceEvent(SourceEvent.Type type, String key)
          Constructs a new event.
 
Method Summary
 void dispatch(ISourceListener listener)
           
 String getKey()
          Returns the key of the affected data.
 SourceEvent.Type getType()
          Returns the type of event.
 String toString()
           
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceEvent

public SourceEvent(SourceEvent.Type type,
                   String key)
Constructs a new event.

Parameters:
type - the type of event that has happened.
key - the key associated with the affected data.
Method Detail

getType

public SourceEvent.Type getType()
Returns the type of event.

Returns:
the type of event.

getKey

public String getKey()
Returns the key of the affected data.

Returns:
the key of the affected data.

dispatch

public void dispatch(ISourceListener listener)
Specified by:
dispatch in interface com.binaryfantasy.bfx.events.IDispatchableEvent<ISourceListener>

toString

public String toString()
Overrides:
toString in class EventObject


Copyright (c) 2000-2006, BinaryFantasy.com