org.robokind.api.common.utils
Interface Listener<T>

Type Parameters:
T - type of events listened for
All Known Implementing Classes:
EventRepeater

public interface Listener<T>

Listens for events of type T.

Author:
Matthew Stevenson

Field Summary
static String PROP_LISTENER_ID
           
static String PROP_LISTENER_TYPE
           
 
Method Summary
 void handleEvent(T event)
          Called to notify the Listener of a new event.
 

Field Detail

PROP_LISTENER_ID

static final String PROP_LISTENER_ID
See Also:
Constant Field Values

PROP_LISTENER_TYPE

static final String PROP_LISTENER_TYPE
See Also:
Constant Field Values
Method Detail

handleEvent

void handleEvent(T event)
Called to notify the Listener of a new event.

Parameters:
event - the new event to handle


Copyright © 2011-2012. All Rights Reserved.