roboguice.event.eventListener
Class AsynchronousEventListenerDecorator<T>
java.lang.Object
roboguice.event.eventListener.AsynchronousEventListenerDecorator<T>
- All Implemented Interfaces:
- EventListener<T>
public class AsynchronousEventListenerDecorator<T>
- extends Object
- implements EventListener<T>
Event Listener Decorator class. This decorator executes the event listener through the SafeAsyncTask functionality.
- Author:
- John Ericksen
Method Summary |
void |
onEvent(T event)
Method called when event T is triggered. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eventListener
protected EventListener<T> eventListener
handler
protected android.os.Handler handler
AsynchronousEventListenerDecorator
public AsynchronousEventListenerDecorator(EventListener<T> eventListener)
AsynchronousEventListenerDecorator
public AsynchronousEventListenerDecorator(android.os.Handler handler,
EventListener<T> eventListener)
onEvent
public void onEvent(T event)
- Description copied from interface:
EventListener
- Method called when event T is triggered.
- Specified by:
onEvent
in interface EventListener<T>
- Parameters:
event
- fired
Copyright © 2012. All Rights Reserved.