Changeset 8426 in josm for trunk/src/org/openstreetmap/josm/gui/io/UploadedObjectsSummaryPanel.java
- Timestamp:
- 2015-05-26T01:37:50+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/UploadedObjectsSummaryPanel.java
r8308 r8426 20 20 21 21 /** 22 * This panel displays a summary of the objects to upload. It is displayed in 23 * the upper part of the {@link UploadDialog}. 24 * 22 * This panel displays a summary of the objects to upload. It is displayed in the upper part of the {@link UploadDialog}. 23 * @since 2599 25 24 */ 26 25 public class UploadedObjectsSummaryPanel extends JPanel { … … 40 39 private JScrollPane spDelete; 41 40 41 /** 42 * Constructs a new {@code UploadedObjectsSummaryPanel}. 43 */ 44 public UploadedObjectsSummaryPanel() { 45 build(); 46 } 47 42 48 protected void build() { 43 49 setLayout(new GridBagLayout()); 44 50 OsmPrimitivRenderer renderer = new OsmPrimitivRenderer(); 45 // initialize the three lists for uploaded primitives, but don't add 46 // them to the dialog yet, see setUploadedPrimitives() 51 // initialize the three lists for uploaded primitives, but don't add them to the dialog yet, see setUploadedPrimitives() 47 52 // 48 53 lstAdd = new PrimitiveList(); … … 51 56 spAdd = new JScrollPane(lstAdd); 52 57 lblAdd = new JLabel(tr("Objects to add:")); 58 lblAdd.setLabelFor(lstAdd); 53 59 54 60 lstUpdate = new PrimitiveList(); … … 57 63 spUpdate = new JScrollPane(lstUpdate); 58 64 lblUpdate = new JLabel(tr("Objects to modify:")); 65 lblUpdate.setLabelFor(lstUpdate); 59 66 60 67 lstDelete = new PrimitiveList(); … … 63 70 spDelete = new JScrollPane(lstDelete); 64 71 lblDelete = new JLabel(tr("Objects to delete:")); 72 lblDelete.setLabelFor(lstDelete); 65 73 } 66 74 … … 121 129 } 122 130 123 public UploadedObjectsSummaryPanel() {124 build();125 }126 127 131 /** 128 132 * Replies the number of objects to upload … … 138 142 /** 139 143 * A simple list of OSM primitives. 140 *141 144 */ 142 145 static class PrimitiveList extends JList<OsmPrimitive> { 146 /** 147 * Constructs a new {@code PrimitiveList}. 148 */ 143 149 public PrimitiveList() { 144 150 super(new PrimitiveListModel()); … … 152 158 /** 153 159 * A list model for a list of OSM primitives. 154 *155 160 */ 156 161 static class PrimitiveListModel extends AbstractListModel<OsmPrimitive> { 157 162 private transient List<OsmPrimitive> primitives; 158 163 164 /** 165 * Constructs a new {@code PrimitiveListModel}. 166 */ 159 167 public PrimitiveListModel() { 160 168 primitives = new ArrayList<>();
Note:
See TracChangeset
for help on using the changeset viewer.