@Override public void go(final HasWidgets container) { this.container = container; eventBus.fireEvent( new StatusChangedEvent(StatusChangedEvent.StatusType.ACTION, "Incarca statistici...")); service.getAllResults( courseId, new AsyncCallback<StudentInfo[]>() { @Override public void onFailure(Throwable caught) { GWT.log("StatisticsPresenter.getAllResults()", caught); } @Override public void onSuccess(StudentInfo[] result) { container.clear(); studentsInfo = result; widget.displayInfo(username, assignments, result); container.add((com.google.gwt.user.client.ui.Widget) widget); eventBus.fireEvent(new StatusChangedEvent(StatusChangedEvent.StatusType.RESET, null)); } }); }