behaviour with default settings of optional widgets
While implementing my own node with an
@OptionalWidgetsetting, I came across the following behavior which is probably not wanted? Instead of putting my own code here I first confirmed the behavior on the implementation of the ‘Row Sampler’ on KNIME 5.8 STS.
By default, the setting
Fix random seedis enabled and has a default value. Now I do the following:
change the value
apply the settings
disable this setting
enable this setting
Now, the random seed is set back to its default value instead of the one I applied. If I change the value again to what I chose before, the
Apply-Button becomes disabled (as the setting most likely is still set to my custom setting).
Please let me know, if this behavior is wanted and if not how to prevent it. Is there any way to retrieve the current setting from the
computeStatemethod of the DefaultValueProvider class?