Examples of MUCBuddyStatus


Examples of com.valhalla.jbother.jabber.MUCBuddyStatus

  window.removeMe();
        buddy.setAffiliation(aff);
    }

    private MUCBuddyStatus getBuddy() {
        MUCBuddyStatus buddy = window.getBuddyStatus(window.getRoomName() + "/"
                + window.getChat().getNickname());
        return buddy;
    }
View Full Code Here

Examples of com.valhalla.jbother.jabber.MUCBuddyStatus

     * @param packet
     *            the message
     */
    private void initiatePMSession(final ChatRoomPanel window,
            final Message packet) {
        final MUCBuddyStatus buddy = window.getBuddyStatus(packet.getFrom());

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {

                if (buddy.getConversation() == null) {
                    ChatPanel conver = new ChatPanel(buddy);
                    conver.setVisible(true);
                    buddy.setConversation(conver);
                }

                String messageBody = packet.getBody();
                if (messageBody == null)
                    return;

                Date date = new Date();

                DelayInformation inf = (DelayInformation) packet.getExtension(
                        "x", "jabber:x:delay");
                if (inf != null && inf.getStamp() != null)
                    date = inf.getStamp();

                buddy.getConversation().receiveMessage("", "", messageBody, null,
                        date, false, false);
            }
        });
    }
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.