|
||||||||||
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.NodeOutPortWrapper
public class NodeOutPortWrapper
Constructor Summary | |
---|---|
NodeOutPortWrapper(int portIndex,
PortType pType)
Creates a new output port with a fixed type and index (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. |
boolean |
equals(Object obj)
|
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() . |
(package private) NodeOutPort |
getUnderlyingPort()
|
int |
hashCode()
|
void |
notifyNodeStateChangeListener(NodeStateEvent e)
|
void |
openPortView(String name)
Opens the port view for this port with the given name. |
boolean |
removeNodeStateChangeListener(NodeStateChangeListener listener)
|
(package private) void |
setUnderlyingPort(NodeOutPort p)
Set a new underlying port - used when the connection inside this workflow to this outgoing port changes. |
void |
stateChanged(NodeStateEvent state)
Callback from node, indicating that the given node has changed its state. |
String |
toString()
|
Methods inherited from class org.knime.core.node.workflow.NodePortAdaptor |
---|
getPortIndex, getPortName, getPortType, setPortName |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.knime.core.node.workflow.NodePort |
---|
getPortIndex, getPortName, getPortType, setPortName |
Constructor Detail |
---|
NodeOutPortWrapper(int portIndex, PortType pType)
pType
- The port's typeportIndex
- This port indexMethod Detail |
---|
void setUnderlyingPort(NodeOutPort p)
p
- new portNodeOutPort getUnderlyingPort()
public HiLiteHandler getHiLiteHandler()
getHiLiteHandler
in interface NodeOutPort
public FlowObjectStack getFlowObjectStack()
FlowObjectStack
of the underlying node.
getFlowObjectStack
in interface NodeOutPort
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 PortObjectSpec getPortObjectSpec()
DataTableSpec
or null if not available.
getPortObjectSpec
in interface NodeOutPort
DataTableSpec
for this port.public void openPortView(String name)
openPortView
in interface NodeOutPort
name
- The name of the port view.public void disposePortView()
disposePortView
in interface NodeOutPort
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
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 |