use of com.extjs.gxt.ui.client.event.WidgetListener 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);
}
use of com.extjs.gxt.ui.client.event.WidgetListener in project geo-platform by geosdi.
the class CatalogWMSCapabilitiesWidget method setWindowProperties.
@Override
public void setWindowProperties() {
super.setLayout(new FitLayout());
super.setResizable(Boolean.FALSE);
super.setModal(Boolean.TRUE);
super.setCollapsible(Boolean.FALSE);
super.setPlain(Boolean.TRUE);
super.addWidgetListener(new WidgetListener() {
@Override
public void widgetAttached(ComponentEvent ce) {
catalogGridLayers.getGrid().setHeight(300);
}
});
}
use of com.extjs.gxt.ui.client.event.WidgetListener in project geo-platform by geosdi.
the class LayerManagementWidget method setPanelProperties.
@Override
public void setPanelProperties() {
setHeadingHtml(LayerModuleConstants.INSTANCE.LayerManagementWidget_headingText());
setLayout(new BorderLayout());
setLayoutOnChange(TRUE);
addWidgetListener(new WidgetListener() {
@Override
public void widgetResized(ComponentEvent ce) {
if (getHeight() > 0) {
layerTreePanel.setHeight(getHeight() - 220);
if (LayerBeanLayoutFactory.getLayerBeanLayout().getLayerTreePosition() != LayerBeanLayoutFactory.getLayerBeanLayout().getLegendPosition()) {
legendPanel.setHeight(getHeight());
layerTreePanel.setHeight(getHeight() - 40);
}
}
}
});
setScrollMode(Scroll.NONE);
}
use of com.extjs.gxt.ui.client.event.WidgetListener in project geo-platform by geosdi.
the class GPCapabilitiesWidget method setWindowProperties.
@Override
public void setWindowProperties() {
super.setResizable(false);
super.addWindowListener(new WindowListener() {
@Override
public void windowShow(WindowEvent we) {
gridLayers.loadServers();
}
});
super.addWidgetListener(new WidgetListener() {
@Override
public void widgetAttached(ComponentEvent ce) {
gridLayers.getGrid().setHeight(400);
}
});
super.setLayout(new FitLayout());
super.setModal(false);
super.setCollapsible(true);
super.setPlain(true);
}
use of com.extjs.gxt.ui.client.event.WidgetListener in project geo-platform by geosdi.
the class UserPropertiesWidget method setWidgetProperties.
@Override
protected void setWidgetProperties() {
super.setWidgetProperties();
super.setLayout(new FitLayout());
this.addWidgetListener(new WidgetListener() {
@Override
public void widgetAttached(ComponentEvent ce) {
super.widgetAttached(ce);
if (user != null) {
userPropertiesBinding.bindModel(user);
}
}
});
}
Aggregations