MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / addJuickContactsBox

Method addJuickContactsBox

src/main/java/Client/JuickConfig.java:36–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

JuickConfigMethod · 0.95

Calls 5

elementsMethod · 0.80
addElementMethod · 0.80
getBareMethod · 0.80
setSelectedIndexMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected