Package nu.fw.jeti.jabber.elements

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


            {
                if(items==null)items = new LinkedList<DiscoItem>();
                try
                {
                    JID jid = JID.checkedJIDFromString(attr.getValue("jid"));
                    items.add(new DiscoItem(jid,attr.getValue("name"),attr.getValue("node"),attr.getValue("action")));
                } catch (InstantiationException e)
                {
                    Log.xmlParseException(e);
                }
            }
View Full Code Here


       
        cmbServer.setEditable(true);
//    load server list from servers.xml
    for(Iterator<DiscoItem> i = QueryServers.getServers().iterator();i.hasNext();)
    {
      DiscoItem item = i.next();
      cmbServer.addItem(item.getJID().getDomain());
    }
                
    label = new JLabel();
    I18N.setTextAndMnemonic("main.EditProfile.Username",label);
    label.setLabelFor(txtUser);
View Full Code Here

      StringBuffer text = new StringBuffer();
      if (browseResult.hasItems())
      {
        for (Iterator i = browseResult.getItems(); i.hasNext();)
      {
          DiscoItem  item = (DiscoItem) i.next();
        text.append(item.getName() + "  #  " + item.getJID() + " : " + item.getNode()+ "\n");
      }
      txtBrowseResult.setText(text.toString())
      }
      pack();
    }
View Full Code Here

        cmbServer.addItem("");
        java.util.List<DiscoItem> servers = QueryServers.getServers();
        if(servers != null){
      for(Iterator<DiscoItem> i = QueryServers.getServers().iterator();i.hasNext();)
      {
        DiscoItem item = i.next();
        cmbServer.addItem(item.getJID().getDomain());
      }
        }
       
    cmbServer.setAlignmentX((float) 0.0);
    cmbServer.setEditable(true);
View Full Code Here

             
          cmbServer.addItem("");
          cmbServer.addItem(backend.getMyJID().getDomain());
      for(Iterator i = QueryServers.getServers().iterator();i.hasNext();)
      {
        DiscoItem item = (DiscoItem)i.next();
        cmbServer.addItem(item.getJID().getDomain());
      }
      cmbServer.setSelectedItem(backend.getMyJID().getDomain());
         
      cmbServer.setPreferredSize(new Dimension(200, 21));
      cmbServer.addItemListener(new ItemListener() {
View Full Code Here

TOP

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

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.