|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.maps.client.InfoWindowContent
public class InfoWindowContent
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 |
---|
protected static final int TYPE_ELEMENT
protected static final int TYPE_MAP_BLOWUP
protected static final int TYPE_TABBED
Constructor Detail |
---|
public InfoWindowContent(InfoWindowContent.InfoWindowTab[] tabs)
tabs
- A populated array of tabs to display in an info window.public InfoWindowContent(InfoWindowContent.InfoWindowTab[] tabs, int selectedTab)
tabs
- A populated array of tabs to display in an info window.selectedTab
- The tab to select when the info window is displayed.public InfoWindowContent(java.lang.String content)
content
- An HTML string to display in the window.public InfoWindowContent(com.google.gwt.user.client.ui.Widget content)
content
- A widget to display in the window.Method Detail |
---|
public com.google.gwt.core.client.JavaScriptObject getOptions()
public void setMaxContent(java.lang.String windowMaximizedContent)
windowMaximizedContent
- content to be shownpublic void setMaxContent(com.google.gwt.user.client.ui.Widget windowMaximizedContent)
windowMaximizedContent
- content to be shownpublic void setMaxTitle(java.lang.String windowMaximizedTitle)
windowMaximizedTitle
- public void setMaxTitle(com.google.gwt.user.client.ui.Widget windowMaximizedTitle)
windowMaximizedTitle
- Title to be shownpublic void setMaxWidth(int maxWidth)
maxWidth
- Maximum width of the info window content in pixelspublic void setNoCloseOnClick(boolean noCloseFlag)
true
, the info window
will not close when the map is clicked. The default value is
false
noCloseFlag
- Pass true
to leave the window open when the
map is clicked.protected com.google.gwt.core.client.JavaScriptObject getContent()
protected int getType()
protected java.util.List<com.google.gwt.user.client.ui.Widget> getWidgets()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |