|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines methods used for external events handling.
| Method Summary | |
void |
addExternalEventListener(ExternalEventListener listener)
Deprecated. Adds the specified listener to receive external events. |
void |
notifyExternalEvent(EventObject event)
Deprecated. Notifies an external event to the session/oclet. |
void |
removeExternalEventListener(ExternalEventListener listener)
Deprecated. Removes the specified listener so it no longer receives external events. |
| Method Detail |
public void addExternalEventListener(ExternalEventListener listener)
throws TooManyListenersException
External events are generic events of type EventObject. They can be generated from Application Threads, that is any thread which is not a platform User Thread. For example a timer handler.
A listener object implementing the
NOTE: Only one listener is currently allowed.
ExternalEventListener
interface must be created in the application to receive external events
through onExternalEvent.CCSession for more details.
listener - The listener object.
TooManyListenersException
public void removeExternalEventListener(ExternalEventListener listener)
listener - The listener object.public void notifyExternalEvent(EventObject event)
This method must be used whenever an external event, such as a timer, has to be processed by the application. An external event is a generic event generated from any thread, i.e. a thread that has been explicetely or implicitely created by the application and which is not a platform User Thread.
The main purpose of this method is to ensure appropriate platform
synchronization for processing external events.
It will cause a previously registered listener (registered by
addExternalEventListener) to receive the event through invocation of
onExternalEvent (see ExternalEventListener) in a platform User
Thread. Since onExternalEvent is invoked in a User Thread, any
Call-control API method can be called then.
event - The external event that must be passed in the call to
onExternalEvent.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||