Package nu.fw.jeti.jabber

Examples of nu.fw.jeti.jabber.JIDStatus


        backend.send(new InfoQuery(iq.getFrom(),iq.getID(),error));
        return false;
      }
      streamMethod = value;
           
      JIDStatus j = backend.getJIDStatus(iq.getFrom());
      if(j==null) {
                fromName = iq.getFrom().toString();
      } else {
                fromName = j.getNick();
            }
            fileName = sifi.getName();
            fileSize = sifi.getSize();
          progressBar.setMaximum((int)(fileSize/1024));
            description = sifi.getDescription();
View Full Code Here


    {
      public void run()
      {
        JID jid = log.getFrom();
        String name = null;
        JIDStatus jidStatus = Backend.getJIDStatus(jid);
        if (jidStatus != null)
        {
          if(jidStatus.getType().equals("unknown") || jidStatus.getType().equals("jabber"))name = jid.toStringNoResource();
          else name = jid.getUser() + "." + jidStatus.getType();
        }
        else name = jid.toStringNoResource();

        BufferedWriter writer = null;
        String file = Start.path + "newlogs" + File.separator + name + ".txt";
View Full Code Here

        final JComboBox jidComboBox = new JComboBox();
        jidComboBox.setEditable(true);
        final TreeMap jids = new TreeMap();
        Iterator rosterItems = Roster.getJIDStatussen();
        while (rosterItems.hasNext()) {
            JIDStatus ri = (JIDStatus) rosterItems.next();
            JID jid = ri.getJID();
            String label = ri.getNick() + " (" + jid.toString() + ")";
            jids.put(label, jid);
            //jidComboBox.addItem(label);
        }
        TreeMap tmpMap = (TreeMap) jids.clone();
        while (!tmpMap.isEmpty()) {
View Full Code Here

  {
    icon.setIcon(null);
    Avatars avatar = getAvatar();
    if(avatar!=null)
    {
      JIDStatus jidStatus = Backend.getJIDStatus(from);
      if(jidStatus!=null)
      {
        ImageIcon icon2  = jidStatus.getAvatar();
        if(icon2!=null)
        {
          if(icon2.getIconHeight()>64 || icon2.getIconWidth()>64)
          {
          icon2 = new ImageIcon(
View Full Code Here

  }
 
  private String getNick(JID jid)
  {
    String nick = jid.getUser();
    JIDStatus jidStatus = Backend.getJIDStatus(jid);
    if(jidStatus!=null) nick = jidStatus.getNick();
    return nick;
  }
View Full Code Here

            if (o instanceof ItemTag) {
                ItemTag i = (ItemTag) o;
                JID jid = i.getJID();
                if (jid == null) break;
                String nick = null;
                JIDStatus j = Roster.getJIDStatus(jid);
                if (j!= null) nick = j.getNick();
                if(nick == null) nick = "?";
                BSMapEditJIDLabel jidLabel = new BSMapEditJIDLabel(jid, nick, lurkerIcon, (ItemTag)o, topLevelLayer, editable);
                ((Vector)layersComponents.get(topLevelLayer)).add(jidLabel);
                jidLabel.setOpaque(false);
                if (lurkerIcon != null) {
View Full Code Here

          jid = JID.checkedJIDFromString(author);
        } catch (InstantiationException e1) {
          e1.printStackTrace();
        }
       
        JIDStatus jidStatus = Roster.getJIDStatus(jid);
        String nick;
        if (jidStatus == null) {
          // user is not in our contact list
          nick = author;
        } else {
          nick = jidStatus.getNick();
        }
        showPopupWithAuthor(nick, x, y);
      }
    }
View Full Code Here

    PrintWriter log = getLog(jid);
    String nick = jid.getUser();
    if (e.getType().equals("groupchat")) nick = jid.getResource();
    else
    {
      JIDStatus jidStatus = Backend.getJIDStatus(jid);
      if (jidStatus != null) nick = jidStatus.getNick();
    }
    if (log != null) log.println(dateFormat.format(date) + " " + nick + I18N.gettext(" says: ") + e.getBody());
  }
View Full Code Here

TOP

Related Classes of nu.fw.jeti.jabber.JIDStatus

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.