com.google.gwt.maps.client.impl
Class HandlerCollection<E>

java.lang.Object
  extended by com.google.gwt.maps.client.impl.HandlerCollection<E>
Type Parameters:
E - One of the XXXListener interfaces/abstract classes

public class HandlerCollection<E>
extends java.lang.Object

A class that keeps track of all JSO's associated with a particular listener instance. Creates an easy way for the Public API to interact with the GEvent.removeListener() and GEvent.clearListeners() methods when the time comes to remove events.


Constructor Summary
HandlerCollection(com.google.gwt.core.client.JavaScriptObject jsoPeer, MapEvent e)
          Create an empty collection.
 
Method Summary
 void addHandler(E listener, EventImpl.BooleanCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.CopyrightCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.DoubleCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.IntCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.IntIntCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.LatLngBoundsIntCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.LatLngCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.MapTypeCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.OverlayCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.OverlayLatLngCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.PointElementOverlayCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.StreetviewLocationCallback callback)
          Add a listener and the event handles associated with it.
 void addHandler(E listener, EventImpl.VoidCallback callback)
          Add a listener and the event handles associated with it.
 MapEvent getMapEvent()
          The type of event this collection represents.
 void removeHandler(E handler)
          Remove all JavaScript GEvent instances for a single listener.
 void trigger()
          Manually trigger an event that takes an overlay and point argument.
 void trigger(boolean arg)
          Manually trigger an event that takes a single boolean argument.
 void trigger(Copyright arg)
          Manually trigger an event that takes a single boolean argument.
 void trigger(double arg)
          Manually trigger an event that takes a single double argument.
 void trigger(int arg)
          Manually trigger an event that takes a single integer argument.
 void trigger(int arg1, int arg2)
          Manually trigger an event that takes two integer arguments.
 void trigger(LatLng point)
          Manually trigger an event that takes LatLng arguments.
 void trigger(LatLngBounds bounds, int value)
          Manually trigger an event that takes LatLngBounds and int arguments.
 void trigger(MapType type)
          Manually trigger an event that takes a MapType argument.
 void trigger(Overlay overlay)
          Manually trigger an event that takes an Overlay argument.
 void trigger(Overlay overlay, LatLng point)
          Manually trigger an event that takes Overlay and LatLng arguments.
 void trigger(Overlay overlay, LatLng point1, LatLng point2)
          Manually trigger an event that takes Overlay and 2 LatLng arguments.
 void trigger(Point point, com.google.gwt.user.client.Element elem, Overlay overlay)
          Manually trigger an event that takes Point, Element, and Overlay arguments.
 void trigger(StreetviewLocation arg)
          Manually trigger an event that takes a StreetviewLocation argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerCollection

public HandlerCollection(com.google.gwt.core.client.JavaScriptObject jsoPeer,
                         MapEvent e)
Create an empty collection.

Method Detail

addHandler

public void addHandler(E listener,
                       EventImpl.BooleanCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.CopyrightCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.DoubleCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.IntCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.IntIntCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.LatLngBoundsIntCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.LatLngCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.MapTypeCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.OverlayCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.OverlayLatLngCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.PointElementOverlayCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.StreetviewLocationCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

addHandler

public void addHandler(E listener,
                       EventImpl.VoidCallback callback)
Add a listener and the event handles associated with it.

Parameters:
listener - The listener to add to the collection
callback - The callback to call when the event fires.

getMapEvent

public MapEvent getMapEvent()
The type of event this collection represents.

Returns:
the event type this collection was created with.

removeHandler

public void removeHandler(E handler)
Remove all JavaScript GEvent instances for a single listener.


trigger

public void trigger()
Manually trigger an event that takes an overlay and point argument.


trigger

public void trigger(boolean arg)
Manually trigger an event that takes a single boolean argument.

Parameters:
arg - the boolean argument.

trigger

public void trigger(Copyright arg)
Manually trigger an event that takes a single boolean argument.

Parameters:
arg - the boolean argument.

trigger

public void trigger(double arg)
Manually trigger an event that takes a single double argument.

Parameters:
arg - the double argument.

trigger

public void trigger(int arg)
Manually trigger an event that takes a single integer argument.

Parameters:
arg - the integer argument.

trigger

public void trigger(int arg1,
                    int arg2)
Manually trigger an event that takes two integer arguments.

Parameters:
arg1 - first integer argument.
arg2 - second integer argument.

trigger

public void trigger(LatLng point)
Manually trigger an event that takes LatLng arguments.

Parameters:
point - A coordinate to send as a parameter of the event.

trigger

public void trigger(LatLngBounds bounds,
                    int value)
Manually trigger an event that takes LatLngBounds and int arguments.

Parameters:
bounds - rectangular bounds
value - integer value to pass

trigger

public void trigger(MapType type)
Manually trigger an event that takes a MapType argument.

Parameters:
type - the map type to send as a parameter of the event.

trigger

public void trigger(Overlay overlay)
Manually trigger an event that takes an Overlay argument.

Parameters:
overlay - the overlay argument for the event.

trigger

public void trigger(Overlay overlay,
                    LatLng point)
Manually trigger an event that takes Overlay and LatLng arguments.

Parameters:
overlay - An overlay to send as a parameter of the event.
point - A coordinate to send as a parameter of the event.

trigger

public void trigger(Overlay overlay,
                    LatLng point1,
                    LatLng point2)
Manually trigger an event that takes Overlay and 2 LatLng arguments.

Parameters:
overlay - An overlay to send as a parameter of the event.
point1 - A coordinate to send as a parameter of the event.
point2 - A coordinate to send as a parameter of the event.

trigger

public void trigger(Point point,
                    com.google.gwt.user.client.Element elem,
                    Overlay overlay)
Manually trigger an event that takes Point, Element, and Overlay arguments.

Parameters:
elem - A DOM element
overlay - An overlay to send as a parameter of the event.
point - A coordinate to send as a parameter of the event.

trigger

public void trigger(StreetviewLocation arg)
Manually trigger an event that takes a StreetviewLocation argument.

Parameters:
arg - the boolean argument.