|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.node.workflow.NodePortAdaptor
org.knime.core.node.workflow.NodeContainerOutPort
public class NodeContainerOutPort
The implementation of an OutPort of a SingleNodeContainer - e.g. a "real" node.
| Constructor Summary | |
|---|---|
NodeContainerOutPort(SingleNodeContainer snc,
int portIndex)
Creates a new output port with a fixed and ID (should unique to all other output ports of this node) for the given node. |
|
| Method Summary | |
|---|---|
boolean |
addNodeStateChangeListener(NodeStateChangeListener listener)
|
void |
disposePortView()
Dispose the view (if any) associated with this port. |
protected void |
finalize()
|
FlowObjectStack |
getFlowObjectStack()
Lets the underlying SingleNodeContainer create an outgoing
flow object stack and returns it. |
HiLiteHandler |
getHiLiteHandler()
Returns the hilite handler for this port as set by the node this port is output for. |
NodeContainer.State |
getNodeState()
|
PortObject |
getPortObject()
Returns the DataTable for this port, as set by the node this port is output for. |
PortObjectSpec |
getPortObjectSpec()
Returns the DataTableSpec or null if not available. |
String |
getPortSummary()
Get summary of the underlying port object as provided by PortObject.getSummary(). |
protected OutPortView |
getPortView()
Returns the port view for this output port which can be null. |
boolean |
isInactive()
|
void |
notifyNodeStateChangeListener(NodeStateEvent e)
|
void |
openPortView(String name)
Opens the port view for this port with the given name. |
boolean |
removeNodeStateChangeListener(NodeStateChangeListener listener)
|
void |
stateChanged(NodeStateEvent state)
Callback from node, indicating that the given node has changed its state. |
| Methods inherited from class org.knime.core.node.workflow.NodePortAdaptor |
|---|
getPortIndex, getPortName, getPortType, setPortName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.knime.core.node.workflow.NodePort |
|---|
getPortIndex, getPortName, getPortType, setPortName |
| Constructor Detail |
|---|
public NodeContainerOutPort(SingleNodeContainer snc,
int portIndex)
snc - the underlying SingleNodeContainer.portIndex - the (output) port index.| Method Detail |
|---|
public PortObjectSpec getPortObjectSpec()
DataTableSpec or null if not available.
getPortObjectSpec in interface NodeOutPortDataTableSpec for this port.public PortObject getPortObject()
getPortObject in interface NodeOutPortpublic String getPortSummary()
PortObject.getSummary(). It's a separate method since calling
getPortObject().getSummary() may force the underlying table (if it is
a table) to restore its content from disc. Summaries are saved in the
workflow file (or the node's corresponding sub directory).
getPortSummary in interface NodeOutPortpublic boolean isInactive()
isInactive in interface NodeOutPortInactiveBranchPortObjectSpecpublic NodeContainer.State getNodeState()
getNodeState in interface NodeOutPortpublic HiLiteHandler getHiLiteHandler()
getHiLiteHandler in interface NodeOutPortpublic FlowObjectStack getFlowObjectStack()
SingleNodeContainer create an outgoing
flow object stack and returns it.
getFlowObjectStack in interface NodeOutPortSingleNodeContainer.createOutFlowObjectStack()protected final OutPortView getPortView()
public void openPortView(String name)
openPortView in interface NodeOutPortname - The name of the port view.public void disposePortView()
disposePortView in interface NodeOutPort
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic boolean addNodeStateChangeListener(NodeStateChangeListener listener)
addNodeStateChangeListener in interface NodeOutPortlistener - a listener to the state of the port, that is the state
of the predecessor node
public void notifyNodeStateChangeListener(NodeStateEvent e)
notifyNodeStateChangeListener in interface NodeOutPorte - the event which should be forwarded to all regsitered
NodeStateChangeListenerspublic boolean removeNodeStateChangeListener(NodeStateChangeListener listener)
removeNodeStateChangeListener in interface NodeOutPortlistener - the listener to be de-registered
public void stateChanged(NodeStateEvent state)
stateChanged in interface NodeStateChangeListenerstate - Indicates the change of this node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||