org.robokind.api.common.utils
Class EventRepeater<Msg>

java.lang.Object
  extended by org.robokind.api.common.utils.EventRepeater<Msg>
All Implemented Interfaces:
Listener<Msg>

public class EventRepeater<Msg>
extends Object
implements Listener<Msg>

Author:
Matthew Stevenson

Field Summary
 
Fields inherited from interface org.robokind.api.common.utils.Listener
PROP_LISTENER_ID, PROP_LISTENER_TYPE
 
Constructor Summary
EventRepeater()
           
 
Method Summary
 void addListener(Listener<Msg> listener)
           
 void handleEvent(Msg event)
          Called to notify the Listener of a new event.
 void removeListener(Listener<Msg> listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventRepeater

public EventRepeater()
Method Detail

handleEvent

public void handleEvent(Msg event)
Description copied from interface: Listener
Called to notify the Listener of a new event.

Specified by:
handleEvent in interface Listener<Msg>
Parameters:
event - the new event to handle

addListener

public void addListener(Listener<Msg> listener)

removeListener

public void removeListener(Listener<Msg> listener)


Copyright © 2011-2012. All Rights Reserved.