Changeset 12372 in josm
- Timestamp:
- 2017-06-09T21:06:35+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/dialogs/changeset
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetListCellRenderer.java
r8509 r12372 14 14 import org.openstreetmap.josm.tools.ImageProvider; 15 15 16 /** 17 * This class renders the cells in a {@link ChangesetListModel}. 18 */ 16 19 public class ChangesetListCellRenderer extends JLabel implements ListCellRenderer<Changeset> { 17 20 -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetListModel.java
r11365 r12372 20 20 import org.openstreetmap.josm.data.osm.Storage; 21 21 22 /** 23 * This is the model that backs a list of changesets 24 */ 22 25 public class ChangesetListModel extends DefaultListModel<Changeset> implements ChangesetCacheListener { 23 26 private final transient List<Changeset> data = new ArrayList<>(); … … 25 28 private final DefaultListSelectionModel selectionModel; 26 29 30 /** 31 * Creates a new {@link ChangesetListModel} 32 * @param selectionModel The selection model to use for this list 33 */ 27 34 public ChangesetListModel(DefaultListSelectionModel selectionModel) { 28 35 this.selectionModel = selectionModel; 29 36 } 30 37 38 /** 39 * Gets the list of changesets that are currently selected 40 * @return The selected changesets 41 */ 31 42 public Set<Changeset> getSelectedChangesets() { 32 43 Set<Changeset> ret = new HashSet<>(); … … 39 50 } 40 51 52 /** 53 * Gets the IDs of the changesets that are selected 54 * @return The selected ids 55 */ 41 56 public Set<Integer> getSelectedChangesetIds() { 42 57 Set<Integer> ret = new HashSet<>(); … … 49 64 } 50 65 66 /** 67 * Sets the changesets to select 68 * @param changesets The changesets 69 */ 51 70 public void setSelectedChangesets(Collection<Changeset> changesets) { 52 71 selectionModel.setValueIsAdjusting(true); … … 86 105 } 87 106 107 /** 108 * Loads this list with the given changesets 109 * @param ids The ids of the changesets to display 110 */ 88 111 public void initFromChangesetIds(Collection<Integer> ids) { 89 112 if (ids == null || ids.isEmpty()) { … … 101 124 } 102 125 126 /** 127 * Loads this list with the given changesets 128 * @param primitives The primitives of which the changesets should be displayed 129 */ 103 130 public void initFromPrimitives(Collection<? extends OsmPrimitive> primitives) { 104 131 if (primitives == null) { … … 116 143 } 117 144 145 /** 146 * Loads this list with the given changesets 147 * @param ds The data set to get all changesets from 148 */ 118 149 public void initFromDataSet(DataSet ds) { 119 150 if (ds == null) { -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetsInActiveDataLayerListModel.java
r10332 r12372 23 23 public class ChangesetsInActiveDataLayerListModel extends ChangesetListModel implements DataSetListener, ActiveLayerChangeListener { 24 24 25 /** 26 * Creates a new {@link ChangesetsInActiveDataLayerListModel} 27 * @param selectionModel The selection model for the list 28 */ 25 29 public ChangesetsInActiveDataLayerListModel(DefaultListSelectionModel selectionModel) { 26 30 super(selectionModel);
Note:
See TracChangeset
for help on using the changeset viewer.