MIDP3.0

javax.microedition.event
Interface EventDataListener


public interface EventDataListener

With this interface applications are able to receive events from the system and from other applications. The EventDataListener interface MUST be implemented by an application and registered with the EventManager to receive events.

The application MUST NOT make any assumptions about synchronization of calls to the EventDataListener. The listener may be called at any time. The application is responsible for handling concurrency.

From the call to handleEvent until it returns the event system will not change the state of the EventData instance. After handleEvent returns the state of the EventData instance is unpredictable.

Since:
MIDP 3.0
See Also:
EventManager

Method Summary
 void handleEvent(EventData value)
          Called with the EventData for the event to which this listener has been registered.
 

Method Detail

handleEvent

void handleEvent(EventData value)
Called with the EventData for the event to which this listener has been registered. This method will be called when the value has changed.

Parameters:
value - An EventData object containing the value that triggered the event.

MIDP3.0

Send a comment or suggestionVersion 3.0 of Mobile Information Device Profile Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-2009 Motorola Inc. Portions copyright 1993-2002 Sun Microsystems, Inc. and Motorola, Inc. All Rights Reserved.