Interface NodeViewFactory<T extends org.knime.core.node.NodeModel>

Type Parameters:
T - the node model this node view will have access to
All Superinterfaces:
org.knime.core.node.wizard.page.WizardPageContribution

public interface NodeViewFactory<T extends org.knime.core.node.NodeModel> extends org.knime.core.node.wizard.page.WizardPageContribution
Implemented by NodeFactorys to register a node view. Pending API - needs to be integrated with NodeFactory eventually.
Since:
4.5
Author:
Martin Horn, KNIME GmbH, Konstanz, Germany
  • Method Summary

    Modifier and Type
    Method
    Description
    createNodeView(T nodeModel)
    Creates a new node view instance.
    default Optional<String>
    getInitialViewValue(org.knime.core.node.workflow.NativeNodeContainer nnc)
    default void
    loadViewValue(org.knime.core.node.workflow.NativeNodeContainer nnc, String value)
    default Optional<String>
    validateViewValue(org.knime.core.node.workflow.NativeNodeContainer nnc, String value)

    Methods inherited from interface org.knime.core.node.wizard.page.WizardPageContribution

    hasNodeView
  • Method Details

    • createNodeView

      NodeView createNodeView(T nodeModel)
      Creates a new node view instance. It is guaranteed that a NodeContext is available when the method is called.
      Parameters:
      nodeModel - the node model to create the view for
      Returns:
      a new node view instance
    • validateViewValue

      default Optional<String> validateViewValue(org.knime.core.node.workflow.NativeNodeContainer nnc, String value) throws IOException
      Specified by:
      validateViewValue in interface org.knime.core.node.wizard.page.WizardPageContribution
      Throws:
      IOException
    • loadViewValue

      default void loadViewValue(org.knime.core.node.workflow.NativeNodeContainer nnc, String value) throws IOException
      Specified by:
      loadViewValue in interface org.knime.core.node.wizard.page.WizardPageContribution
      Throws:
      IOException
    • getInitialViewValue

      default Optional<String> getInitialViewValue(org.knime.core.node.workflow.NativeNodeContainer nnc)
      Specified by:
      getInitialViewValue in interface org.knime.core.node.wizard.page.WizardPageContribution