Package com.google.gwt.event.shared

Examples of com.google.gwt.event.shared.SimpleEventBus


public class SampleEntryPoint implements EntryPoint {

  @Override
  public void onModuleLoad() {
    // Create the object graph - a real application would use Gin
    SimpleEventBus eventBus = new SimpleEventBus();

    SidebarPresenter sidebarPresenter = new SidebarPresenter(eventBus);
    Button sidebarView = new Button("Contacts");
    sidebarView.getElement().getStyle().setFloat(Style.Float.LEFT);
    sidebarView.getElement().getStyle().setMarginRight(20, Unit.PX);
View Full Code Here


   * @param handler the handler to call when the event goes off
   * @return a handler registration to remove the handler if needed
   */
  protected <H extends EventHandler> HandlerRegistration addHandler(GwtEvent.Type<H> type, H handler) {
    if (eventBus == null) {
      eventBus = new SimpleEventBus();
    }
    return eventBus.addHandler(type, handler);
  }
View Full Code Here

      });
    }
  }

  private SimpleEventBus ensureHandlers() {
    return eventBus == null ? eventBus = new SimpleEventBus() : eventBus;
  }
View Full Code Here

    }
    grid.getView().calculateVBar(false);
  }

  SimpleEventBus ensureHandlers() {
    return eventBus == null ? eventBus = new SimpleEventBus() : eventBus;
  }
View Full Code Here

    }
    startElement = null;
  }

  SimpleEventBus ensureHandlers() {
    return eventBus == null ? eventBus = new SimpleEventBus() : eventBus;
  }
View Full Code Here

   * Instantiates the eventBus if not already instantiated.
   *
   * @return the eventBus
   */
  SimpleEventBus ensureHandlers() {
    return eventBus == null ? eventBus = new SimpleEventBus() : eventBus;
  }
View Full Code Here

    activateLast();
    ensureHandlers().fireEvent(new UnregisterEvent<Widget>(widget));
  }

  SimpleEventBus ensureHandlers() {
    return eventBus == null ? eventBus = new SimpleEventBus() : eventBus;
  }
View Full Code Here

  protected boolean validateModel(M model) {
    return true;
  }

  SimpleEventBus ensureHandlers() {
    return eventBus == null ? eventBus = new SimpleEventBus() : eventBus;
  }
View Full Code Here

  private SimpleEventBus eventBus;

  @Override
  protected void setUp() throws Exception {
    this.view = new ReportsSuggestionViewMock();
    this.eventBus = new SimpleEventBus();
    this.reportService = createMock(ReportServiceAsync.class);
  }
View Full Code Here

  private HasClickHandlers editBtn;
  private HasClickHandlers createBtn;

  @Override
  protected void setUp() throws Exception {
    this.eventBus = new SimpleEventBus();
    this.module = "Contact";
    this.createService = createNiceMock(CreateServiceAsync.class);
    this.readService = createNiceMock(ReadServiceAsync.class);
    this.updateService = createNiceMock(UpdateServiceAsync.class);
    this.view = createNiceMock(DetailPresenter.Display.class);
View Full Code Here

TOP

Related Classes of com.google.gwt.event.shared.SimpleEventBus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.