Package com.calclab.emite.im.events

Examples of com.calclab.emite.im.events.PairChatChangedEvent$Handler


  public final PairChat openChat(final XmppURI uri) {
    PairChat chat = getChat(uri);
    if (chat == null) {
      chat = new PairChat(this, eventBus, session, uri, session.getCurrentUserURI());
      chats.add(chat);
      eventBus.fireEventFromSource(new PairChatChangedEvent(ChangeType.created, chat), this);
    }
   
    chat.open();
    return chat;
  }
View Full Code Here


  }
 
  protected final void open() {
    if (!isReady() && session.isReady()) {
      status = ChatStatus.ready;
      eventBus.fireEventFromSource(new PairChatChangedEvent(ChangeType.opened, this), chatManager);
    }
  }
View Full Code Here

   */
  public final void close() {
    if (isReady()) {
      status = ChatStatus.locked;
      chatManager.closeChat(this);
      eventBus.fireEventFromSource(new PairChatChangedEvent(ChangeType.closed, this), chatManager);
    }
  }
View Full Code Here

TOP

Related Classes of com.calclab.emite.im.events.PairChatChangedEvent$Handler

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.