Changeset 16684 in josm for trunk


Ignore:
Timestamp:
2020-06-19T20:47:56+02:00 (4 years ago)
Author:
simon04
Message:

fix #19310 - DownloadDialog should have a method to add/remove listeners for changing download selections (patch by taylor.smock)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/DownloadDialog.java

    r15542 r16684  
    323323
    324324    /**
     325     * Add a listener to get events from the DownloadSelection window
     326     *
     327     * @param selection The DownloadSelection object to send the Bounds to
     328     * @return See {@link List#add}
     329     * @since 16684
     330     */
     331    public boolean addDownloadAreaListener(DownloadSelection selection) {
     332        return downloadSelections.add(selection);
     333    }
     334
     335    /**
     336     * Remove a listener that was getting events from the DownloadSelection window
     337     *
     338     * @param selection The DownloadSelection object to not send the Bounds to
     339     * @return See {@link List#remove}
     340     * @since 16684
     341     */
     342    public boolean removeDownloadAreaListener(DownloadSelection selection) {
     343        return downloadSelections.remove(selection);
     344    }
     345
     346    /**
    325347     * Adds a new download source to the download dialog if it is not added.
    326348     *
Note: See TracChangeset for help on using the changeset viewer.