Example usage for com.google.gwt.maps.client InfoWindowContent InfoWindowContent

List of usage examples for com.google.gwt.maps.client InfoWindowContent InfoWindowContent

Introduction

In this page you can find the example usage for com.google.gwt.maps.client InfoWindowContent InfoWindowContent.

Prototype

public InfoWindowContent(InfoWindowTab[] tabs, int selectedTab) 

Source Link

Document

Create a new InfoWindowContent object given an array of tabs, setting the focus to a particular tab.

Usage

From source file:com.google.gwt.maps.sample.hellomaps.client.InfoWindowDemo.java

License:Apache License

private InfoWindowContent displayInfoWindowTabs() {

    InfoWindowTab tabs[] = new InfoWindowTab[2];

    tabs[0] = new InfoWindowTab("Tab 1", "<h1>Tab 1 Content</h1>");
    tabs[1] = new InfoWindowTab("Tab 2", "<h1>Tab 2 Content</h1>");
    final InfoWindowContent content = new InfoWindowContent(tabs, 1);
    return content;
}