@Override public void stop() { EventBus.getInstance().removeHandler(AbstractPageEvent.TYPE, this); if (app != null) app.stop(); }
@UiHandler("publish") void publish(ClickEvent event) { // send event to apps EventBus.getInstance() .fireEvent(new AppEvent(this, StatusEvents.POST.name(), status.getText())); }
public PageContent() { super(); Event.addNativePreviewHandler(this); EventBus.getInstance().addHandler(AbstractPageEvent.TYPE, this); }