source: josm/trunk/src/org/openstreetmap/josm/spi/preferences/PreferenceChangeEvent.java @ 12881

Last change on this file since 12881 was 12881, checked in by bastiK, 13 months ago

see #15229 - move remaining classes to spi.preferences package, to make it self-contained

  • extract event listener classes from Preferences (duplicated, for smooth transition)
  • move *Setting classes
File size: 588 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.spi.preferences;
3
4/**
5 * Event triggered when a preference entry value changes.
6 * @since xxx
7 */
8public interface PreferenceChangeEvent {
9
10    /**
11     * Returns the preference key.
12     * @return the preference key
13     */
14    String getKey();
15
16    /**
17     * Returns the old preference value.
18     * @return the old preference value
19     */
20    Setting<?> getOldValue();
21
22    /**
23     * Returns the new preference value.
24     * @return the new preference value
25     */
26    Setting<?> getNewValue();
27   
28}
Note: See TracBrowser for help on using the repository browser.