Examples of UnknownJIDStatus


Examples of nu.fw.jeti.jabber.UnknownJIDStatus

      if(server.indexOf("conference")>-1 ||
        server.indexOf("private")>-1 ||
        server.indexOf("groupchat")>-1)
      {//private messages from groupchat should have a window per resource
        chatWindow = getChatwindow(from,true);
        jidStatus = new UnknownJIDStatus(from,from.getResource());
      }
      else chatWindow = getChatwindow(from,Preferences.getBoolean("jeti","chatwindowPerResource",false));
      if(tabs!=null)
      {
        int index = tabs.indexOfComponent(chatWindow);
        if(index!=-1)
        {
          if(tabs.getSelectedIndex()!=index)
          {
            tabs.setBackgroundAt(index,Color.BLUE);
            tabs.setForegroundAt(index,Color.RED);
          }
          tabs.setToolTipTextAt(index,message.getBody());
        }
      }
      if (chatWindow == null)
      {
        if (jidStatus == nullchatWindow = startChat(new UnknownJIDStatus(from),message.getThread()); // ,"images",true,"unknown",e.getThread());
        else chatWindow = startChat(jidStatus, message.getThread());
//        chatWindow.setExtendedState(JFrame.ICONIFIED); //prevent focus stealing, does not work anymore for some stupid reason 
        //Thread.yield();
        //chatWindow.show();
        //chatWindow.setVisible(true);
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

  }
 
  public void startChat(JID jid)
  {
    if (jid==null) return;
    chatWindows.chat(new UnknownJIDStatus(jid));
  }
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

              String chatTO = getParameter("CHATTO");
              if(chatTO!=null && chatTO.length()>0)
                {
                  if(Boolean.valueOf(getParameter("SHOWCHATTOASMAIN")).booleanValue())
                  {
                    setContentPane(backend.getMain().createChatPanel(new UnknownJIDStatus(JID.jidFromString(chatTO))));
                    validate();
                  }
                  else backend.getMain().startChat(JID.jidFromString(chatTO));
              }
             
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

                        */

                        jidSubmenu.add(new JSeparator());
                    } // if connected
                   
                    if (js == null) js = new UnknownJIDStatus(j);
                    String status = js.getStatus();
                    if (status == null) status = "";
                    JMenuItem presenceMI = new JMenuItem(Presence.toLongShow(js.getShow()) + " - " + status);
                    presenceMI.setIcon(img);
                    jidSubmenu.add(presenceMI);
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

        // for all clusters
        Enumeration clusterEnum = clusterLabels.elements();
        while (clusterEnum.hasMoreElements()) {
            BSClusterLabel label = (BSClusterLabel) clusterEnum.nextElement();
            // sets presence and updates icon
            UnknownJIDStatus s= new UnknownJIDStatus(pi.getFrom());
            s.updatePresence(pi);
            label.setPresence(s);
        }
       
        // for jid labels for given jid
        //String str = BSPresenceBean.getJIDHashString(pi.getJID(), true);
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

        while(jids.hasMoreElements()) {
            JID j = (JID) jids.nextElement();
            JIDStatus pi = Roster.getJIDStatus(j);
            //String str = BSPresenceBean.getJIDHashString(j, true);
            if (pi == null) {
                pi = new UnknownJIDStatus(j);
            }
            //presences.put(str, pi);
            presences.put(j, pi);
        }
       
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

    public void clearPresences() {
        presences.clear();
        Enumeration jids = getJIDs();
        while(jids.hasMoreElements()) {
            JID j = (JID) jids.nextElement();
            JIDStatus pi = new UnknownJIDStatus(j);
             //String str = BSPresenceBean.getJIDHashString(j, false);
            //presences.put(str, pi);
            presences.put(j, pi);
        }
       
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

            final RosterMenuListener listener = (RosterMenuListener) entry.getValue();
            item.addActionListener(new java.awt.event.ActionListener()
            {
              public void actionPerformed(ActionEvent e)
              {
                listener.actionPerformed(new UnknownJIDStatus(a.getFullJID()) , null);
              }
            });
            actionMenu.add(item);
          }
          //TODO fix filetransfer with groupchat
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

    }
  }

  private void startChat(Actor actor)
  {
    JIDStatus js = new UnknownJIDStatus(actor.getCompleteJID(),actor.getNick());
    backend.getMain().startChatResource(js);
  }
View Full Code Here

Examples of nu.fw.jeti.jabber.UnknownJIDStatus

    System.out.println(queryText);
   
    if(jid!=null)
    {
      JIDStatus jidStatus = backend.getJIDStatus(jid);
      if(jidStatus==null)jidStatus = new UnknownJIDStatus(jid);
      if(queryText==null)
      {
        backend.getMain().chat(jidStatus);
      }
      else
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.