Package voxo.client.views.components

Examples of voxo.client.views.components.CustomChatWindow


      getContactListHash().put(u.getUsername(), cc);
      getContactList().add(cc);

      // create new chatWindow
      if (!contactHash.containsKey(u.getUsername())) {
        CustomChatWindow cw = new CustomChatWindow(u, this);
        contactHash.put(u.getUsername(), cw);
        chatDesk.add((contactHash.get(u.getUsername())));
      }
    }
View Full Code Here


  @Override
  public void openChatEvent(User u) {
    // Si la fenetre du user existe pas, la creer et l.ajouter au desk
    if (!contactHash.containsKey(u.getUsername()) && u.getOnline()) {
      CustomChatWindow cw = new CustomChatWindow(u, this);
      contactHash.put(u.getUsername(), cw);
      chatDesk.add((contactHash.get(u.getUsername())));
      cw.setVisible(true);
    } else if(u.getOnline()){
      if (contactHash.get(u.getUsername()).isIcon()) {
        try {
          contactHash.get(u.getUsername()).setIcon(false);
        } catch (PropertyVetoException e) {
View Full Code Here

  // ****************************************

  private void newMessage(ChatPacket p) {

    //find the related user chat window
    CustomChatWindow chatWindow = contactHash.get(p.getUsername());

    //add the message to it
    chatWindow.addMessage(p);

    //show the window if invisible
    if (!chatWindow.isVisible()) {
      chatWindow.setVisible(true);
      chatWindow.setTitle("new message from " + p.getUsername());
    }
   
    //refresh the look
    chatWindow.revalidate();
  }
View Full Code Here

TOP

Related Classes of voxo.client.views.components.CustomChatWindow

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.