Search in sources :

Example 6 with WidgetListener

use of com.extjs.gxt.ui.client.event.WidgetListener in project geo-platform by geosdi.

the class WFSGeocodingWidget method setPanelProperties.

@Override
public void setPanelProperties() {
    super.head.setText("Geocoding");
    super.setAnimCollapse(Boolean.FALSE);
    addWidgetListener(new WidgetListener() {

        @Override
        public void widgetResized(ComponentEvent ce) {
            if (getHeight() > 0)
                GeocodingHandlerManager.fireEvent(new UpdateGeocodingGridHeightEvent(getHeight() - 170));
        }
    });
}
Also used : WidgetListener(com.extjs.gxt.ui.client.event.WidgetListener) ComponentEvent(com.extjs.gxt.ui.client.event.ComponentEvent) UpdateGeocodingGridHeightEvent(org.geosdi.geoplatform.gui.client.puregwt.geocoding.event.UpdateGeocodingGridHeightEvent)

Aggregations

ComponentEvent (com.extjs.gxt.ui.client.event.ComponentEvent)6 WidgetListener (com.extjs.gxt.ui.client.event.WidgetListener)6 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)3 WindowEvent (com.extjs.gxt.ui.client.event.WindowEvent)1 WindowListener (com.extjs.gxt.ui.client.event.WindowListener)1 Margins (com.extjs.gxt.ui.client.util.Margins)1 ContentPanel (com.extjs.gxt.ui.client.widget.ContentPanel)1 Status (com.extjs.gxt.ui.client.widget.Status)1 BorderLayout (com.extjs.gxt.ui.client.widget.layout.BorderLayout)1 BorderLayoutData (com.extjs.gxt.ui.client.widget.layout.BorderLayoutData)1 FillToolItem (com.extjs.gxt.ui.client.widget.toolbar.FillToolItem)1 ToolBar (com.extjs.gxt.ui.client.widget.toolbar.ToolBar)1 UpdateGeocodingGridHeightEvent (org.geosdi.geoplatform.gui.client.puregwt.geocoding.event.UpdateGeocodingGridHeightEvent)1 ScaleChangeEvent (org.geosdi.geoplatform.gui.configuration.map.puregwt.event.ScaleChangeEvent)1