Class WorkflowInPortWrapper

java.lang.Object
org.knime.core.ui.wrapper.AbstractWrapper<org.knime.core.node.workflow.WorkflowInPort>
org.knime.core.ui.wrapper.WorkflowInPortWrapper
All Implemented Interfaces:
NodeInPortUI, NodePortUI, WorkflowInPortUI, UI, Wrapper<org.knime.core.node.workflow.WorkflowInPort>

public class WorkflowInPortWrapper extends AbstractWrapper<org.knime.core.node.workflow.WorkflowInPort> implements WorkflowInPortUI
UI-interface implementation that wraps a WorkflowInPort.
Author:
Martin Horn, University of Konstanz
  • Method Details

    • wrap

      public static final WorkflowInPortWrapper wrap(org.knime.core.node.workflow.WorkflowInPort wip)
      Parameters:
      wip - the object to be wrapped
      Returns:
      a new wrapper or a already existing one
    • getUnderlyingPort

      public NodeOutPortUI getUnderlyingPort()
      Specified by:
      getUnderlyingPort in interface WorkflowInPortUI
      Returns:
      the underlyingOutPort
    • setPortIndex

      public void setPortIndex(int portIndex)
      Specified by:
      setPortIndex in interface WorkflowInPortUI
      Parameters:
      portIndex - the new portIndex to set
    • getPortIndex

      public final int getPortIndex()
      Specified by:
      getPortIndex in interface NodePortUI
      Returns:
      The port index.
    • getPortType

      public final org.knime.core.node.port.PortType getPortType()
      Specified by:
      getPortType in interface NodePortUI
      Returns:
      The port type.
    • getPortName

      public final String getPortName()
      Specified by:
      getPortName in interface NodePortUI
      Returns:
      The port name.
    • setPortName

      public final void setPortName(String portName)
      Description copied from interface: NodePortUI
      Sets a new name for this port. If null or an empty string is passed, the default name will be generated: "Port [" + portID + "]".
      Specified by:
      setPortName in interface NodePortUI
      Parameters:
      portName - The new name for this port. If null is passed, the default name will be generated.