public class InfoWindow extends MVCObject<InfoWindow>
MVCObject
.Modifier | Constructor and Description |
---|---|
protected |
InfoWindow()
use newInstance();
Creates an info window with the given options.
|
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addCloseClickHandler(CloseClickMapHandler handler)
This event is fired when the close button was clicked.
|
HandlerRegistration |
addContentChangeHandler(ContentChangeMapHandler handler)
This event is fired when the content property changes.
|
HandlerRegistration |
addDomReadyHandler(DomReadyMapHandler handler)
This event is fired when the
<div> containing the InfoWindow's content is attached to the DOM. |
HandlerRegistration |
addPositionChangeHandler(PositionChangeMapHandler handler)
This event is fired when the position property changes.
|
HandlerRegistration |
addZindexChangedHandler(ZindexChangeMapHandler handler)
This event is fired when the InfoWindow's zIndex changes.
|
void |
close()
Closes this InfoWindow by removing it from the DOM structure.
|
Element |
getContent_Node()
get content if its a node
|
String |
getContent_String()
get content if its a string
|
LatLng |
getPosition()
get Position
|
int |
getZindex()
get Z index
|
static InfoWindow |
newInstance(InfoWindowOptions options)
Creates an info window with the given options.
|
void |
open(MapWidget mapWidget)
Opens this InfoWindow on the given map.
|
void |
open(MapWidget mapWidget,
MVCObject<?> anchor)
Opens this InfoWindow on the given map.
|
void |
open(StreetViewPanoramaWidget streetViewPanoRamaWidget)
Opens this InfoWindow on the given map.
|
void |
open(StreetViewPanoramaWidget streetViewPanoRamaWidget,
MVCObject<?> anchor)
Opens this InfoWindow on the given map.
|
void |
setContent(Element element)
set Content
|
void |
setContent(String content)
set Content
|
void |
setContent(Widget widget) |
void |
setOptions(InfoWindowOptions options)
set Options
|
void |
setPosition(LatLng position)
set Position
|
void |
setZindex(int index)
set Z index
|
bindTo, bindTo, bindTo, changed, createInstanceOfMVCObject, get, notify, set, setValues, unbind, unbindAll
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
protected InfoWindow()
public static final InfoWindow newInstance(InfoWindowOptions options)
options
- InfoWindowOptions
public final void close()
public final String getContent_String()
public final LatLng getPosition()
public final int getZindex()
public final void open(MapWidget mapWidget)
mapWidget
- public final void open(MapWidget mapWidget, MVCObject<?> anchor)
mapWidget
- anchor
- public final void open(StreetViewPanoramaWidget streetViewPanoRamaWidget)
streetViewPanoRamaWidget
- public final void open(StreetViewPanoramaWidget streetViewPanoRamaWidget, MVCObject<?> anchor)
streetViewPanoRamaWidget
- anchor
- public final void setContent(Widget widget)
public final void setContent(String content)
content
- public final void setContent(Element element)
element
- public final void setOptions(InfoWindowOptions options)
options
- public final void setPosition(LatLng position)
position
- public final void setZindex(int index)
index
- public final HandlerRegistration addCloseClickHandler(CloseClickMapHandler handler)
handler
- public final HandlerRegistration addContentChangeHandler(ContentChangeMapHandler handler)
handler
- public final HandlerRegistration addDomReadyHandler(DomReadyMapHandler handler)
<div>
containing the InfoWindow's content is attached to the DOM. You may wish to monitor this event if you are building out your info window content dynamically.handler
- public final HandlerRegistration addPositionChangeHandler(PositionChangeMapHandler handler)
handler
- public final HandlerRegistration addZindexChangedHandler(ZindexChangeMapHandler handler)
handler
- Copyright © 2011-2013 Gone Vertical LLC. All Rights Reserved.