com.google.gwt.maps.client
Class InfoWindowContent

java.lang.Object
  extended by com.google.gwt.maps.client.InfoWindowContent
Direct Known Subclasses:
InfoWindowContent.MapBlowupContent

public class InfoWindowContent
extends java.lang.Object

InfoWindowContent describes the type of content that can be displayed in an InfoWindow.


Nested Class Summary
static class InfoWindowContent.InfoWindowTab
          Class that allows access to one tab of a tabbed info window.
static class InfoWindowContent.MapBlowupContent
          Class that represents the content of a blowup map.
 
Field Summary
protected static int TYPE_ELEMENT
           
protected static int TYPE_MAP_BLOWUP
           
protected static int TYPE_TABBED
           
 
Constructor Summary
InfoWindowContent(InfoWindowContent.InfoWindowTab[] tabs)
          Create a new InfoWindowContent object given an array of tabs.
InfoWindowContent(InfoWindowContent.InfoWindowTab[] tabs, int selectedTab)
          Create a new InfoWindowContent object given an array of tabs, setting the focus to a particular tab.
InfoWindowContent(java.lang.String content)
          Create a new InfoWindowContent object containing an HTML string to display in the window.
InfoWindowContent(com.google.gwt.user.client.ui.Widget content)
          Create the new InfoWindowContent object containing a GWT Widget.
 
Method Summary
protected  com.google.gwt.core.client.JavaScriptObject getContent()
           
 com.google.gwt.core.client.JavaScriptObject getOptions()
          Returns the underlying GInfoWindowOptions object constructed from the building of this InfoWindowContent object.
protected  int getType()
           
protected  java.util.List<com.google.gwt.user.client.ui.Widget> getWidgets()
           
 void setMaxContent(java.lang.String windowMaximizedContent)
          Specifies content to be shown when the InfoWindow is maximized.
 void setMaxContent(com.google.gwt.user.client.ui.Widget windowMaximizedContent)
          Specifies content to be shown when the InfoWindow is maximized.
 void setMaxTitle(java.lang.String windowMaximizedTitle)
          Specifies title to be shown when the InfoWindow is maximized.
 void setMaxTitle(com.google.gwt.user.client.ui.Widget windowMaximizedTitle)
          Specifies title to be shown when the InfoWindow is maximized.
 void setMaxWidth(int maxWidth)
          Maximum width of the info window content, in pixels.
 void setNoCloseOnClick(boolean noCloseFlag)
          Indicates whether or not the info window should close for a click on the map that was not on a marker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_ELEMENT

protected static final int TYPE_ELEMENT
See Also:
Constant Field Values

TYPE_MAP_BLOWUP

protected static final int TYPE_MAP_BLOWUP
See Also:
Constant Field Values

TYPE_TABBED

protected static final int TYPE_TABBED
See Also:
Constant Field Values
Constructor Detail

InfoWindowContent

public InfoWindowContent(InfoWindowContent.InfoWindowTab[] tabs)
Create a new InfoWindowContent object given an array of tabs.

Parameters:
tabs - A populated array of tabs to display in an info window.

InfoWindowContent

public InfoWindowContent(InfoWindowContent.InfoWindowTab[] tabs,
                         int selectedTab)
Create a new InfoWindowContent object given an array of tabs, setting the focus to a particular tab.

Parameters:
tabs - A populated array of tabs to display in an info window.
selectedTab - The tab to select when the info window is displayed.

InfoWindowContent

public InfoWindowContent(java.lang.String content)
Create a new InfoWindowContent object containing an HTML string to display in the window.

Parameters:
content - An HTML string to display in the window.

InfoWindowContent

public InfoWindowContent(com.google.gwt.user.client.ui.Widget content)
Create the new InfoWindowContent object containing a GWT Widget.

Parameters:
content - A widget to display in the window.
Method Detail

getOptions

public com.google.gwt.core.client.JavaScriptObject getOptions()
Returns the underlying GInfoWindowOptions object constructed from the building of this InfoWindowContent object.

Returns:
the underlying GInfoWindowOptions object constructed from the building of this InfoWindowContent object.

setMaxContent

public void setMaxContent(java.lang.String windowMaximizedContent)
Specifies content to be shown when the InfoWindow is maximized.

Parameters:
windowMaximizedContent - content to be shown

setMaxContent

public void setMaxContent(com.google.gwt.user.client.ui.Widget windowMaximizedContent)
Specifies content to be shown when the InfoWindow is maximized.

Parameters:
windowMaximizedContent - content to be shown

setMaxTitle

public void setMaxTitle(java.lang.String windowMaximizedTitle)
Specifies title to be shown when the InfoWindow is maximized.

Parameters:
windowMaximizedTitle -

setMaxTitle

public void setMaxTitle(com.google.gwt.user.client.ui.Widget windowMaximizedTitle)
Specifies title to be shown when the InfoWindow is maximized.

Parameters:
windowMaximizedTitle - Title to be shown

setMaxWidth

public void setMaxWidth(int maxWidth)
Maximum width of the info window content, in pixels.

Parameters:
maxWidth - Maximum width of the info window content in pixels

setNoCloseOnClick

public void setNoCloseOnClick(boolean noCloseFlag)
Indicates whether or not the info window should close for a click on the map that was not on a marker. If set to true, the info window will not close when the map is clicked. The default value is false

Parameters:
noCloseFlag - Pass true to leave the window open when the map is clicked.

getContent

protected com.google.gwt.core.client.JavaScriptObject getContent()

getType

protected int getType()

getWidgets

protected java.util.List<com.google.gwt.user.client.ui.Widget> getWidgets()