Package com.google.web.bindery.event.shared

Examples of com.google.web.bindery.event.shared.SimpleEventBus


    return GWT.create(SimpleJsonRpcRequestFactory.class);
  }

  private SimpleJsonRpcRequestFactory createFactory(final String[] expectedPayloadRegexes) {
    SimpleJsonRpcRequestFactory req = createFactory();
    req.initialize(new SimpleEventBus(), new RequestTransport() {
      @Override
      public void send(String payload, TransportReceiver receiver) {
        stringMatchesRegexes(payload, expectedPayloadRegexes);
      }
    });
View Full Code Here


  /**
   * Create and initialize a new {@link SimpleRequestFactory}.
   */
  protected SimpleRequestFactory createFactory() {
    SimpleRequestFactory toReturn = GWT.create(SimpleRequestFactory.class);
    toReturn.initialize(new SimpleEventBus());
    return toReturn;
  }
View Full Code Here

*/
public class RequestFactoryJreTest extends RequestFactoryTest {
  private static final String TEST_SERVER_ADDRESS = System.getProperty("RequestFactory.testUrl");

  public static <T extends RequestFactory> T createInProcess(Class<T> clazz) {
    EventBus eventBus = new SimpleEventBus();
    T req = RequestFactorySource.create(clazz);
    if (TEST_SERVER_ADDRESS != null) {
      try {
        UrlRequestTransport transport = new UrlRequestTransport(new URL(TEST_SERVER_ADDRESS));
        req.initialize(eventBus, transport);
View Full Code Here

    });
  }

  protected Factory createChainedFactory() {
    Factory f = GWT.create(Factory.class);
    f.initialize(new SimpleEventBus());
    return f;
  }
View Full Code Here

  private final KeyedCounter<Type<?>> firedCounts = new KeyedCounter<Event.Type<?>>();
  private final KeyedCounter<TypeSourcePair> sourceCounts = new KeyedCounter<TypeSourcePair>();
  private final EventBus wrapped;

  public CountingEventBus() {
    this(new SimpleEventBus());
  }
View Full Code Here

    private final NavigationDelegate navigationDelegate;

    @Inject
    public InteractionCoordinator(Dialog dialog, StatementContext parentContext, NavigationDelegate navigationDelegate) {
        this.dialog = dialog;
        this.bus = new SimpleEventBus();
        this.navigationDelegate = navigationDelegate;
        this.dialogState = new DialogState(dialog, parentContext, this);

        // coordinator handles all events except presentation & system events
        bus.addHandler(InteractionEvent.TYPE, this);
View Full Code Here

    private static final ProjectListPlace DEFAULT_PLACE = ProjectListPlace.DEFAULT_PLACE;

    private PlaceController placeController;

    public PlaceManager() {
        EventBus placeEventBus = new SimpleEventBus();
        placeEventBus.addHandler(PlaceChangeEvent.TYPE, new PlaceChangeEvent.Handler() {
            @Override
            public void onPlaceChange(PlaceChangeEvent event) {
                // Fire it on to the real event bus
                EventBusManager.getManager().postEvent(event);
            }
View Full Code Here

  private FormsViewGwtImpl formsView;
  private CarouselView carouselView;
  private GroupedCellListGwtImpl groupedCellListView;

  public ClientFactoryImpl() {
    eventBus = new SimpleEventBus();

    placeController = new PlaceController(eventBus);

    homeViewImpl = new ShowCaseListViewGwtImpl();
  }
View Full Code Here

            H handler, Type<H> type) {
        return ensureChosenHandlers().addHandler(type, handler);
    }

    protected EventBus ensureChosenHandlers() {
        return chznHandlerManager == null ? chznHandlerManager = new SimpleEventBus()
                : chznHandlerManager;
    }
View Full Code Here

    private final NavigationDelegate navigationDelegate;

    @Inject
    public InteractionCoordinator(Dialog dialog, StatementContext parentContext, NavigationDelegate navigationDelegate) {
        this.dialog = dialog;
        this.bus = new SimpleEventBus();
        this.navigationDelegate = navigationDelegate;
        this.statementScope = new StatementScope(dialog, parentContext);

        // coordinator handles all events except presentation & system events
        bus.addHandler(InteractionEvent.TYPE, this);
View Full Code Here

TOP

Related Classes of com.google.web.bindery.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.