Package xnap.net

Examples of xnap.net.IChannel


    String nick = JOptionPane.showInputDialog
        (ServerPanel.this, "Nick", Plugin.tr("Chat with User"),
         JOptionPane.QUESTION_MESSAGE);
   
    if (nick != null) {
        IChannel c = s.getUser(nick).getPrivateChannel();
        ChatManager.getInstance().addChannel(c);
    }
      }
        }
View Full Code Here


    public void printServer(ChannelEvent e)
    {
    if (prefs.getAppendServerNameToChatUser()) {
     
      IChannel channel = (IChannel)e.getSource();
     
      print("@" + channel.getServer().getName(), "chatUser");
    }
    }
View Full Code Here

        //          }
        //          catch (IOException e) {
        //        println(e.getMessage(), "chatError");
        //          }
        //      }
        IChannel c = (IChannel)jcbServers.getSelectedItem();
        if (c != null) {
          prefs.setSendChatAwayMessage(false);
          try {
            c.sendMessage(s);
          }
          catch (IOException e) {
            println(e.getMessage(), "chatError");
          }
          jteInput.setText("");
View Full Code Here

    {
    }

    public synchronized void elementAdded(final ListEvent e)
    {
  final IChannel c = (IChannel)e.getElement();
  ChatSubPanel csp;
  if (ChatManager.getInstance().isAutoJoinChannel(c)) {
      csp = (ChatSubPanel)autoJoinPanelsByChannelName.get
          (c.getName().toLowerCase());
      if (csp != null) {
    csp.addChannel(c);
    panelsByChannel.put(c, csp);
    return;
      }
      else {
    csp = new ChatSubPanel(c);
    autoJoinPanelsByChannelName.put
        (c.getName().toLowerCase(), csp);
      }
  }
  else {
      csp = new ChatSubPanel(c);
  }
  panelsByChannel.put(c, csp);
 
  final ChatSubPanel tab = csp;
   Runnable runner = new Runnable()
       {
     public void run()
     {
        jtp.addTab(c.getName(), tab);
        if (!ChatManager.getInstance().isAutoJoinChannel(c)) {
      XNapFrame.setFocusTo("chat");
      if (prefs.getBlinkOnChannelJoin()) {
          XNapFrame.getInstance().chatBlink();
      }
View Full Code Here

   SwingUtilities.invokeLater(runner);
    }

    public synchronized void elementRemoved(final ListEvent e)
    {
  IChannel c = (IChannel)e.getElement();
  final ChatSubPanel csp
      = (ChatSubPanel)panelsByChannel.get(e.getElement());
  if (csp != null) {
      csp.removeChannel(c);
View Full Code Here

    //--- Method(s) ---
    public void actionPerformed(ActionEvent event)
    {
  for (int i = 0; i < users.length; i++) {
      IChannel channel = users[i].getPrivateChannel();
      if (channel != null) {
    ChatManager.getInstance().addChannel(channel);
      }
  }
    }
View Full Code Here

TOP

Related Classes of xnap.net.IChannel

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.