setViewPanel(rootPanel);
//events are fired deferred since they might need that ui components are already attached
fireEvents(events);
}
});
bus.addHandler(NotificationsVisibleEvent.TYPE, new NotificationsVisibleHandler() {
@Override
public void onEvent(NotificationsVisibleEvent event) {
view.toggleNotifications(event.isVisible());
}
});