source: josm/trunk/src/org/openstreetmap/josm/data/SelectionChangedListener.java@ 12017

Last change on this file since 12017 was 10600, checked in by Don-vip, 8 years ago

see #11390 - sonar - squid:S1609 - Java 8: @FunctionalInterface annotation should be used to flag Single Abstract Method interfaces

  • Property svn:eol-style set to native
File size: 952 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data;
3
4import java.util.Collection;
5
6import org.openstreetmap.josm.data.osm.OsmPrimitive;
7
8/**
9 * This is a listener for selection changes through the dataset's data. Whenever
10 * a selection of any data member changes, the dataSet gets informed about this
11 * and fires a selectionChanged event.
12 *
13 * Note that these events are not fired immediately but are inserted in the
14 * Swing event queue and packed together. So only one selection changed event
15 * is issued within a one message dispatch routine.
16 *
17 * @author imi
18 * @since 8 (creation)
19 * @since 10600 (functional interface)
20 */
21@FunctionalInterface
22public interface SelectionChangedListener {
23
24 /**
25 * Informs the listener that the selection in the dataset has changed.
26 * @param newSelection The new selection.
27 */
28 void selectionChanged(Collection<? extends OsmPrimitive> newSelection);
29}
Note: See TracBrowser for help on using the repository browser.