Package nu.fw.jeti.jabber.elements

Examples of nu.fw.jeti.jabber.elements.DiscoveryItem


      DefaultListModel model = (DefaultListModel) jList1.getModel();
      services.clear();
      model.clear();
      for(Iterator i = item.getItems();i.hasNext();)
      {
        DiscoveryItem di = (DiscoveryItem)i.next();
        String name = di.getName();
        if(name==null) name= di.getJID().toStringNoResource();
        //put in services so errors do not prevent register
        services.put(name,di.getJID());
        model.addElement(name);
        //numberOfServices++;
        backend.getInfo(di.getJID(),this);
      }
    }
    pack();
    setLocationRelativeTo(null);
  }
View Full Code Here


      {//cache disco items for this server
        if (item.hasItems())
        {
          for(Iterator<? extends XMLData> i = item.getItems();i.hasNext();)
          {
            DiscoveryItem di = (DiscoveryItem)i.next();
            backend.getInfo(di.getJID(),null);
          }
        }
      }
      public void discoveryInfoResult(JID jid, DiscoveryInfo info) {}
    });
View Full Code Here

    {
      numberOfServices=item.getSize();
      services.clear();
      for(Iterator i = item.getItems();i.hasNext();)
      {
        DiscoveryItem di = (DiscoveryItem)i.next();
        String name = di.getName();
        if(name==null) name= di.getJID().toStringNoResource();
        //numberOfServices++;
        backend.getInfo(di.getJID(),this);
      }
    }
  }
View Full Code Here

   
      public void discoveryItemResult(JID jid, DiscoveryItem item){
        boolean available = false;
        if (item.hasItems()){
          for(Iterator i = item.getItems();i.hasNext();){
            DiscoveryItem di = (DiscoveryItem)i.next();
            if (di.getJID().getDomain().startsWith("rtpbridge.")) {
                        available = true;
                        break;
                    }
          }
        }
View Full Code Here

      if (browseResult.hasItems())
      {
        ArrayList list = new ArrayList();
        for (Iterator i = browseResult.getItems(); i.hasNext();)
        {
          DiscoveryItem item = (DiscoveryItem) i.next();
          list.add(new Room(item.getName(),item.getJID()));
        }
        Collections.sort(list);
        for (Iterator i = list.iterator(); i.hasNext();)
        {
          model.addElement(i.next());
View Full Code Here

    {
      if (browseResult.hasItems())
      {
        for (Iterator i = browseResult.getItems(); i.hasNext();)
        {
          DiscoveryItem item = (DiscoveryItem) i.next();
          backend.getInfo(item.getJID(), this);
        }
      }
    }
View Full Code Here

TOP

Related Classes of nu.fw.jeti.jabber.elements.DiscoveryItem

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.