| java.lang.Object net.mygwt.ui.client.util.EventTable
EventTable | public class EventTable (Code) | | Maps listeners by event type.
|
Method Summary | |
public boolean | hasListener(int eventType) Returns true if the event table has any listeners for the
given event type. | public void | hook(int eventType, Listener listener) Hooks the listener by the given event type and element. | public void | removeAllListeners() Removes all mapped listeners. | public boolean | sendEvent(BaseEvent be) Sends the event to any registered listeners. | public void | unhook(int eventType, EventListener listener) | public void | unhook(int eventType, Listener listener) Unhooks the given listener for the given event type. |
hasListener | public boolean hasListener(int eventType)(Code) | | Returns true if the event table has any listeners for the
given event type.
Parameters: eventType - the event type the listener state |
hook | public void hook(int eventType, Listener listener)(Code) | | Hooks the listener by the given event type and element.
Parameters: eventType - the event type Parameters: listener - the listener to be added |
removeAllListeners | public void removeAllListeners()(Code) | | Removes all mapped listeners.
|
sendEvent | public boolean sendEvent(BaseEvent be)(Code) | | Sends the event to any registered listeners.
Parameters: be - the base event true if event was canceled by any listeners |
unhook | public void unhook(int eventType, Listener listener)(Code) | | Unhooks the given listener for the given event type.
Parameters: eventType - the event type Parameters: listener - the listener to be removed |
|
|