public abstract class AbstractPickmapSettings extends java.lang.Object implements PickmapSettings
PickmapSettings
implementations.Constructor and Description |
---|
AbstractPickmapSettings() |
Modifier and Type | Method and Description |
---|---|
void |
addPickmapSettingsListener(@NotNull PickmapSettingsListener listener)
Adds a
PickmapSettingsListener to be notified about changes. |
boolean |
isLocked()
Returns whether pickmaps are immutable.
|
protected abstract boolean |
loadLocked()
Loads the default value for
locked . |
void |
removePickmapSettingsListener(@NotNull PickmapSettingsListener listener)
Removes a
PickmapSettingsListener to be notified about changes. |
protected abstract void |
saveLocked(boolean locked)
Saves the
locked value. |
void |
setLocked(boolean locked)
Sets whether pickmaps are immutable.
|
public void addPickmapSettingsListener(@NotNull @NotNull PickmapSettingsListener listener)
PickmapSettings
PickmapSettingsListener
to be notified about changes.addPickmapSettingsListener
in interface PickmapSettings
listener
- the listener to addpublic void removePickmapSettingsListener(@NotNull @NotNull PickmapSettingsListener listener)
PickmapSettings
PickmapSettingsListener
to be notified about changes.removePickmapSettingsListener
in interface PickmapSettings
listener
- the listener to removepublic boolean isLocked()
PickmapSettings
isLocked
in interface PickmapSettings
public void setLocked(boolean locked)
PickmapSettings
setLocked
in interface PickmapSettings
locked
- whether pickmaps are immutableprotected abstract boolean loadLocked()
locked
.protected abstract void saveLocked(boolean locked)
locked
value.locked
- the locked value