Examples of GOIMChatObject


Examples of net.sphene.goim.rcp.ui.chat.GOIMChatObject

      return wrapper.window;
    }
    if(msg != null && msg.getBody() == null) return null;
    if(alreadyHandled) return null;
    if(chat == null)
      chat = new GOIMChatObject(account,jid,msg == null ? null : msg.getThread());
    wrapper = new ChatWrapper(jid,null,chat);
    chatWrappers.add(wrapper);
    wrapper.openGUI(msg, alreadyHandled);
    return wrapper.window;
  }
View Full Code Here

Examples of net.sphene.goim.rcp.ui.chat.GOIMChatObject

  public boolean handleMessage(GOIMAccount account, Message msg, boolean alreadyHandled) {
    if(msg != null && msg.getBody() != null) {
      if(chatIds.get(msg.getFrom()) == null)
        chatIds.put(msg.getFrom(),
            new GOIMChatObject(account,msg.getFrom(),msg.getThread()));
      RosterEntry entry = account.xmpp.getRoster().getEntry(StringUtils.parseBareAddress(msg.getFrom()));
      String nick = entry == null ? msg.getFrom() : (entry.getName() == null ? entry.getUser() : entry.getName());
      bridge.sendMessage(msg.getFrom(),
          nick,
          "<" + nick + "> " + msg.getBody());
View Full Code Here

Examples of net.sphene.goim.rcp.ui.chat.GOIMChatObject

        }
      } else {
        if(StringUtils.parseServer(jabberId).equals("|dxhook")) {
          gotInternalMessage(StringUtils.parseName(jabberId),msg);
        } else {
          GOIMChatObject chat = chatIds.get(jabberId);
          if(chat != null) {
            Message message = chat.createMessage();
            message.setBody(msg);
            chat.sendMessage(message);
          }
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.