Interface NodeDialog.OnApplyNodeModifier

Enclosing interface:
NodeDialog
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface NodeDialog.OnApplyNodeModifier
Can be implemented and provided to the NodeDialog upon creation. Provides a method that is called when settings are applied. May optionally modify the node based on the difference between previous and updated model and view settings.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onApply(org.knime.core.node.workflow.NativeNodeContainer nnc, org.knime.core.node.NodeSettingsRO previousModelSettings, org.knime.core.node.NodeSettingsRO updatedModelSettings, org.knime.core.node.NodeSettingsRO previousViewSettings, org.knime.core.node.NodeSettingsRO updatedViewSettings)
    Called when the dialog is closed.
  • Method Details

    • onApply

      void onApply(org.knime.core.node.workflow.NativeNodeContainer nnc, org.knime.core.node.NodeSettingsRO previousModelSettings, org.knime.core.node.NodeSettingsRO updatedModelSettings, org.knime.core.node.NodeSettingsRO previousViewSettings, org.knime.core.node.NodeSettingsRO updatedViewSettings)
      Called when the dialog is closed. May optionally modify the node based on the difference difference between previous and updated model and view settings. Note that for any settings controlled via flow variables, the "updated" value is always equal to the "previous" value, i.e., settings are not updated if controlled via a flow variable.
      Parameters:
      nnc - the native node container which should undergo modifications based on provided settings
      previousModelSettings - the previous model settings, i.e., the model settings prior to the apply call
      updatedModelSettings - the final, updated model settings, i.e., the model settings after the apply call
      previousViewSettings - the previous view settings, i.e., the view settings prior to the apply call
      updatedViewSettings - the final, updated view settings, i.e., the view settings after the apply call