Package org.knime.core.webui.node.dialog
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.
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 TypeMethodDescriptionvoidonApply(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 viewsettings. 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 settingspreviousModelSettings- the previous modelsettings, i.e., the model settings prior to the apply callupdatedModelSettings- the final, updated modelsettings, i.e., the model settings after the apply callpreviousViewSettings- the previous viewsettings, i.e., the view settings prior to the apply callupdatedViewSettings- the final, updated viewsettings, i.e., the view settings after the apply call
-