/* * Jeti, a Java Jabber client, Copyright (C) 2001 E.S. de Boer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * For questions, comments etc, * use the website at http://jeti.jabberstudio.org * or mail/IM me at jeti@jabber.org * * Created on 26-okt-2005 */ /* Classe Comentada - Retirado o pacote java plugins Date : 31/03/2009 package nu.fw.jeti.applet; import javax.swing.JMenu; import javax.swing.JPanel; import nu.fw.jeti.jabber.Backend; import nu.fw.jeti.jabber.JID; import nu.fw.jeti.jabber.elements.Message; import nu.fw.jeti.plugins.groupchat.GroupchatSignin; import nu.fw.jeti.plugins.groupchat.GroupchatWindow; import nu.fw.jeti.plugins.groupchat.Plugin; import nu.fw.jeti.plugins.groupchat.elements.XMUCUserInvite; public class LoadGroupChat { public static JPanel createGroupChatWindow(JID jid) { return Plugin.createGroupChatWindow(jid); } public static JMenu[] getMenu(JPanel gw) { return ((GroupchatWindow)gw).getMenu(); } public static void startGroupchat(JID jid,Backend backend) { Plugin.startGroupchat(jid,backend); } public static void signin(Backend backend, String server) { GroupchatSignin g = new GroupchatSignin(backend); g.setChatRoomServer(server); g.setVisible(true); } public static void invite(Backend backend, JID jid,JID roomJID) { backend.send(new Message(null,roomJID,new XMUCUserInvite(jid,null))); } } */