Package javax.events
Class AsyncEvent
int addHandler(AsyncEventHandler handler)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Parameter | Description |
---|---|
handler | reference to the asynchronous event |
This method adds a new asynchronous event handler to the current list of handlers.
Returns | Description |
---|---|
id | handler ID |
Minus one is returned when the handler was not successfully added. If there are no more times available a HandlerLimitException is thrown.
Example
public final class TouchEventDispatcher extends javax.events.AsyncEvent
{
private EventHandler handler;
...
this.addHandler(this.handler);
A new AsyncEventHandler is added to the list of asynchronous event handlers.
See also:
Copyright © demmel products gmbh. All rights reserved.