org.knime.base.node.io.def
Class DefaultTableNodeFactory

java.lang.Object
  extended by org.knime.core.node.NodeFactory
      extended by org.knime.base.node.io.def.DefaultTableNodeFactory

public class DefaultTableNodeFactory
extends NodeFactory

Its the factory for a DefaultTableNodeModel. It will produce a NodeModel with a constant DataTable which was defined by the parameters passed to the factory's constructor. No NodeDialogPane or NodeView is available.

Author:
Peter Ohl, University of Konstanz

Nested Class Summary
 
Nested classes/interfaces inherited from class org.knime.core.node.NodeFactory
NodeFactory.NodeType
 
Constructor Summary
DefaultTableNodeFactory(DataRow[] rows, DataTableSpec spec)
          Also this constructor is available in DefaultTable.
DefaultTableNodeFactory(DataRow[] rows, String[] columnNames, DataType[] columnTypes)
          We provide the same constructors as the DefaultTable.
DefaultTableNodeFactory(Object[][] data, String[] rowHeader, String[] colHeader)
          We provide the same constructors as the DefaultTable.
 
Method Summary
 NodeDialogPane createNodeDialogPane()
          Creates and returns a new node dialog pane, if NodeFactory.hasDialog() returns true.
 NodeModel createNodeModel()
          Creates and returns a new instance of the node's corresponding model.
 NodeView createNodeView(int i, NodeModel nodeModel)
          Creates and returns a new node view for the given index.
 int getNrNodeViews()
          Returns the number of possible views or 0 if no view is available.
 boolean hasDialog()
          Returns true if this node provides a dialog to adjust node specific settings.
 
Methods inherited from class org.knime.core.node.NodeFactory
addLoadedFactory, createAbstractNodeView, getDefaultIcon, getIcon, getInportDescription, getInportName, getLoadedNodeFactories, getNodeName, getNodeViewName, getOutportDescription, getOutportName, getType, getViewDescription, getXMLDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTableNodeFactory

public DefaultTableNodeFactory(DataRow[] rows,
                               String[] columnNames,
                               DataType[] columnTypes)
We provide the same constructors as the DefaultTable.

Parameters:
rows - see DefaultTable constructor
columnNames - see DefaultTable constructor
columnTypes - see DefaultTable constructor
See Also:
DefaultTable

DefaultTableNodeFactory

public DefaultTableNodeFactory(DataRow[] rows,
                               DataTableSpec spec)
Also this constructor is available in DefaultTable.

Parameters:
rows - Passed to constructor of DefaultTable
spec - Passed to constructor of DefaultTable
See Also:
DefaultTable.DefaultTable( DataRow[], DataTableSpec)

DefaultTableNodeFactory

public DefaultTableNodeFactory(Object[][] data,
                               String[] rowHeader,
                               String[] colHeader)
We provide the same constructors as the DefaultTable.

Parameters:
data - see DefaultTable constructor
rowHeader - see DefaultTable constructor
colHeader - see DefaultTable constructor
See Also:
DefaultTable
Method Detail

createNodeModel

public NodeModel createNodeModel()
Creates and returns a new instance of the node's corresponding model.

Specified by:
createNodeModel in class NodeFactory
Returns:
A new NodeModel for this node. Never null!

getNrNodeViews

public int getNrNodeViews()
Returns the number of possible views or 0 if no view is available.

Specified by:
getNrNodeViews in class NodeFactory
Returns:
number of views available for this node
See Also:
NodeFactory.createNodeView(int,NodeModel)

createNodeView

public NodeView createNodeView(int i,
                               NodeModel nodeModel)
Creates and returns a new node view for the given index.

Specified by:
createNodeView in class NodeFactory
Parameters:
i - The index for the view to create.
nodeModel - the underlying model
Returns:
a new node view for the given index
See Also:
NodeFactory.getNrNodeViews()

hasDialog

public boolean hasDialog()
Description copied from class: NodeFactory
Returns true if this node provides a dialog to adjust node specific settings.

Specified by:
hasDialog in class NodeFactory
Returns:
false.
See Also:
NodeFactory.hasDialog()

createNodeDialogPane

public NodeDialogPane createNodeDialogPane()
Creates and returns a new node dialog pane, if NodeFactory.hasDialog() returns true.

Specified by:
createNodeDialogPane in class NodeFactory
Returns:
node dialog pane
See Also:
NodeFactory.hasDialog()


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
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.