Search in sources :

Example 1 with WindowEvent

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

the class GenericFormWidget method initializeWindow.

private void initializeWindow() {
    initSize();
    setResizable(false);
    addWindowListener(new WindowListener() {

        @Override
        public void windowHide(WindowEvent we) {
            reset();
        }
    });
    setLayout(new FitLayout());
    setModal(true);
    setPlain(true);
}
Also used : WindowListener(com.extjs.gxt.ui.client.event.WindowListener) WindowEvent(com.extjs.gxt.ui.client.event.WindowEvent) FitLayout(com.extjs.gxt.ui.client.widget.layout.FitLayout)

Example 2 with WindowEvent

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

the class GeoPlatformWindow method initializeWindow.

private void initializeWindow() {
    this.initSize();
    addWindowListener(new WindowListener() {

        @Override
        public void windowHide(WindowEvent we) {
            reset();
        }
    });
    setWindowProperties();
}
Also used : WindowListener(com.extjs.gxt.ui.client.event.WindowListener) WindowEvent(com.extjs.gxt.ui.client.event.WindowEvent)

Example 3 with WindowEvent

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

the class LayersPropertiesWidget method setWindowProperties.

@Override
public void setWindowProperties() {
    setHeadingHtml(LayerModuleConstants.INSTANCE.LayersPropertiesWidget_headingText());
    setModal(true);
    setResizable(false);
    setLayout(new FlowLayout());
    setCollapsible(true);
    addWindowListener(new WindowListener() {

        @Override
        public void windowShow(WindowEvent we) {
            layersTabWidget.bind(model);
        }
    });
}
Also used : WindowListener(com.extjs.gxt.ui.client.event.WindowListener) FlowLayout(com.extjs.gxt.ui.client.widget.layout.FlowLayout) WindowEvent(com.extjs.gxt.ui.client.event.WindowEvent)

Example 4 with WindowEvent

use of com.extjs.gxt.ui.client.event.WindowEvent 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);
}
Also used : WidgetListener(com.extjs.gxt.ui.client.event.WidgetListener) WindowListener(com.extjs.gxt.ui.client.event.WindowListener) WindowEvent(com.extjs.gxt.ui.client.event.WindowEvent) ComponentEvent(com.extjs.gxt.ui.client.event.ComponentEvent) FitLayout(com.extjs.gxt.ui.client.widget.layout.FitLayout)

Example 5 with WindowEvent

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

the class UserOptionsWidget method setWindowProperties.

@Override
public void setWindowProperties() {
    super.setHeadingHtml(UserModuleConstants.INSTANCE.UserOptionsWidget_headingText());
    super.setResizable(Boolean.FALSE);
    super.setLayout(new BorderLayout());
    super.setModal(Boolean.TRUE);
    super.setCollapsible(Boolean.FALSE);
    super.setPlain(Boolean.TRUE);
    super.addListener(Events.Show, new Listener<WindowEvent>() {

        @Override
        public void handleEvent(WindowEvent be) {
            optionsMainPanel.createMembers();
        }
    });
}
Also used : BorderLayout(com.extjs.gxt.ui.client.widget.layout.BorderLayout) WindowEvent(com.extjs.gxt.ui.client.event.WindowEvent)

Aggregations

WindowEvent (com.extjs.gxt.ui.client.event.WindowEvent)7 WindowListener (com.extjs.gxt.ui.client.event.WindowListener)6 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)2 FlowLayout (com.extjs.gxt.ui.client.widget.layout.FlowLayout)2 ComponentEvent (com.extjs.gxt.ui.client.event.ComponentEvent)1 WidgetListener (com.extjs.gxt.ui.client.event.WidgetListener)1 BorderLayout (com.extjs.gxt.ui.client.widget.layout.BorderLayout)1