Class SubNodeContainerDialogFactory

java.lang.Object
org.knime.core.webui.node.dialog.SubNodeContainerDialogFactory
All Implemented Interfaces:
NodeDialogFactory

public final class SubNodeContainerDialogFactory extends Object implements 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 Details

    • SubNodeContainerDialogFactory

      public SubNodeContainerDialogFactory(org.knime.core.node.workflow.SubNodeContainer snc)
      Initialize a SubNodeContainerDialogFactory with the SubNodeContainer for 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 SubNodeContainer NodeDialogs should be used
    • hasNodeDialog

      public boolean hasNodeDialog()
      Specified by:
      hasNodeDialog in interface NodeDialogFactory
      Returns:
      true if there is a dialog, otherwise false
    • createNodeDialog

      public NodeDialog createNodeDialog()
      Description copied from interface: NodeDialogFactory
      Creates a new node dialog instance. It is guaranteed that a NodeContext is available when the method is called.
      Specified by:
      createNodeDialog in interface NodeDialogFactory
      Returns:
      Create the dialog containing all the dialog elements that were found in the SubNodeContainer