 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.pickmapsettings;
22 import java.util.Collection;
23 import java.util.concurrent.CopyOnWriteArrayList;
24 import org.jetbrains.annotations.NotNull;
36 private final Collection<PickmapSettingsListener>
listenerList =
new CopyOnWriteArrayList<>();
60 if (this.locked ==
locked) {
74 listener.lockedChanged(
locked);
void setLocked(final boolean locked)
Sets whether pickmaps are immutable.
Abstract base class for PickmapSettings implementations.
void fireLockedChanged()
Informs all registered listeners that the immutable state has changed.
Interface for event listeners that are interested in changes on {}.
final Collection< PickmapSettingsListener > listenerList
The MapViewSettingsListeners to inform of changes.
void addPickmapSettingsListener(@NotNull final PickmapSettingsListener listener)
Adds a PickmapSettingsListener to be notified about changes.
void removePickmapSettingsListener(@NotNull final PickmapSettingsListener listener)
Removes a PickmapSettingsListener to be notified about changes.
abstract boolean loadLocked()
Loads the default value for locked.
boolean locked
The immutable state.
boolean isLocked()
Returns whether pickmaps are immutable.
abstract void saveLocked(boolean locked)
Saves the locked value.
Container for settings that affect pickmaps.