Package org.knime.core.ui.wrapper
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
-
Field Summary
Fields inherited from interface org.knime.core.ui.wrapper.Wrapper
WRAPPER_MAP -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal Stringfinal org.knime.core.node.port.PortTypevoidsetPortIndex(int portIndex) final voidsetPortName(String portName) Sets a new name for this port.static final WorkflowInPortWrapperwrap(org.knime.core.node.workflow.WorkflowInPort wip) Wraps the object viaWrapper.wrapOrGet(Object, java.util.function.Function).Methods inherited from class org.knime.core.ui.wrapper.AbstractWrapper
equals, hashCode, toString, unwrap
-
Method Details
-
wrap
Wraps the object viaWrapper.wrapOrGet(Object, java.util.function.Function).- Parameters:
wip- the object to be wrapped- Returns:
- a new wrapper or a already existing one
-
getUnderlyingPort
- Specified by:
getUnderlyingPortin interfaceWorkflowInPortUI- Returns:
- the underlyingOutPort
-
setPortIndex
public void setPortIndex(int portIndex) - Specified by:
setPortIndexin interfaceWorkflowInPortUI- Parameters:
portIndex- the new portIndex to set
-
getPortIndex
public final int getPortIndex()- Specified by:
getPortIndexin interfaceNodePortUI- Returns:
- The port index.
-
getPortType
public final org.knime.core.node.port.PortType getPortType()- Specified by:
getPortTypein interfaceNodePortUI- Returns:
- The port type.
-
getPortName
- Specified by:
getPortNamein interfaceNodePortUI- Returns:
- The port name.
-
setPortName
Description copied from interface:NodePortUISets a new name for this port. If null or an empty string is passed, the default name will be generated: "Port [" + portID + "]".- Specified by:
setPortNamein interfaceNodePortUI- Parameters:
portName- The new name for this port. If null is passed, the default name will be generated.
-