1 package rero.gui.windows; 2 3 import rero.ircfw.*; 4 import rero.client.*; 5 import javax.swing.*; 6 7 import rero.config.*; 8 9 public class QueryWindow extends StatusWindow 10 { 11 protected String user; 13 public QueryWindow(String _user) 14 { 15 user = _user; 16 } 17 18 public ImageIcon getImageIcon() 19 { 20 if (icon == null) 21 { 22 icon = new ImageIcon(ClientState.getClientState().getResource("query.gif")); 23 } 24 25 return icon; 26 } 27 28 public void installCapabilities(Capabilities c) 29 { 30 super.installCapabilities(c); 31 } 32 33 public String getWindowType() 34 { 35 if (user.charAt(0) == '=') 36 { 37 return "chat"; 38 } 39 40 return "query"; 41 } 42 43 public String getQuery() 44 { 45 return user; 46 } 47 48 public void setName(String name) 49 { 50 user = name; 51 super.setName(name); 52 } 53 54 public String getName() 55 { 56 return user; 57 } 58 59 public int compareWindowType() 60 { 61 return 3; 62 } 63 } 64 | Popular Tags |