use of de.mossgrabers.framework.observer.IValueObserver in project DrivenByMoss by git-moss.
the class ActionSettingImpl method addValueObserver.
/**
* {@inheritDoc}
*/
@Override
public void addValueObserver(final IValueObserver<String> observer) {
this.observer = observer;
this.categorySetting.addValueObserver(value -> this.notifyOberserver());
for (final SettableEnumValue setting : this.categoryActionsSettings.values()) setting.addValueObserver(value -> this.notifyOberserver());
// Directly fire the current value
observer.update(this.get());
}
Aggregations