public abstract class

BaseListenerWrapper

extends Object
implements EventHandler
java.lang.Object
   ↳ com.google.gwt.user.client.BaseListenerWrapper<T>
Known Direct Subclasses
Known Indirect Subclasses

This class is deprecated.
will be removed in GWT 2.0 with the handler listeners themselves

Class Overview

Legacy listener support hierarchy root. Note, this class and its subtypes all assume that the handlers are stored in handler managers. This class, and its children are used to gather the bulk of the legacy glue code in one place, for easy deletion when Listener methods are deleted.

Summary

Protected Constructors
BaseListenerWrapper(T listener)
Creates a new listener wrapper.
Public Methods
void setSource(Widget source)
Sets the widget source to pass to the listeners.
Protected Methods
static <H extends EventHandler> void baseRemove(HandlerManager manager, Object listener, Type... types)
Helper method to remove all wrapped listeners from the given event types.
T getListener()
Gets the listener being wrapped.
Widget getSource(GwtEvent<?> event)
Gets the widget source to pass to the listeners.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected BaseListenerWrapper (T listener)

Creates a new listener wrapper.

Parameters
listener the listener to wrap

Public Methods

public void setSource (Widget source)

Sets the widget source to pass to the listeners. Source defaults to event.getSource() if this method is not used.

Parameters
source the source to provide as the listener's source

Protected Methods

protected static void baseRemove (HandlerManager manager, Object listener, Type... types)

Helper method to remove all wrapped listeners from the given event types.

Parameters
manager the manager to remove the listener from
listener the listener
types the event types to remove the listener from

protected T getListener ()

Gets the listener being wrapped.

Returns
  • the wrapped listener

protected Widget getSource (GwtEvent<?> event)

Gets the widget source to pass to the listeners. Source defaults to event.getSource() if not specified by setSource(Widget).

Parameters
event the event
Returns
  • source the source to provide as the listener's source