1 | while (enumeration.hasMoreElements()) {↵ | | 1 | String key = (String) it.next();↵
|
|
| | | 2 | DynamicItemListPanel value = (DynamicItemListPanel) keys↵
|
| | | 3 | .get(key);↵
|
|
2 | TableColumn tc = (TableColumn) enumeration.nextElement();↵ | | 4 | ↵
|
3 | String name = (String) tc.getHeaderValue();↵ | | |
|
|
4 | XmlElement column = new XmlElement("column");↵ | | |
|
5 | column.addAttribute("name", nam↵ | | 5 | JLabel keyLabel = new JLabel("<html><b>" + key + "</b></html>");↵
|
|
| | | 6 | JLabel separator = new JLabel(":");↵
|
|
| | | 7 | // JButton trailingItem = new JButton("more...");↵
|
| | | 8 | // ↵
|
| | | 9 | // trailingItem = LinkButton.createLinkButton(trailingItem);↵
|
| | | 10 | // trailingItem.addActionListener(new ActionListener() {↵
|
| | | 11 | // public void actionPerformed(ActionEvent event) {↵
|
| | | 12 | // showAddressListDialog();↵
|
| | | 13 | // }↵
|
| | | 14 | //↵
|
| | | 15 | // });↵
|
| | | 16 | //↵
|
| | | 17 | // DynamicItemListPanel p = new DynamicItemListPanel(2,↵
|
6 | e);↵ | | 18 | // trailingItem, true);↵
|
|
7 | // save width↵ | | 19 | // ↵
|
8 | int size = tc.getWidth();↵ | | |
|
9 | column.addAttribute("width", Integer.toString(size));↵ | | |
|
|
10 | columns.addElement(column);↵ | | |
|
11 | } | | 20 | p.setOpaque(false);↵
|
| | | 21 | //↵
|
| | | 22 | // for (int i = 0; i < value.length; i++) {↵
|
| | | 23 | // ↵
|
| | | 24 | // p.addItem(value[i]);↵
|
| | | 25 | // }↵
|
|
| | | 26 | builder.append(keyLabel);↵
|
| | | 27 | builder.append(separator);↵
|
| | | 28 | builder.append(value);↵
|
|
| | | 29 | builder.appendRow(new RowSpec("top:pref:grow"));
|