Search in sources :

Example 1 with Setting

use of com.bitwig.extension.controller.api.Setting 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());
}
Also used : Setting(com.bitwig.extension.controller.api.Setting) IActionSetting(de.mossgrabers.framework.configuration.IActionSetting) SettableEnumValue(com.bitwig.extension.controller.api.SettableEnumValue) Map(java.util.Map) IValueObserver(de.mossgrabers.framework.observer.IValueObserver) SettableEnumValue(com.bitwig.extension.controller.api.SettableEnumValue)

Aggregations

SettableEnumValue (com.bitwig.extension.controller.api.SettableEnumValue)1 Setting (com.bitwig.extension.controller.api.Setting)1 IActionSetting (de.mossgrabers.framework.configuration.IActionSetting)1 IValueObserver (de.mossgrabers.framework.observer.IValueObserver)1 Map (java.util.Map)1