Package org.knime.core.webui.node.view
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 TypeMethodDescriptioncreateNodeView(T nodeModel) Creates a new node view instance.getInitialViewValue(org.knime.core.node.workflow.NativeNodeContainer nnc) default voidloadViewValue(org.knime.core.node.workflow.NativeNodeContainer nnc, String value) 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
Creates a new node view instance. It is guaranteed that aNodeContextis 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:
validateViewValuein interfaceorg.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:
loadViewValuein interfaceorg.knime.core.node.wizard.page.WizardPageContribution- Throws:
IOException
-
getInitialViewValue
- Specified by:
getInitialViewValuein interfaceorg.knime.core.node.wizard.page.WizardPageContribution
-