public class MissingNodeFactory extends DynamicNodeFactory<MissingNodeModel>
NodeFactory.NodeType
Constructor and Description |
---|
MissingNodeFactory(NodeAndBundleInformation nodeInfo,
NodeSettingsRO additionalFactorySettings,
PortType[] ins,
PortType[] outs)
Constructs factories.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addNodeDescription(org.knime.node2012.KnimeNodeDocument doc)
Subclasses should add the node description elements.
|
protected NodeDialogPane |
createNodeDialogPane()
Creates and returns a new node dialog pane, if
NodeFactory.hasDialog()
returns true . |
MissingNodeModel |
createNodeModel()
Creates and returns a new instance of the node's corresponding model.
|
NodeView<MissingNodeModel> |
createNodeView(int viewIndex,
MissingNodeModel nodeModel)
Creates and returns a new node view for the given index.
|
protected int |
getNrNodeViews()
Returns the number of views or 0 if no view is available.
|
NodeFactory.NodeType |
getType()
Returns the type of the node.
|
protected boolean |
hasDialog()
Returns
true if this node provides a dialog to adjust
node specific settings. |
void |
saveAdditionalFactorySettings(ConfigWO config)
Saves additional settings of this instance.
|
void |
setCopyInternDirForWorkflowVersionChange(boolean value)
Set to true by persistor if the loaded workflow was saved in an old format so that a new save would convert all
nodes into the new format.
|
createNodeDescription, getPropertiesInputStream, parseNodeDescriptionFromFile
addLoadedFactory, createAbstractNodeView, createNodeModel, getDefaultIcon, getIcon, getInportDescription, getInportName, getInteractiveViewName, getLoadedNodeFactories, getNodeName, getNodeViewName, getOutportDescription, getOutportName, getViewDescription, getXMLDescription, init, isDeprecated, loadAdditionalFactorySettings
public MissingNodeFactory(NodeAndBundleInformation nodeInfo, NodeSettingsRO additionalFactorySettings, PortType[] ins, PortType[] outs)
nodeInfo
- ...additionalFactorySettings
- ...ins
- ...outs
- ...public void setCopyInternDirForWorkflowVersionChange(boolean value)
value
- the copyInternDirForWorkflowVersionChange to setpublic MissingNodeModel createNodeModel()
createNodeModel
in class NodeFactory<MissingNodeModel>
NodeModel
for this node. Never null
!protected int getNrNodeViews()
getNrNodeViews
in class NodeFactory<MissingNodeModel>
NodeFactory.createNodeView(int,NodeModel)
public NodeView<MissingNodeModel> createNodeView(int viewIndex, MissingNodeModel nodeModel)
createNodeView
in class NodeFactory<MissingNodeModel>
viewIndex
- The index for the view to create.nodeModel
- the underlying modelNodeFactory.getNrNodeViews()
protected boolean hasDialog()
true
if this node provides a dialog to adjust
node specific settings.hasDialog
in class NodeFactory<MissingNodeModel>
true
if a NodeDialogPane
is
availableNodeFactory.createNodeDialogPane()
protected NodeDialogPane createNodeDialogPane()
NodeFactory.hasDialog()
returns true
.createNodeDialogPane
in class NodeFactory<MissingNodeModel>
NodeFactory.hasDialog()
public void saveAdditionalFactorySettings(ConfigWO config)
This method is mainly used in a dynamic context, where node factories are defined through a different extension that generates a set of node factories and not just a single one. Most derived node factories will therefore not overwrite this method (e.g. none of the wizard-generated factories).
saveAdditionalFactorySettings
in class NodeFactory<MissingNodeModel>
config
- To read from.protected void addNodeDescription(org.knime.node2012.KnimeNodeDocument doc)
KnimeNodeDocument
reflects the structure given
in http://www.knime.org/Node.dtd and allows one to create the node description document more easily (generated by
XMLBeans (see http://xmlbeans.apache.org/)addNodeDescription
in class DynamicNodeFactory<MissingNodeModel>
doc
- the document to add the description topublic NodeFactory.NodeType getType()
NodeFactory
getType
in class NodeFactory<MissingNodeModel>
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.