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));
}
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));
}
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;
}
});
}
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();
}
});
}
}
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));
}
Aggregations