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
The event that is fired before removing a layer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Layerprivate final Collection<Layer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the layer that is about to be removed.booleanCheck if the layer that was removed is the last layer in the list.voidscheduleRemoval(Collection<? extends Layer> layers) Schedule the removal of other layers after this layer has been deleted.toString()Methods inherited from class org.openstreetmap.josm.gui.layer.LayerManager.LayerManagerEvent
getSource
-
Field Details
-
removedLayer
-
lastLayer
-
scheduleForRemoval
-
-
Constructor Details
-
LayerRemoveEvent
LayerRemoveEvent(LayerManager source, Layer removedLayer)
-
-
Method Details
-
getRemovedLayer
Gets the layer that is about to be removed.- Returns:
- The layer.
-
isLastLayer
Check if the layer that was removed is the last layer in the list.- Returns:
trueif this was the last layer.- Since:
- 10432
-
scheduleRemoval
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
-