use of org.geosdi.geoplatform.gui.configuration.map.puregwt.event.ScaleChangeEvent in project geo-platform by geosdi.
the class GeoPlatformLayoutManager method createCenter.
/**
* Create Center Panel in Main UI
*/
private void createCenter() {
center = new ContentPanel();
center.setHeaderVisible(false);
BorderLayoutData data = new BorderLayoutData(LayoutRegion.CENTER);
data.setMargins(new Margins(5, 5, 5, 5));
center.setLayoutOnChange(true);
center.addWidgetListener(new WidgetListener() {
@Override
public void widgetResized(ComponentEvent ce) {
Dispatcher.forwardEvent(GeoPlatformEvents.UPDATE_CENTER);
MapHandlerManager.fireEvent(new ScaleChangeEvent(XDOM.getViewportSize()));
}
});
ToolBar toolBar = new ToolBar();
statusMap = new Status();
statusMap.setText(ApiModuleMessages.INSTANCE.GeoPlatformLayoutManager_wellcomeMessage(GWT.getModuleName()));
statusMap.setWidth(150);
toolBar.add(statusMap);
toolBar.add(new FillToolItem());
center.setBottomComponent(toolBar);
viewport.add(center, data);
}
Aggregations