use of com.extjs.gxt.ui.client.widget.layout.MarginData 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));
}
Aggregations