|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.overlay.Overlay
com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay
com.google.gwt.maps.client.InfoWindow
public final class InfoWindow
Each map within the Google Maps API may show a single "info window" of type InfoWindow, which displays HTML content in a floating window above the map. The info window looks a little like a comic-book word balloon; it has a content area and a tapered stem, where the tip of the stem is at a specified point on the map. You can see the info window in action by clicking a marker in Google Maps.
MapWidget.getInfoWindow()
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
Overlay.ConcreteOverlay |
Field Summary |
---|
Fields inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
jsoPeer |
Method Summary | |
---|---|
void |
addInfoWindowCloseClickHandler(InfoWindowCloseClickHandler handler)
This event is fired when the info window close button is clicked. |
void |
addInfoWindowMaximizeClickHandler(InfoWindowMaximizeClickHandler handler)
Signals that the info window is about to be maximized. |
void |
addInfoWindowMaximizeEndHandler(InfoWindowMaximizeEndHandler handler)
Signals that the info window is about to be maximized. |
void |
addInfoWindowRestoreClickHandler(InfoWindowRestoreClickHandler handler)
Signals that the info window is about to be restored to the non-maximized state. |
void |
addInfoWindowRestoreEndHandler(InfoWindowRestoreEndHandler handler)
Signals that the info window has completed the restore operation to the non-maximized state. |
void |
close()
Closes the info window. |
com.google.gwt.user.client.Element[] |
getContentContainers()
Returns the array of Elements that hold the content of the tabs of this info window. |
Size |
getPixelOffset()
Returns the offset, in pixels, of the tip of the info window from the point on the map at whose geographical coordinates the info window is anchored. |
LatLng |
getPoint()
Returns the geographical point at which the info window is anchored. |
int |
getSelectedTab()
Returns the index, starting at 0, of the current selected tab. |
boolean |
isVisible()
Returns true if the info window is visible. |
void |
maximize()
Maximizes the infowindow. |
void |
open(LatLng point,
InfoWindowContent content)
Opens the info window at the given point with the given content. |
void |
open(Marker marker,
InfoWindowContent content)
Create a new info window on a Marker. |
void |
removeInfoWindowCloseClickHandler(InfoWindowCloseClickHandler handler)
Removes a single handler of this map previously added with addInfoWindowCloseClickHandler(InfoWindowCloseClickHandler) . |
void |
removeInfoWindowMaximizeClickHandler(InfoWindowMaximizeClickHandler handler)
Removes a single handler of this map previously added with addInfoWindowMaximizeClickHandler(InfoWindowMaximizeClickHandler) . |
void |
removeInfoWindowMaximizeEndHandler(InfoWindowMaximizeEndHandler handler)
Removes a single handler of this map previously added with addInfoWindowMaximizeEndHandler(InfoWindowMaximizeEndHandler) . |
void |
removeInfoWindowRestoreClickHandler(InfoWindowRestoreClickHandler handler)
Removes a single handler of this map previously added with addInfoWindowRestoreClickHandler(InfoWindowRestoreClickHandler) . |
void |
removeInfoWindowRestoreEndHandler(InfoWindowRestoreEndHandler handler)
Removes a single handler of this map previously added with addInfoWindowRestoreEndHandler(InfoWindowRestoreEndHandler) . |
void |
restore()
Restores the info window to its default (non-maximized) state. |
void |
selectTab(int index)
Selects the tab with the given index. |
void |
setMaximizeEnabled(boolean enabled)
Enables or disables maximization of the info window. |
void |
setVisible(boolean visible)
Shows or hides the info window. |
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay.ConcreteOverlay |
---|
copy, initialize, redraw, remove |
Methods inherited from class com.google.gwt.maps.client.overlay.Overlay |
---|
createPeer, getZIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addInfoWindowCloseClickHandler(InfoWindowCloseClickHandler handler)
close()
method.
handler
- the handler to call when this event fires.public void addInfoWindowMaximizeClickHandler(InfoWindowMaximizeClickHandler handler)
handler
- the handler to call when this event fires.public void addInfoWindowMaximizeEndHandler(InfoWindowMaximizeEndHandler handler)
handler
- the handler to call when this event fires.public void addInfoWindowRestoreClickHandler(InfoWindowRestoreClickHandler handler)
handler
- the handler to call when this event fires.public void addInfoWindowRestoreEndHandler(InfoWindowRestoreEndHandler handler)
handler
- the handler to call when this event fires.public void close()
public com.google.gwt.user.client.Element[] getContentContainers()
public Size getPixelOffset()
public LatLng getPoint()
public int getSelectedTab()
public boolean isVisible()
true
if the info window is visible.
true
if the info window is visiblepublic void maximize()
setMaximizeEnabled(boolean)
public void open(LatLng point, InfoWindowContent content)
point
- position to use as the origin of the Info Window.content
- An object that is filled with the content to display in the
InfoWindow.public void open(Marker marker, InfoWindowContent content)
marker
- Marker to open window over.content
- An object that is filled with the content to display in the
InfoWindow.public void removeInfoWindowCloseClickHandler(InfoWindowCloseClickHandler handler)
addInfoWindowCloseClickHandler(InfoWindowCloseClickHandler)
.
handler
- the handler to removepublic void removeInfoWindowMaximizeClickHandler(InfoWindowMaximizeClickHandler handler)
addInfoWindowMaximizeClickHandler(InfoWindowMaximizeClickHandler)
.
handler
- the handler to removepublic void removeInfoWindowMaximizeEndHandler(InfoWindowMaximizeEndHandler handler)
addInfoWindowMaximizeEndHandler(InfoWindowMaximizeEndHandler)
.
handler
- the handler to removepublic void removeInfoWindowRestoreClickHandler(InfoWindowRestoreClickHandler handler)
addInfoWindowRestoreClickHandler(InfoWindowRestoreClickHandler)
.
handler
- the handler to removepublic void removeInfoWindowRestoreEndHandler(InfoWindowRestoreEndHandler handler)
addInfoWindowRestoreEndHandler(InfoWindowRestoreEndHandler)
.
handler
- the handler to removepublic void restore()
InfoWindow
must have been opened with maxContent or maxTitle
options
public void selectTab(int index)
index
- the index of the tab to selectpublic void setMaximizeEnabled(boolean enabled)
public void setVisible(boolean visible)
visible
- pass true
to show the info window,
false
to hide.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |