Changeset 10600 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2016-07-23T03:04:37+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 42 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r10212 r10600 437 437 * </code> 438 438 */ 439 @FunctionalInterface 439 440 public interface Listener { 440 441 … … 651 652 * @author Robert Harder 652 653 */ 654 @FunctionalInterface 653 655 public interface Fetcher { 654 656 /** -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r10432 r10600 719 719 /** 720 720 * Interface to notify listeners of the change of the mapMode. 721 */ 721 * @since 10600 (functional interface) 722 */ 723 @FunctionalInterface 722 724 public interface MapModeChangeListener { 723 725 /** -
trunk/src/org/openstreetmap/josm/gui/MapFrameListener.java
r8512 r10600 5 5 * Listener notified of MapFrame changes. 6 6 * @since 5957 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface MapFrameListener { 9 11 -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r10598 r10600 131 131 */ 132 132 @Deprecated 133 @FunctionalInterface 133 134 public interface EditLayerChangeListener { 134 135 … … 149 150 private boolean ignoreRepaint; 150 151 @Override 151 public void paintabl Invalidated(PaintableInvalidationEvent event) {152 public void paintableInvalidated(PaintableInvalidationEvent event) { 152 153 ignoreRepaint = true; 153 154 repaint(); … … 1318 1319 * This is the only safe method to find changes to the map view, since many components call MapView.repaint() directly. 1319 1320 * @author Michael Zangl 1320 */ 1321 * @since 10600 (functional interface) 1322 */ 1323 @FunctionalInterface 1321 1324 public interface RepaintListener { 1322 1325 /** -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r10486 r10600 74 74 /** 75 75 * Interface to notify listeners of the change of the zoom area. 76 */ 76 * @since 10600 (functional interface) 77 */ 78 @FunctionalInterface 77 79 public interface ZoomChangeListener { 78 80 /** -
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r10549 r10600 45 45 public class SlippyMapBBoxChooser extends JMapViewer implements BBoxChooser { 46 46 47 @FunctionalInterface 47 48 public interface TileSourceProvider { 48 49 List<TileSource> getTileSources(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r10453 r10600 190 190 191 191 /** 192 * Interface to provide a callback for enabled state update.193 */194 protected interface IEnabledStateUpdating {195 void updateEnabledState();196 }197 198 /**199 192 * Wires updater for enabled state to the events. Also updates dialog title if needed. 200 193 * @param updater updater -
trunk/src/org/openstreetmap/josm/gui/dialogs/IEnabledStateUpdating.java
r10583 r10600 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.gui.dialogs .layer;2 package org.openstreetmap.josm.gui.dialogs; 3 3 4 4 /** 5 5 * To be implemented by actions for which their enabled state depends on another model. 6 * @since 10600 (refactoring to new package, functional interface) 6 7 */ 8 @FunctionalInterface 7 9 public interface IEnabledStateUpdating { 8 10 -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r10467 r10600 52 52 import org.openstreetmap.josm.gui.dialogs.layer.DeleteLayerAction; 53 53 import org.openstreetmap.josm.gui.dialogs.layer.DuplicateAction; 54 import org.openstreetmap.josm.gui.dialogs.layer.IEnabledStateUpdating;55 54 import org.openstreetmap.josm.gui.dialogs.layer.LayerVisibilityAction; 56 55 import org.openstreetmap.josm.gui.dialogs.layer.MergeAction; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetAware.java
r9665 r10600 7 7 * Super interface of changeset-aware components. 8 8 * @since 9493 9 * @since 10600 (functional interface) 9 10 */ 11 @FunctionalInterface 10 12 public interface ChangesetAware { 11 13 -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/ActivateLayerAction.java
r10428 r10600 10 10 import javax.swing.AbstractAction; 11 11 12 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 12 13 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 13 14 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/DeleteLayerAction.java
r10436 r10600 12 12 13 13 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 14 15 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 15 16 import org.openstreetmap.josm.gui.help.HelpUtil; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/DuplicateAction.java
r10436 r10600 12 12 import org.openstreetmap.josm.Main; 13 13 import org.openstreetmap.josm.data.osm.DataSet; 14 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 14 15 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 15 16 import org.openstreetmap.josm.gui.help.HelpUtil; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java
r10547 r10600 25 25 import org.openstreetmap.josm.Main; 26 26 import org.openstreetmap.josm.gui.SideButton; 27 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 27 28 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 28 29 import org.openstreetmap.josm.gui.layer.ImageryLayer; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/MergeAction.java
r10428 r10600 12 12 13 13 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 14 15 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 15 16 import org.openstreetmap.josm.gui.help.HelpUtil; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/MoveDownAction.java
r10428 r10600 8 8 import javax.swing.AbstractAction; 9 9 10 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 10 11 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 11 12 import org.openstreetmap.josm.tools.ImageProvider; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/MoveUpAction.java
r10428 r10600 8 8 import javax.swing.AbstractAction; 9 9 10 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 10 11 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 11 12 import org.openstreetmap.josm.tools.ImageProvider; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/ShowHideLayerAction.java
r10144 r10600 13 13 import javax.swing.JMenuItem; 14 14 15 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 15 16 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 16 17 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/IMemberModelListener.java
r3083 r10600 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 3 4 @FunctionalInterface 4 5 public interface IMemberModelListener { 5 6 void makeMemberVisible(int index); -
trunk/src/org/openstreetmap/josm/gui/help/Helpful.java
r10137 r10600 5 5 * Anything on which we can provide help. 6 6 * @since 2252 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface Helpful { 9 11 -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractMapViewPaintable.java
r10461 r10600 91 91 public void invalidate() { 92 92 for (PaintableInvalidationListener l : invalidationListeners) { 93 l.paintabl Invalidated(new PaintableInvalidationEvent(this));93 l.paintableInvalidated(new PaintableInvalidationEvent(this)); 94 94 } 95 95 } -
trunk/src/org/openstreetmap/josm/gui/layer/ImageProcessor.java
r8632 r10600 10 10 * 11 11 * @author Nipel-Crumple 12 * @since 8625 (creation) 13 * @since 10600 (functional interface) 12 14 */ 15 @FunctionalInterface 13 16 public interface ImageProcessor { 14 17 -
trunk/src/org/openstreetmap/josm/gui/layer/Layer.java
r10588 r10600 70 70 /** 71 71 * Action related to several layers. 72 */ 72 * @since 10600 (functional interface) 73 */ 74 @FunctionalInterface 73 75 public interface MultiLayerAction { 74 76 -
trunk/src/org/openstreetmap/josm/gui/layer/MainLayerManager.java
r10508 r10600 24 24 * This listener listens to changes of the active or the edit layer. 25 25 * @author Michael Zangl 26 * 27 */ 26 * @since 10600 (functional interface) 27 */ 28 @FunctionalInterface 28 29 public interface ActiveLayerChangeListener { 29 30 /** -
trunk/src/org/openstreetmap/josm/gui/layer/MapViewPaintable.java
r10461 r10600 13 13 * <p> 14 14 * That class allows you to listen to paintable change events. Those methods may be moved here some time in the future. 15 * @since 608 (creation) 16 * @since 10600 (functional interface) 15 17 */ 18 @FunctionalInterface 16 19 public interface MapViewPaintable { 17 20 … … 51 54 * This is a listener that listens to {@link PaintableInvalidationEvent}s 52 55 * @author Michael Zangl 56 * @since 10600 (functional interface) 53 57 */ 58 @FunctionalInterface 54 59 interface PaintableInvalidationListener { 55 60 /** 56 61 * Called whenever a {@link PaintableInvalidationEvent} is fired. This might be called from any thread. 57 62 * @param event The event 63 * @ince 10600 (renamed) 58 64 */ 59 void paintabl Invalidated(PaintableInvalidationEvent event);65 void paintableInvalidated(PaintableInvalidationEvent event); 60 66 } 61 67 -
trunk/src/org/openstreetmap/josm/gui/layer/NativeScaleLayer.java
r10378 r10600 11 11 * Represents a layer that has native scales. 12 12 * @author András Kolesár 13 * @since 9818 (creation) 14 * @since 10600 (functional interface) 13 15 */ 16 @FunctionalInterface 14 17 public interface NativeScaleLayer { 15 18 -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r10467 r10600 239 239 } 240 240 241 @FunctionalInterface 241 242 public interface CommandQueueListener { 242 243 void commandChanged(int queueSize, int redoSize); … … 245 246 /** 246 247 * Listener called when a state of this layer has changed. 247 */ 248 * @since 10600 (functional interface) 249 */ 250 @FunctionalInterface 248 251 public interface LayerStateChangeListener { 249 252 /** -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/ImageryFilterSettings.java
r10598 r10600 110 110 * A listener that listens to filter changes 111 111 * @author Michael Zangl 112 * @since 10600 (functional interface) 112 113 */ 114 @FunctionalInterface 113 115 public interface FilterChangeListener { 114 116 /** -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileSourceDisplaySettings.java
r10571 r10600 317 317 * A listener that listens to changes to the {@link TileSourceDisplaySettings} object. 318 318 * @author Michael Zangl 319 */ 319 * @since 10600 (functional interface) 320 */ 321 @FunctionalInterface 320 322 public interface DisplaySettingsChangeListener { 321 323 /** -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerProducers.java
r9239 r10600 14 14 * 15 15 * @author Frederik Ramm 16 * @since 200 (creation) 17 * @since 10600 (functional interface) 16 18 */ 19 @FunctionalInterface 17 20 public interface MarkerProducers { 18 21 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Expression.java
r5705 r10600 9 9 * Can be evaluated in a certain {@link Environment}. Usually takes 10 10 * parameters, that are also Expressions and have to be evaluated first. 11 * @since 3848 (creation) 12 * @since 10600 (functional interface) 11 13 */ 14 @FunctionalInterface 12 15 public interface Expression { 13 16 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java
r10308 r10600 11 11 import org.openstreetmap.josm.gui.mappaint.StyleKeys; 12 12 13 @FunctionalInterface 13 14 public interface Instruction extends StyleKeys { 14 15 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Subpart.java
r8741 r10600 7 7 /** 8 8 * A subpart identifies different rendering layers (<code>::subpart</code> syntax). 9 * @since 8086 (creation) 10 * @since 10600 (functional interface) 9 11 */ 12 @FunctionalInterface 10 13 public interface Subpart { 11 14 String getId(Environment env); -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/BoxTextElement.java
r10375 r10600 34 34 /** 35 35 * Something that provides us with a {@link BoxProviderResult} 36 */ 36 * @since 10600 (functional interface) 37 */ 38 @FunctionalInterface 37 39 public interface BoxProvider { 38 40 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceSettingFactory.java
r3083 r10600 2 2 package org.openstreetmap.josm.gui.preferences; 3 3 4 @FunctionalInterface 4 5 public interface PreferenceSettingFactory { 5 6 6 7 PreferenceSetting createPreferenceSetting(); 7 8 8 } -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r10428 r10600 182 182 * Allows PreferenceSettings to do validation of entered values when ok was pressed. 183 183 * If data is invalid then event can return false to cancel closing of preferences dialog. 184 * 185 */ 184 * @since 10600 (functional interface) 185 */ 186 @FunctionalInterface 186 187 public interface ValidationListener { 187 188 /** … … 302 303 } 303 304 305 @FunctionalInterface 304 306 private interface TabIdentifier { 305 307 boolean identify(TabPreferenceSetting tps, Object param); -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceProvider.java
r8512 r10600 4 4 import java.util.Collection; 5 5 6 @FunctionalInterface 6 7 public interface SourceProvider { 7 8 -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddImageryPanel.java
r8846 r10600 35 35 /** 36 36 * A listener notified when the validation status of this panel change. 37 * @since 10600 (functional interface) 37 38 */ 39 @FunctionalInterface 38 40 public interface ContentValidationListener { 39 41 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferenceListener.java
r8512 r10600 5 5 * Listener called when proxy settings are updated. 6 6 * @since 6525 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface ProxyPreferenceListener { 9 11 -
trunk/src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java
r8929 r10600 32 32 public interface ProgressMonitor { 33 33 34 @FunctionalInterface 34 35 public interface CancelListener { 35 36 void operationCanceled(); -
trunk/src/org/openstreetmap/josm/gui/util/ModifierListener.java
r8512 r10600 5 5 * Listener called when pressed modifier keys change is detected 6 6 * @since 7217 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface ModifierListener { 9 11 void modifiersChanged(int modifiers); -
trunk/src/org/openstreetmap/josm/gui/widgets/HistoryChangedListener.java
r8512 r10600 4 4 import java.util.List; 5 5 6 @FunctionalInterface 6 7 public interface HistoryChangedListener { 7 8 void historyChanged(List<String> history); -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitPane.java
r10378 r10600 144 144 * @see #setDividerPainter 145 145 */ 146 @FunctionalInterface 146 147 public interface DividerPainter { 147 148 /**
Note:
See TracChangeset
for help on using the changeset viewer.