1 | /* |
---|
2 | * Jeti, a Java Jabber client, Copyright (C) 2001 E.S. de Boer |
---|
3 | * |
---|
4 | * This program is free software; you can redistribute it and/or modify |
---|
5 | * it under the terms of the GNU General Public License as published by |
---|
6 | * the Free Software Foundation; either version 2 of the License, or |
---|
7 | * (at your option) any later version. |
---|
8 | * |
---|
9 | * This program is distributed in the hope that it will be useful, |
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | * GNU General Public License for more details. |
---|
13 | * |
---|
14 | * You should have received a copy of the GNU General Public License |
---|
15 | * along with this program; if not, write to the Free Software |
---|
16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
17 | * |
---|
18 | * For questions, comments etc, |
---|
19 | * use the website at http://jeti.jabberstudio.org |
---|
20 | * or mail/IM me at jeti@jabber.org |
---|
21 | * |
---|
22 | * Created on 26-okt-2005 |
---|
23 | */ |
---|
24 | |
---|
25 | |
---|
26 | |
---|
27 | /* |
---|
28 | Classe Comentada - Retirado o pacote java plugins |
---|
29 | Date : 31/03/2009 |
---|
30 | |
---|
31 | |
---|
32 | package nu.fw.jeti.applet; |
---|
33 | |
---|
34 | import javax.swing.JMenu; |
---|
35 | import javax.swing.JPanel; |
---|
36 | |
---|
37 | import nu.fw.jeti.jabber.Backend; |
---|
38 | import nu.fw.jeti.jabber.JID; |
---|
39 | import nu.fw.jeti.jabber.elements.Message; |
---|
40 | |
---|
41 | import nu.fw.jeti.plugins.groupchat.GroupchatSignin; |
---|
42 | import nu.fw.jeti.plugins.groupchat.GroupchatWindow; |
---|
43 | import nu.fw.jeti.plugins.groupchat.Plugin; |
---|
44 | import nu.fw.jeti.plugins.groupchat.elements.XMUCUserInvite; |
---|
45 | |
---|
46 | public class LoadGroupChat |
---|
47 | { |
---|
48 | |
---|
49 | public static JPanel createGroupChatWindow(JID jid) |
---|
50 | { |
---|
51 | return Plugin.createGroupChatWindow(jid); |
---|
52 | } |
---|
53 | |
---|
54 | public static JMenu[] getMenu(JPanel gw) |
---|
55 | { |
---|
56 | return ((GroupchatWindow)gw).getMenu(); |
---|
57 | } |
---|
58 | |
---|
59 | public static void startGroupchat(JID jid,Backend backend) |
---|
60 | { |
---|
61 | Plugin.startGroupchat(jid,backend); |
---|
62 | } |
---|
63 | |
---|
64 | public static void signin(Backend backend, String server) |
---|
65 | { |
---|
66 | GroupchatSignin g = new GroupchatSignin(backend); |
---|
67 | g.setChatRoomServer(server); |
---|
68 | g.setVisible(true); |
---|
69 | } |
---|
70 | |
---|
71 | public static void invite(Backend backend, JID jid,JID roomJID) |
---|
72 | { |
---|
73 | backend.send(new Message(null,roomJID,new XMUCUserInvite(jid,null))); |
---|
74 | } |
---|
75 | |
---|
76 | |
---|
77 | } |
---|
78 | */ |
---|