/*
* This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
*
* Copyright 2008-2011 Geosparc nv, http://www.geosparc.com/, Belgium.
*
* The program is available in open source according to the GNU Affero
* General Public License. All contributions in this program are covered
* by the Geomajas Contributors License Agreement. For full licensing
* details, see LICENSE.txt in the project root.
*/
package org.geomajas.widget.featureinfo.gwt.example.client.pages;
import com.smartgwt.client.widgets.layout.VLayout;
import com.smartgwt.client.widgets.tab.Tab;
import org.geomajas.gwt.client.widget.MapWidget;
/**
* Basic implementation for a tab. The tabs are added bottom left.
*
* @author geomajas-gwt-archetype
*/
public abstract class AbstractTab extends Tab {
protected final MapWidget map;
protected VLayout mainLayout;
AbstractTab(String title, MapWidget map) {
super(title);
this.map = map;
mainLayout = new VLayout();
mainLayout.setWidth100();
mainLayout.setHeight100();
setPane(mainLayout);
}
public abstract void initialize();
public MapWidget getMap() {
return map;
}
}