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

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


    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


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

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

    return ensureChosenHandlers().addHandler(
        ShowingDropDownEvent.getType(), handler);
  }

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

  private boolean paused;
  private boolean streamRestarted;
  private ConnectionSettings settings;

  public XmppConnectionTester() {
    super(new SimpleEventBus());
    sent = new ArrayList<XMLPacket>();
    received = new ArrayList<XMLPacket>();
  }
View Full Code Here

  private RoomChatManager manager;

  @Before
  public void beforeTests() {
    session = new XmppSessionTester(USER);
    manager = new RoomChatManagerImpl(new SimpleEventBus(), session, new RoomChatSelectionStrategy());
  }
View Full Code Here

      + "  </query>" + "</iq>"));

  @Before
  public void beforeTests() {
    session = new XmppSessionTester();
    manager = new DiscoveryManagerImpl(new SimpleEventBus(), session);
  }
View Full Code Here

  private XmppURI userURI;
  private XmppURI roomURI;

  @Before
  public void beforeTests() {
    eventBus = new SimpleEventBus();
    userURI = uri("user@domain/res");
    roomURI = uri("room@domain/nick");
    session.setLoggedIn(userURI);
    final RoomChatManagerImpl manager = new RoomChatManagerImpl(eventBus, session, new RoomChatSelectionStrategy());
    final ChatProperties properties = new ChatProperties(roomURI, userURI, null);
View Full Code Here

  private XmppSessionTester session;

  @Before
  public void aaaCreateManager() {
    session = new XmppSessionTester();
    avatarManager = new AvatarManager(new SimpleEventBus(), session);
  }
View Full Code Here

  private ChatStateHook chatStateHook;
  private XmppSessionTester session;

  @Before
  public void beforeTests() {
    final EventBus eventBus = new SimpleEventBus();
    session = new XmppSessionTester();
    chatManager = new PairChatManagerImpl(eventBus, session, new PairChatSelectionStrategy());
    session.setLoggedIn(MYSELF);
    final ChatStateManager stateManager = new ChatStateManager(eventBus, chatManager);
    chat = chatManager.open(OTHER);
View Full Code Here

  }

  @Before
  public void beforeTests() {
    session = new XmppSessionTester();
    roster = new XmppRosterImpl(new SimpleEventBus(), session);
  }
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.