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