Package org.openstreetmap.josm.gui.layer
Class LayerManager.LayerRemoveEvent
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.LayerManager.LayerManagerEvent
-
- org.openstreetmap.josm.gui.layer.LayerManager.LayerRemoveEvent
-
- Enclosing class:
- LayerManager
public static class LayerManager.LayerRemoveEvent extends LayerManager.LayerManagerEvent
The event that is fired before removing a layer.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
lastLayer
private Layer
removedLayer
private java.util.Collection<Layer>
scheduleForRemoval
-
Constructor Summary
Constructors Constructor Description LayerRemoveEvent(LayerManager source, Layer removedLayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Layer
getRemovedLayer()
Gets the layer that is about to be removed.boolean
isLastLayer()
Check if the layer that was removed is the last layer in the list.void
scheduleRemoval(java.util.Collection<? extends Layer> layers)
Schedule the removal of other layers after this layer has been deleted.java.lang.String
toString()
-
Methods inherited from class org.openstreetmap.josm.gui.layer.LayerManager.LayerManagerEvent
getSource
-
-
-
-
Field Detail
-
removedLayer
private final Layer removedLayer
-
lastLayer
private final boolean lastLayer
-
scheduleForRemoval
private final java.util.Collection<Layer> scheduleForRemoval
-
-
Constructor Detail
-
LayerRemoveEvent
LayerRemoveEvent(LayerManager source, Layer removedLayer)
-
-
Method Detail
-
getRemovedLayer
public Layer getRemovedLayer()
Gets the layer that is about to be removed.- Returns:
- The layer.
-
isLastLayer
public boolean isLastLayer()
Check if the layer that was removed is the last layer in the list.- Returns:
true
if this was the last layer.- Since:
- 10432
-
scheduleRemoval
public void scheduleRemoval(java.util.Collection<? extends Layer> layers)
Schedule the removal of other layers after this layer has been deleted.Duplicate removal requests are ignored.
- Parameters:
layers
- The layers to remove.- Since:
- 10507
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-