Package org.knime.core.webui.node.impl
Class WebUINodeFactory<M extends org.knime.core.node.NodeModel>
java.lang.Object
org.knime.core.node.NodeFactory<M>
org.knime.core.webui.node.impl.WebUINodeFactory<M>
- Type Parameters:
M- the type of theWebUINodeModelcreated by this factory
- All Implemented Interfaces:
NodeDialogFactory
public abstract class WebUINodeFactory<M extends org.knime.core.node.NodeModel>
extends org.knime.core.node.NodeFactory<M>
implements NodeDialogFactory
A convenience class for simple WebUI nodes, i.e., nodes making use of the
DefaultNodeSettings and
DefaultNodeDialog classes. For an exemplary implementation, see
org.knime.core.webui.node.dialog.impl.TestWebUINodeFactory in org.knime.core.ui.tests.- Author:
- Marc Bux, KNIME GmbH, Berlin, Germany
-
Nested Class Summary
Nested classes/interfaces inherited from class org.knime.core.node.NodeFactory
org.knime.core.node.NodeFactory.NodeType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.knime.core.node.NodeDescriptionstatic org.knime.core.node.NodeDescriptioncreateNodeDescription(String name, String icon, PortDescription[] inPortDescriptions, PortDescription[] outPortDescriptions, String shortDescription, String fullDescription, Class<? extends DefaultNodeSettings> modelSettingsClass, Class<? extends DefaultNodeSettings> viewSettingsClass, String viewDescription, org.knime.core.node.NodeFactory.NodeType type, String[] keywords) static org.knime.core.node.NodeDescriptioncreateNodeDescription(String name, String icon, PortDescription[] inPortDescriptions, PortDescription[] outPortDescriptions, String shortDescription, String fullDescription, Class<? extends DefaultNodeSettings> modelSettingsClass, Class<? extends DefaultNodeSettings> viewSettingsClass, String viewDescription, org.knime.core.node.NodeFactory.NodeType type, String[] keywords, org.knime.core.util.Version sinceVersion) static org.knime.core.node.NodeDescriptioncreateNodeDescription(WebUINodeConfiguration configuration) final NodeDialogCreates a new node dialog instance.protected final org.knime.core.node.NodeDialogPanefinal org.knime.core.node.NodeView<M>createNodeView(int i, M nodeModel) final intfinal booleanMethods inherited from class org.knime.core.node.NodeFactory
addLoadedFactory, createAbstractNodeView, createNodeDialogPane, createNodeModel, createNodeModel, createNodeModel, getDefaultIcon, getFactoryId, getIcon, getInportDescription, getInportName, getInteractiveViewName, getKeywords, getLoadedNodeFactories, getNodeName, getNodeViewName, getOutportDescription, getOutportName, getPropertiesInputStream, getType, getViewDescription, getXMLDescription, init, isDeprecated, isLazilyInitialized, loadAdditionalFactorySettings, saveAdditionalFactorySettingsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.knime.core.webui.node.dialog.NodeDialogFactory
hasNodeDialog
-
Constructor Details
-
WebUINodeFactory
- Parameters:
configuration- theWebUINodeConfigurationfor this factory
-
-
Method Details
-
createNodeDescription
protected final org.knime.core.node.NodeDescription createNodeDescription() throws SAXException, IOException, org.apache.xmlbeans.XmlException- Overrides:
createNodeDescriptionin classorg.knime.core.node.NodeFactory<M extends org.knime.core.node.NodeModel>- Throws:
SAXExceptionIOExceptionorg.apache.xmlbeans.XmlException
-
createNodeDescription
public static org.knime.core.node.NodeDescription createNodeDescription(WebUINodeConfiguration configuration) - Parameters:
configuration- the config to create the node description for- Returns:
- a new
NodeDescription-instance derived from the givenWebUINodeConfiguration
-
createNodeDescription
public static org.knime.core.node.NodeDescription createNodeDescription(String name, String icon, PortDescription[] inPortDescriptions, PortDescription[] outPortDescriptions, String shortDescription, String fullDescription, Class<? extends DefaultNodeSettings> modelSettingsClass, Class<? extends DefaultNodeSettings> viewSettingsClass, String viewDescription, org.knime.core.node.NodeFactory.NodeType type, String[] keywords) - Parameters:
name- the name of the nodeicon- relative path to the node iconinPortDescriptions- the descriptions of the node's input portsoutPortDescriptions- the descriptions of the node's output portsshortDescription- the short node descriptionfullDescription- the full node descriptionmodelSettingsClass- the type of the model settings, or null, if the node has no model settingsviewSettingsClass- the type of the view settings, or null, if the node has no view settingsviewDescription- the view description, or null, if the node has no viewtype- the type of the node, or null, if it should be determined automaticallykeywords- the keywords for serach, or null.- Returns:
- a description for this node
-
createNodeDescription
public static org.knime.core.node.NodeDescription createNodeDescription(String name, String icon, PortDescription[] inPortDescriptions, PortDescription[] outPortDescriptions, String shortDescription, String fullDescription, Class<? extends DefaultNodeSettings> modelSettingsClass, Class<? extends DefaultNodeSettings> viewSettingsClass, String viewDescription, org.knime.core.node.NodeFactory.NodeType type, String[] keywords, org.knime.core.util.Version sinceVersion) - Parameters:
name- the name of the nodeicon- relative path to the node iconinPortDescriptions- the descriptions of the node's input portsoutPortDescriptions- the descriptions of the node's output portsshortDescription- the short node descriptionfullDescription- the full node descriptionmodelSettingsClass- the type of the model settings, or null, if the node has no model settingsviewSettingsClass- the type of the view settings, or null, if the node has no view settingsviewDescription- the view description, or null, if the node has no viewtype- the type of the node, or null, if it should be determined automaticallykeywords- the keywords for search, or null.sinceVersion- the KNIME AP version since which this node is available, or null- Returns:
- a description for this node
-
getNrNodeViews
public final int getNrNodeViews()- Specified by:
getNrNodeViewsin classorg.knime.core.node.NodeFactory<M extends org.knime.core.node.NodeModel>
-
createNodeView
- Specified by:
createNodeViewin classorg.knime.core.node.NodeFactory<M extends org.knime.core.node.NodeModel>
-
hasDialog
public final boolean hasDialog()- Specified by:
hasDialogin classorg.knime.core.node.NodeFactory<M extends org.knime.core.node.NodeModel>
-
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:
- a new node dialog instance
-
createNodeDialogPane
protected final org.knime.core.node.NodeDialogPane createNodeDialogPane()- Specified by:
createNodeDialogPanein classorg.knime.core.node.NodeFactory<M extends org.knime.core.node.NodeModel>
-