cz.cuni.amis.pogamut.base.component.bus.event.impl
Class ComponentEvent<SOURCE extends IComponent>

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.component.bus.event.impl.ComponentEvent<SOURCE>
Type Parameters:
SOURCE -
All Implemented Interfaces:
IComponentEvent<SOURCE>
Direct Known Subclasses:
PausedEvent, PausingEvent, ResetEvent, ResumedEvent, ResumingEvent, StartedEvent, StartingEvent, StartingPausedEvent, StoppedEvent, StoppingEvent

public class ComponentEvent<SOURCE extends IComponent>
extends java.lang.Object
implements IComponentEvent<SOURCE>

Note that this is sort of utility class providing pretty-print (reflection based) for toString(), not every event must be descendant of this class. For listener event class specification use always interfaces!


Constructor Summary
ComponentEvent(SOURCE source)
           
 
Method Summary
 SOURCE getSource()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentEvent

public ComponentEvent(SOURCE source)
Method Detail

getSource

public SOURCE getSource()
Specified by:
getSource in interface IComponentEvent<SOURCE extends IComponent>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object