|
||||||||||
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()
Returns the FlowObjectStack of the underlying node. |
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. |
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 NodeOutPort
DataTableSpec
for this port.public PortObject getPortObject()
getPortObject
in interface NodeOutPort
public 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 NodeOutPort
public NodeContainer.State getNodeState()
getNodeState
in interface NodeOutPort
public HiLiteHandler getHiLiteHandler()
getHiLiteHandler
in interface NodeOutPort
public FlowObjectStack getFlowObjectStack()
FlowObjectStack
of the underlying node.
getFlowObjectStack
in interface NodeOutPort
protected final OutPortView getPortView()
public void openPortView(String name)
openPortView
in interface NodeOutPort
name
- The name of the port view.public void disposePortView()
disposePortView
in interface NodeOutPort
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public boolean addNodeStateChangeListener(NodeStateChangeListener listener)
addNodeStateChangeListener
in interface NodeOutPort
listener
- a listener to the state of the port, that is the state
of the predecessor node
public void notifyNodeStateChangeListener(NodeStateEvent e)
notifyNodeStateChangeListener
in interface NodeOutPort
e
- the event which should be forwarded to all regsitered
NodeStateChangeListener
spublic boolean removeNodeStateChangeListener(NodeStateChangeListener listener)
removeNodeStateChangeListener
in interface NodeOutPort
listener
- the listener to be de-registered
public void stateChanged(NodeStateEvent state)
stateChanged
in interface NodeStateChangeListener
state
- Indicates the change of this node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |