()
| 34 | } |
| 35 | |
| 36 | private void addJuickContactsBox() { |
| 37 | //#ifdef JUICK |
| 38 | if (sdata.roster.juickContacts.size() > 1) { |
| 39 | Vector juickContactsNames = new Vector(sdata.roster.juickContacts.size()); |
| 40 | for (Enumeration e = sdata.roster.juickContacts.elements(); e.hasMoreElements();) { |
| 41 | Contact c = (Contact) e.nextElement(); |
| 42 | juickContactsNames.addElement(c.jid.getBare()); |
| 43 | } |
| 44 | juickContactsBox = new DropChoiceBox("Main Juick-contact"); |
| 45 | juickContactsBox.items = juickContactsNames; |
| 46 | //if (!account.juickJID.equals("")) |
| 47 | if (sdata.roster.indexMainJuickContact > -1) |
| 48 | juickContactsBox.setSelectedIndex(sdata.roster.indexMainJuickContact); |
| 49 | else juickContactsBox.setSelectedIndex(0); |
| 50 | itemsList.addElement(juickContactsBox); |
| 51 | } |
| 52 | //#endif |
| 53 | } |
| 54 | |
| 55 | public void cmdOk() { |
| 56 | //#ifdef JUICK |
no test coverage detected