Package com.valhalla.jbother.plugins.events

Examples of com.valhalla.jbother.plugins.events.MUCEvent


                }
            }
        }

        // fire MUCEvent for message received
        PluginChain.fireEvent(new MUCEvent(from,
                MUCEvent.EVENT_MESSAGE_RECEIVED, message, date));

        int tabCount = BuddyList.getInstance().getTabFrame().markTab(this);
        try {
            TabbedPanel tabPane = BuddyList.getInstance().getTabFrame()
View Full Code Here


                        }

                        message += " has entered the room";

                        window.serverNoticeMessage(message);
                        PluginChain.fireEvent(new MUCEvent(buddy.getUser(),
                                MUCEvent.EVENT_PARTICIPANT_JOINED, "",
                                new Date()));
                    } else if (nickChange != null) {
                        nickChange.setIsInRoom(false);
                        window.serverNoticeMessage(nickChange.getName()
                                + " is now known as " + buddy.getName());
                        window.removeBuddy(nickChange.getUser());
                    }

                    buddy.setIsInRoom(true);

                    nickChange = null;
                } else if (presence.getType() == Presence.Type.UNAVAILABLE) {
                    buddy.setIsInRoom(false);
                    window.getBuddyStatuses().remove(buddy);
                    String leaveMessage = buddy.getName()
                            + " has left the room";
                    PluginChain.fireEvent(new MUCEvent(buddy.getUser(),
                            MUCEvent.EVENT_PARTICIPANT_PARTED, "", new Date()));

                    if (presence.getStatus() != null
                            && !presence.getStatus().equals("")) {
                        leaveMessage += ": " + presence.getStatus();
View Full Code Here

TOP

Related Classes of com.valhalla.jbother.plugins.events.MUCEvent

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.