Package com.changestuffs.client.widget.chat

Examples of com.changestuffs.client.widget.chat.ChatPanel


    chats.get(talkingWith).addText(response.getFrom(), response.getMessage(), true);
  }

  @Override
  public void updateContact(ContactInfo contact) {
    ChatPanel chat = chats.get(contact.getEmail());
    chat.setOnline(contact.isOnline());
    int index = friends.getWidgetIndex(chat);
    friends.remove(index);
    friends.insert(chat, 0);
  }
View Full Code Here


  }

  @Override
  public void addContact(final ContactInfo contact) {
    if(!chats.containsKey(contact.getEmail())){
      final ChatPanel chatWindow = new ChatPanel(contact.getEmail());
      chatWindow.setUiHandlers(uiHandlers);
      chatWindow.setOnline(contact.isOnline());
      chats.put(contact.getEmail(), chatWindow);
      friends.insert(chatWindow, 0);
    }
  }
View Full Code Here

TOP

Related Classes of com.changestuffs.client.widget.chat.ChatPanel

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.