Package nu.fw.jeti.jabber

Examples of nu.fw.jeti.jabber.JIDStatus


          parseJIDStatus(primaryJIDStatus.getJIDPrimaryStatus());
          if(primaryJIDStatus.hasMultiple())
          {
            for (Iterator i = primaryJIDStatus.getOtherJidStatussen(); i.hasNext(); )
            {
              JIDStatus j = (JIDStatus) i.next();
              parseJIDStatus(j);
            }
          }
        }
        else parseJIDStatus(jidStatus);
View Full Code Here


      {
        new VCardEdit(personal,business,homeTels,workTels,backend);
      }
      else
      {
        JIDStatus j = backend.getJIDStatus(jid);
        if(j!=null) nick = j.getNick();
        else nick = jid.toStringNoResource();
        new VCardDisplay(personal,business,homeTels,workTels,nick);
      }
    }
    else if (iq.getType().equals("error"))
View Full Code Here

          }
                  return;
                }
               
                String name = from.getUser();
                JIDStatus jidStatus = Roster.getJIDStatus(from);
                if(jidStatus!=null) name = jidStatus.getNick();
               
                
                Object[] options = { I18N.gettext("jeti.Decline") , I18N.gettext("jeti.Answer") };               
                Popups.showOptionDialog(MessageFormat.format(I18N.gettext("jingle.{0}_calls,_answer_call?"),name),
                    I18N.gettext("jingle.New Call"), JOptionPane.YES_NO_OPTION,
View Full Code Here

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

    }
    else
    {
      //if(jidStatus == null) return null; //save only persons in roster
      String name = null;
      JIDStatus jidStatus = Backend.getJIDStatus(to);
      if (jidStatus != null)
      {
        if(jidStatus.getType().equals("unknown") || jidStatus.getType().equals("jabber"))name = to.toStringNoResource();
        else name = to.getUser() + "." + jidStatus.getType();
      }
      else name = to.toStringNoResource();
     
      String file = Start.path + "logs" + File.separator + name + ".txt";
      try
View Full Code Here

      }
      if (leaf) { return (makeComponent((JIDStatus) value)); }
      if (value instanceof PrimaryJIDStatus)
      {
        PrimaryJIDStatus ps = (PrimaryJIDStatus) value;
        JIDStatus jidsStatus = ps.getJIDPrimaryStatus();
        if (ps.hasMultiple())
        {
          if (onlineTree) {
            if (ps.multipleJIDstatusOnline()) {
                            renderer.setForeground(new Color(0, 0, 190));
View Full Code Here

            }
          }
          else
          {
            JIDStatusGroup group = null;
            JIDStatus jidStatus = null;
            if (o instanceof PrimaryJIDStatus)
            {
              group = ((JIDStatusGroup) selPath.getPathComponent(selPath.getPathCount() - 2));
              jidStatus = ((PrimaryJIDStatus) o).getJIDPrimaryStatus();
            }
View Full Code Here

  {
    if (ev == null) return null;
    TreePath path = getPathForLocation(ev.getX(), ev.getY());
    if (path != null)
    {
      JIDStatus jidStatus = null;
      Object o = path.getLastPathComponent();
      if (o instanceof PrimaryJIDStatus)
      {
        jidStatus = ((PrimaryJIDStatus) o).getJIDPrimaryStatus();

      }
      else if (o instanceof JIDStatus) {
        jidStatus = ((JIDStatus) o);
      } else {
                return null;
            }
      Avatars avatars = getAvatar();
      if(avatars!=null) avatars.setToolTipJIDStatus(jidStatus);
      String statusMsg;
            if (jidStatus.getStatus() != null) {
                statusMsg =
                    I18N.gettext("main.main.statusmenu.Status_message")
                    + " " + jidStatus.getStatus() + "</p><p>";
            } else {
                statusMsg = "";
            }
                       
            String waitingStatus = jidStatus.getWaiting();
            if (jidStatus.getWaiting() != null) {
                waitingStatus =
                    "<p>" + I18N.gettext("main.main.roster.Waiting_Status")
                    + " " + jidStatus.getWaiting() + "</p>";
            } else {
                waitingStatus = "";
            }
      return "<HTML><P>"
                + I18N.gettext("main.main.roster.Status")
                + " " + Presence.toLongShow(jidStatus.getShow()) + "</p><p>"
                + statusMsg
                + "JID: " + jidStatus.getCompleteJID() + "</p><p>"
                + I18N.gettext("main.main.roster.Subscription")
                + " " + jidStatus.getSubscription() + "</p>"
                + waitingStatus + "</p></HTML>";
    }
    return null;
  }
View Full Code Here

      }
      if (leaf) { return (makeComponent((JIDStatus) value)); }
      if (value instanceof PrimaryJIDStatus)
      {
        PrimaryJIDStatus ps = (PrimaryJIDStatus) value;
        JIDStatus jidsStatus = ps.getJIDPrimaryStatus();
        if (ps.hasMultiple())
        {
          if (onlineTree)
          {
            if (ps.multipleJIDstatusOnline())
View Full Code Here

        // for all jid labels
        Enumeration allLabels = BSMapView.this.jidLabels.elements();
        while (allLabels.hasMoreElements()) {
            BSJIDLabelList labels = (BSJIDLabelList) allLabels.nextElement();
            JID jid = labels.getJID();
            JIDStatus j = Roster.getJIDStatus(jid);
            String nick=null;
            if(j!=null) nick = j.getNick();
            if (nick == null) nick = "?";
            labels.setNick(nick);
        }
    }
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.