KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > zirc > threads > RemoveUserInChanThread


1 package zirc.threads ;
2
3 import zirc.base.* ;
4 import zirc.gui.* ;
5
6
7 //zIrc, irc client.
8
// Copyright (C) 2004 CoolBytes(Stephane claret, Andre Aymon, Alban Zumofen) coolbytes@hotmail.com
9
//
10
// This program is free software; you can redistribute it and/or
11
// modify it under the terms of the GNU General Public License
12
// as published by the Free Software Foundation; either version 2
13
// of the License, or (at your option) any later version.
14
//
15
// This program is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
// GNU General Public License for more details.
19

20 /**
21  * <p>Title: RemoveUserInChanThread</p>
22  * <p>Description: thread qui supprime un user de la liste du chan</p>
23  * <p>Copyright: Copyright (c) 2004</p>
24  * <p>Company: CoolBytes(Stephane Claret, Andre Aymon, Alban Zumofen) coolbytes@hotmail.com</p>
25  * @version 1.0
26  */

27
28 public class RemoveUserInChanThread extends PseudoThread
29 {
30   private ChatFrame chatFrame ;
31   private String JavaDoc user ;
32
33   /**
34    * RemoveUserInChanThread
35    * constructeur par parametres
36    *
37    * @param _chatFrame ChatFrame
38    * @param _user String
39    */

40   public RemoveUserInChanThread(ChatFrame _chatFrame, String JavaDoc _user)
41   {
42     chatFrame = _chatFrame ;
43     user = _user ;
44   }
45
46   /**
47    * run
48    * retire le user qui s'est deconnecte du chan ou du serveur
49    */

50   public void go()
51  {
52
53    chatFrame.getListModel().removeElement(new ChanUser(user, ChanUser.NORM) );
54    isFinished = true ;
55  }
56
57
58
59 }
60
Popular Tags