Package org.knime.core.webui.node.dialog
Class SubNodeContainerDialogFactory
java.lang.Object
org.knime.core.webui.node.dialog.SubNodeContainerDialogFactory
- All Implemented Interfaces:
NodeDialogFactory
The SubNodeContainerDialogFactory creates a
NodeDialog for all the configuration nodes inside a
SubNodeContainer by parsing the DialogNodeRepresentations of those nodes and converting those to
jsonforms which is parsed by the NodeDialog page.- Author:
- Carsten Haubold, KNIME GmbH, Konstanz, Germany
-
Constructor Summary
ConstructorsConstructorDescriptionSubNodeContainerDialogFactory(org.knime.core.node.workflow.SubNodeContainer snc) Initialize a SubNodeContainerDialogFactory with theSubNodeContainerfor which the dialog should be constructed. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new node dialog instance.booleanstatic boolean
-
Constructor Details
-
SubNodeContainerDialogFactory
public SubNodeContainerDialogFactory(org.knime.core.node.workflow.SubNodeContainer snc) Initialize a SubNodeContainerDialogFactory with theSubNodeContainerfor which the dialog should be constructed.- Parameters:
snc- The SubNodeContainer for which the dialog will be built
-
-
Method Details
-
isSubNodeContainerNodeDialogEnabled
public static boolean isSubNodeContainerNodeDialogEnabled()- Returns:
- true if JS-based
SubNodeContainerNodeDialogs should be used
-
hasNodeDialog
public boolean hasNodeDialog()- Specified by:
hasNodeDialogin interfaceNodeDialogFactory- Returns:
trueif there is a dialog, otherwisefalse
-
createNodeDialog
Description copied from interface:NodeDialogFactoryCreates a new node dialog instance. It is guaranteed that aNodeContextis available when the method is called.- Specified by:
createNodeDialogin interfaceNodeDialogFactory- Returns:
- Create the dialog containing all the dialog elements that were found in the
SubNodeContainer
-