Search in sources :

Example 1 with BaseEvent

use of com.extjs.gxt.ui.client.event.BaseEvent in project activityinfo by bedatadriven.

the class NewLayerWizard method onIndicatorsChanged.

private void onIndicatorsChanged() {
    adminLevelPage.setIndicators(indicatorPage.getSelectedIds());
    fireEvent(Events.Change, new BaseEvent(Events.Change));
}
Also used : BaseEvent(com.extjs.gxt.ui.client.event.BaseEvent)

Example 2 with BaseEvent

use of com.extjs.gxt.ui.client.event.BaseEvent in project activityinfo by bedatadriven.

the class ChartOFCView method createChart.

private void createChart() {
    chart = new Chart(GWT.getModuleBaseURL() + "/gxt231/chart/open-flash-chart.swf");
    chart.setBorders(false);
    chart.setChartModel(chartModel);
    if (!chart.isLoaded()) {
        this.el().mask(I18N.CONSTANTS.loading());
        chart.addListener(Events.Ready, new Listener<BaseEvent>() {

            @Override
            public void handleEvent(BaseEvent be) {
                chart.removeListener(Events.Ready, this);
                ChartOFCView.this.el().unmask();
                ChartOFCView.this.chart.repaint();
            }
        });
    }
    add(chart, new MarginData(20));
}
Also used : MarginData(com.extjs.gxt.ui.client.widget.layout.MarginData) BaseEvent(com.extjs.gxt.ui.client.event.BaseEvent) PieChart(com.extjs.gxt.charts.client.model.charts.PieChart) Chart(com.extjs.gxt.charts.client.Chart) LineChart(com.extjs.gxt.charts.client.model.charts.LineChart) FilledBarChart(com.extjs.gxt.charts.client.model.charts.FilledBarChart)

Example 3 with BaseEvent

use of com.extjs.gxt.ui.client.event.BaseEvent in project activityinfo by bedatadriven.

the class DrillDownEditor method createDialog.

private void createDialog() {
    proxy = new DrillDownProxy(dispatcher);
    store = new ListStore<>(new BaseListLoader(proxy));
    grid = new Grid<>(store, buildColumnModel());
    grid.setLoadMask(true);
    dialog = new Dialog();
    dialog.setHeadingText(I18N.CONSTANTS.sites());
    dialog.setButtons(Dialog.CLOSE);
    dialog.setLayout(new FitLayout());
    dialog.setSize(WIDTH, HEIGHT);
    dialog.add(grid);
    dialog.addListener(Events.Move, new Listener<BaseEvent>() {

        @Override
        public void handleEvent(BaseEvent baseEvent) {
            left = -1;
            top = -1;
        }
    });
}
Also used : Dialog(com.extjs.gxt.ui.client.widget.Dialog) BaseEvent(com.extjs.gxt.ui.client.event.BaseEvent) BaseListLoader(com.extjs.gxt.ui.client.data.BaseListLoader) FitLayout(com.extjs.gxt.ui.client.widget.layout.FitLayout)

Example 4 with BaseEvent

use of com.extjs.gxt.ui.client.event.BaseEvent in project activityinfo by bedatadriven.

the class MapReportView method addContent.

private void addContent() {
    if (map == null) {
        MapOptions options = new MapOptions();
        options.setZoom(element.getContent().getZoomLevel());
        options.setCenter(LeafletUtil.to(element.getContent().getCenter()));
        options.setProperty("zoomControl", false);
        options.setProperty("attributionControl", false);
        map = new LeafletMap(options);
        add(map);
        layout();
    }
    if (map.isRendered()) {
        syncContent();
    } else {
        map.addListener(Events.Render, new Listener<BaseEvent>() {

            @Override
            public void handleEvent(BaseEvent be) {
                syncContent();
            }
        });
    }
}
Also used : LeafletMap(org.activityinfo.ui.client.component.report.editor.map.LeafletMap) MapOptions(org.discotools.gwt.leaflet.client.map.MapOptions) BaseEvent(com.extjs.gxt.ui.client.event.BaseEvent)

Example 5 with BaseEvent

use of com.extjs.gxt.ui.client.event.BaseEvent in project activityinfo by bedatadriven.

the class NewLocationPresenter method setBounds.

public void setBounds(Extents bounds) {
    this.bounds = bounds;
    if (!bounds.contains(latLng)) {
        latLng = bounds.center();
        provisional = true;
        fireEvent(POSITION_CHANGED, new BaseEvent(POSITION_CHANGED));
    }
    fireEvent(BOUNDS_CHANGED, new BaseEvent(BOUNDS_CHANGED));
}
Also used : BaseEvent(com.extjs.gxt.ui.client.event.BaseEvent)

Aggregations

BaseEvent (com.extjs.gxt.ui.client.event.BaseEvent)9 Radio (com.extjs.gxt.ui.client.widget.form.Radio)2 RadioGroup (com.extjs.gxt.ui.client.widget.form.RadioGroup)2 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)2 Chart (com.extjs.gxt.charts.client.Chart)1 FilledBarChart (com.extjs.gxt.charts.client.model.charts.FilledBarChart)1 LineChart (com.extjs.gxt.charts.client.model.charts.LineChart)1 PieChart (com.extjs.gxt.charts.client.model.charts.PieChart)1 BaseListLoader (com.extjs.gxt.ui.client.data.BaseListLoader)1 Dialog (com.extjs.gxt.ui.client.widget.Dialog)1 FormPanel (com.extjs.gxt.ui.client.widget.form.FormPanel)1 AbsoluteData (com.extjs.gxt.ui.client.widget.layout.AbsoluteData)1 MarginData (com.extjs.gxt.ui.client.widget.layout.MarginData)1 AdminLevelDTO (org.activityinfo.legacy.shared.model.AdminLevelDTO)1 MapLayer (org.activityinfo.legacy.shared.reports.model.layers.MapLayer)1 LeafletMap (org.activityinfo.ui.client.component.report.editor.map.LeafletMap)1 LayerOptionsPanel (org.activityinfo.ui.client.component.report.editor.map.layerOptions.LayerOptionsPanel)1 MapOptions (org.discotools.gwt.leaflet.client.map.MapOptions)1