Changeset 24940 in osm
- Timestamp:
- 2011-01-02T11:58:07+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/gui/IncompleteAddressesDialog.java
r24322 r24940 53 53 private AddressEditContainer container; 54 54 55 // Create action objects 55 56 private SelectAddressesInMapAction selectAction = new SelectAddressesInMapAction(); 56 57 private GuessAddressDataAction guessDataAction = new GuessAddressDataAction(); … … 58 59 private RemoveAddressTagsAction removeTagsAction = new RemoveAddressTagsAction(); 59 60 61 // Array containing the available actions 60 62 private AbstractAddressEditAction[] actions = new AbstractAddressEditAction[]{ 61 63 selectAction, … … 77 79 this.container = new AddressEditContainer(); 78 80 container.addChangedListener(this); 79 81 // Top-level panel 80 82 JPanel p = new JPanel(new BorderLayout()); 81 83 // Table containing address entities 82 84 IncompleteAddressesTableModel model = new IncompleteAddressesTableModel(container); 83 85 incompleteAddr = new JTable(model); … … 86 88 incompleteAddr.getSelectionModel().addListSelectionListener(this); 87 89 90 // Scroll pane hosting the table 88 91 JScrollPane sp = new JScrollPane(incompleteAddr); 89 92 p.add(sp, BorderLayout.CENTER); 90 93 this.add(p); 91 94 95 // Button panel containing the commands 92 96 JPanel buttonPanel = getButtonPanel(actions.length); 93 97 98 // Populate panel with actions 94 99 for (int i = 0; i < actions.length; i++) { 95 100 SideButton sb = new SideButton(actions[i]); … … 99 104 this.add(buttonPanel, BorderLayout.SOUTH); 100 105 106 // Link actions with address container 101 107 for (AbstractAddressEditAction action : actions) { 102 108 action.setContainer(container); … … 221 227 222 228 } 223 224 225 229 }
Note:
See TracChangeset
for help on using the changeset viewer.