com.google.maps.gwt.client
Class InfoWindow

java.lang.Object
  extended by JavaScriptObject
      extended by com.google.maps.gwt.client.MVCObject
          extended by com.google.maps.gwt.client.InfoWindow

public class InfoWindow
extends MVCObject

An overlay that looks like a bubble and is often connected to a marker. THIS SOURCE CODE IS GENERATED, DO NOT MODIFY


Nested Class Summary
static interface InfoWindow.CloseClickHandler
          This event is fired when the close button was clicked.
static interface InfoWindow.ContentChangedHandler
          This event is fired when the content property changes.
static interface InfoWindow.DomReadyHandler
          This event is fired when the <div> containing the InfoWindow 's content is attached to the DOM.
static interface InfoWindow.PositionChangedHandler
          This event is fired when the position property changes.
static interface InfoWindow.ZIndexChangedHandler
          This event is fired when the InfoWindow's zIndex changes.
 
Constructor Summary
protected InfoWindow()
          Protected constructor avoids default public constructor.
 
Method Summary
 void addCloseClickListener(InfoWindow.CloseClickHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addCloseClickListenerOnce(InfoWindow.CloseClickHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addContentChangedListener(InfoWindow.ContentChangedHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addContentChangedListenerOnce(InfoWindow.ContentChangedHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addDomReadyListener(InfoWindow.DomReadyHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addDomReadyListenerOnce(InfoWindow.DomReadyHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addPositionChangedListener(InfoWindow.PositionChangedHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addPositionChangedListenerOnce(InfoWindow.PositionChangedHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void addZIndexChangedListener(InfoWindow.ZIndexChangedHandler handler)
          Adds the given listener function to the given event name for the given object instance.
 void addZIndexChangedListenerOnce(InfoWindow.ZIndexChangedHandler handler)
          Like addListener, but the handler removes itself after handling the first event.
 void clearCloseClickListeners()
          Removes all listeners for the given event for the given instance.
 void clearContentChangedListeners()
          Removes all listeners for the given event for the given instance.
 void clearDomReadyListeners()
          Removes all listeners for the given event for the given instance.
 void clearInstanceListeners()
          Removes all listeners for all events for the given instance.
 void clearPositionChangedListeners()
          Removes all listeners for the given event for the given instance.
 void clearZIndexChangedListeners()
          Removes all listeners for the given event for the given instance.
 void close()
          Closes this InfoWindow by removing it from the DOM structure.
static InfoWindow create()
          Creates an info window with the given options.
static InfoWindow create(InfoWindowOptions opts)
          Creates an info window with the given options.
 LatLng getPosition()
           
 double getZIndex()
           
 void open()
          Opens this InfoWindow on the given map.
 void open(GoogleMap map)
          Opens this InfoWindow on the given map.
 void open(GoogleMap map, MVCObject anchor)
          Opens this InfoWindow on the given map.
 void open(MVCObject anchor)
          Opens this InfoWindow on the given map.
 void open(StreetViewPanorama map)
          Opens this InfoWindow on the given map.
 void open(StreetViewPanorama map, MVCObject anchor)
          Opens this InfoWindow on the given map.
 void setContent(Node content)
           
 void setContent(java.lang.String content)
           
 void setOptions(InfoWindowOptions options)
           
 void setPosition(LatLng position)
           
 void setZIndex(double zIndex)
           
 void triggerCloseClick(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerContentChanged(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerDomReady(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerPositionChanged(JavaScriptObject... varargs)
          Triggers the given event.
 void triggerZIndexChanged(JavaScriptObject... varargs)
          Triggers the given event.
 
Methods inherited from class com.google.maps.gwt.client.MVCObject
bindTo, bindTo, bindTo, bindTo, changed, get, notify, set, setValues, setValues, unbind, unbindAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoWindow

protected InfoWindow()
Protected constructor avoids default public constructor.

Method Detail

create

public static InfoWindow create(InfoWindowOptions opts)
Creates an info window with the given options. An InfoWindow can be placed on a map at a particular position or above a marker, depending on what is specified in the options. Unless auto-pan is disabled, an InfoWindow will pan the map to make itself visible when it is opened. After constructing an InfoWindow, you must call open to display it on the map. The user can click the close button on the InfoWindow to remove it from the map, or the developer can call close() for the same effect.


create

public static InfoWindow create()
Creates an info window with the given options. An InfoWindow can be placed on a map at a particular position or above a marker, depending on what is specified in the options. Unless auto-pan is disabled, an InfoWindow will pan the map to make itself visible when it is opened. After constructing an InfoWindow, you must call open to display it on the map. The user can click the close button on the InfoWindow to remove it from the map, or the developer can call close() for the same effect.


addCloseClickListener

public final void addCloseClickListener(InfoWindow.CloseClickHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addCloseClickListenerOnce

public final void addCloseClickListenerOnce(InfoWindow.CloseClickHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addContentChangedListener

public final void addContentChangedListener(InfoWindow.ContentChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addContentChangedListenerOnce

public final void addContentChangedListenerOnce(InfoWindow.ContentChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addDomReadyListener

public final void addDomReadyListener(InfoWindow.DomReadyHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addDomReadyListenerOnce

public final void addDomReadyListenerOnce(InfoWindow.DomReadyHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addPositionChangedListener

public final void addPositionChangedListener(InfoWindow.PositionChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addPositionChangedListenerOnce

public final void addPositionChangedListenerOnce(InfoWindow.PositionChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


addZIndexChangedListener

public final void addZIndexChangedListener(InfoWindow.ZIndexChangedHandler handler)
Adds the given listener function to the given event name for the given object instance. Returns an identifier for this listener that can be used with removeListener().


addZIndexChangedListenerOnce

public final void addZIndexChangedListenerOnce(InfoWindow.ZIndexChangedHandler handler)
Like addListener, but the handler removes itself after handling the first event.


clearCloseClickListeners

public final void clearCloseClickListeners()
Removes all listeners for the given event for the given instance.


clearContentChangedListeners

public final void clearContentChangedListeners()
Removes all listeners for the given event for the given instance.


clearDomReadyListeners

public final void clearDomReadyListeners()
Removes all listeners for the given event for the given instance.


clearInstanceListeners

public final void clearInstanceListeners()
Removes all listeners for all events for the given instance.


clearPositionChangedListeners

public final void clearPositionChangedListeners()
Removes all listeners for the given event for the given instance.


clearZIndexChangedListeners

public final void clearZIndexChangedListeners()
Removes all listeners for the given event for the given instance.


close

public final void close()
Closes this InfoWindow by removing it from the DOM structure.


getPosition

public final LatLng getPosition()

getZIndex

public final double getZIndex()

open

public final void open(GoogleMap map,
                       MVCObject anchor)
Opens this InfoWindow on the given map. Optionally, an InfoWindow can be associated with an anchor. In the core API, the only anchor is the Marker class. However, an anchor can be any MVCObject that exposes the position property and optionally anchorPoint for calculating the pixelOffset (see InfoWindowOptions). The anchorPoint is the offset from the anchor's position to the tip of the InfoWindow.


open

public final void open(GoogleMap map)
Opens this InfoWindow on the given map. Optionally, an InfoWindow can be associated with an anchor. In the core API, the only anchor is the Marker class. However, an anchor can be any MVCObject that exposes the position property and optionally anchorPoint for calculating the pixelOffset (see InfoWindowOptions). The anchorPoint is the offset from the anchor's position to the tip of the InfoWindow.


open

public final void open(StreetViewPanorama map,
                       MVCObject anchor)
Opens this InfoWindow on the given map. Optionally, an InfoWindow can be associated with an anchor. In the core API, the only anchor is the Marker class. However, an anchor can be any MVCObject that exposes the position property and optionally anchorPoint for calculating the pixelOffset (see InfoWindowOptions). The anchorPoint is the offset from the anchor's position to the tip of the InfoWindow.


open

public final void open(StreetViewPanorama map)
Opens this InfoWindow on the given map. Optionally, an InfoWindow can be associated with an anchor. In the core API, the only anchor is the Marker class. However, an anchor can be any MVCObject that exposes the position property and optionally anchorPoint for calculating the pixelOffset (see InfoWindowOptions). The anchorPoint is the offset from the anchor's position to the tip of the InfoWindow.


open

public final void open(MVCObject anchor)
Opens this InfoWindow on the given map. Optionally, an InfoWindow can be associated with an anchor. In the core API, the only anchor is the Marker class. However, an anchor can be any MVCObject that exposes the position property and optionally anchorPoint for calculating the pixelOffset (see InfoWindowOptions). The anchorPoint is the offset from the anchor's position to the tip of the InfoWindow.


open

public final void open()
Opens this InfoWindow on the given map. Optionally, an InfoWindow can be associated with an anchor. In the core API, the only anchor is the Marker class. However, an anchor can be any MVCObject that exposes the position property and optionally anchorPoint for calculating the pixelOffset (see InfoWindowOptions). The anchorPoint is the offset from the anchor's position to the tip of the InfoWindow.


setContent

public final void setContent(java.lang.String content)

setContent

public final void setContent(Node content)

setOptions

public final void setOptions(InfoWindowOptions options)

setPosition

public final void setPosition(LatLng position)

setZIndex

public final void setZIndex(double zIndex)

triggerCloseClick

public final void triggerCloseClick(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerContentChanged

public final void triggerContentChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerDomReady

public final void triggerDomReady(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerPositionChanged

public final void triggerPositionChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.


triggerZIndexChanged

public final void triggerZIndexChanged(JavaScriptObject... varargs)
Triggers the given event. All arguments after eventName are passed as arguments to the listeners.