1 | SecurityItem item = model.getAccountItem().getPGPItem();↵ | | 1 | for (Iterator it = ↵
|
|
2 | // Set recipients from the recipients vector↵ | | |
|
3 | List recipientList = model.getRCPTVector(↵ | | 2 | keys.keySet().iterator(); it.hasNext();) {↵
|
| | | 3 | String key = (String) it.next();↵
|
|
| | | 4 | DynamicItemListPanel value = (DynamicItemListPanel) keys↵
|
| | | 5 | .get(key);↵
|
|
| | | 6 | JLabel keyLabel = new JLabel("<html><b>" + key + "</b></html>");↵
|
|
4 | );↵ | | 7 | JLabel separator = new JLabel(":");↵
|
|
5 | StringBuffer recipientBuf = new StringBuffer();↵ | | 8 | ↵
|
|
6 | for (Iterator it = recipientList.iterator(); it.hasNext();) {↵ | | |
|
7 | recipientBuf.append((String) it.next↵ | | 9 | // JButton trailingItem = new JButton("more...");↵
|
| | | 10 | // ↵
|
| | | 11 | // trailingItem = LinkButton.createLinkButton(trailingItem);↵
|
| | | 12 | // trailingItem.addActionListener(new ActionListener() {↵
|
| | | 13 | // public void actionPerformed(ActionEvent event) {↵
|
8 | ());↵ | | 14 | // showAddressListDialog();↵
|
9 | }↵ | | 15 | ↵
|
|
10 | item.setString("recipients", recipientBuf.toString());↵ | | |
|
|
11 | PGPMimePart signPart = new PGPMimePart(new MimeHeader("multipart",↵ | | |
|
12 | "encrypted"), item↵ | | 16 | // }↵
|
| | | 17 | //↵
|
| | | 18 | // });↵
|
| | | 19 | //↵
|
| | | 20 | // DynamicItemListPanel p = new DynamicItemListPanel(2,↵
|
| | | 21 | // trailingItem, true);↵
|
| | | 22 | // p.setOpaque(false);↵
|
| | | 23 | //↵
|
| | | 24 | // for (int i = 0; i < value.length; i++) {↵
|
| | | 25 | // ↵
|
| | | 26 | // p.addItem(value[i]);↵
|
| | | 27 | // }↵
|
|
13 | );↵ | | 28 | builder.append(keyLabel);↵
|
|
14 | signPart.addChild(root↵ | | 29 | builder.append(separator);↵
|
15 | );↵ | | 30 | builder.append(value);↵
|
|
16 | root = signPart; | | 31 | builder.appendRow(new RowSpec("top:pref:grow"));↵
|
|
| | | 32 | }
|