Class ConnectionContainerWrapper

java.lang.Object
org.knime.core.ui.wrapper.AbstractWrapper<org.knime.core.node.workflow.ConnectionContainer>
org.knime.core.ui.wrapper.ConnectionContainerWrapper
All Implemented Interfaces:
EventListener, org.knime.core.node.workflow.ConnectionProgressListener, ConnectionContainerUI, UI, Wrapper<org.knime.core.node.workflow.ConnectionContainer>

public final class ConnectionContainerWrapper extends AbstractWrapper<org.knime.core.node.workflow.ConnectionContainer> implements ConnectionContainerUI
UI-interface implementation that wraps a ConnectionContainer.
Author:
Martin Horn, University of Konstanz
  • Constructor Details

    • ConnectionContainerWrapper

      protected ConnectionContainerWrapper(org.knime.core.node.workflow.ConnectionContainer delegate)
      Parameters:
      delegate -
  • Method Details

    • wrap

      public static ConnectionContainerWrapper wrap(org.knime.core.node.workflow.ConnectionContainer cc)
      Parameters:
      cc - the object to be wrapped
      Returns:
      a new wrapper or a already existing one
    • getUIInfo

      public org.knime.core.node.workflow.ConnectionUIInformation getUIInfo()
      Specified by:
      getUIInfo in interface ConnectionContainerUI
      Returns:
      the uiInfo
    • getDest

      public org.knime.core.node.workflow.NodeID getDest()
      Specified by:
      getDest in interface ConnectionContainerUI
      Returns:
      the dest
    • getDestPort

      public int getDestPort()
      Specified by:
      getDestPort in interface ConnectionContainerUI
      Returns:
      the destPort
    • getSource

      public org.knime.core.node.workflow.NodeID getSource()
      Specified by:
      getSource in interface ConnectionContainerUI
      Returns:
      the source
    • getSourcePort

      public int getSourcePort()
      Specified by:
      getSourcePort in interface ConnectionContainerUI
      Returns:
      the sourcePort
    • isDeletable

      public boolean isDeletable()
      Specified by:
      isDeletable in interface ConnectionContainerUI
      Returns:
      the isDeletable
    • getType

      public org.knime.core.node.workflow.ConnectionContainer.ConnectionType getType()
      Specified by:
      getType in interface ConnectionContainerUI
      Returns:
      type of the connection
    • getID

      public org.knime.core.node.workflow.ConnectionID getID()
      Specified by:
      getID in interface ConnectionContainerUI
      Returns:
      the ID for this connection.
    • setUIInfo

      public void setUIInfo(org.knime.core.node.workflow.ConnectionUIInformation uiInfo)
      Specified by:
      setUIInfo in interface ConnectionContainerUI
      Parameters:
      uiInfo - the uiInfo to set
    • addUIInformationListener

      public void addUIInformationListener(org.knime.core.node.workflow.ConnectionUIInformationListener l)
      Description copied from interface: ConnectionContainerUI
      Add a listener to the list of registered listeners.
      Specified by:
      addUIInformationListener in interface ConnectionContainerUI
      Parameters:
      l - The listener to add, must not be null.
    • removeUIInformationListener

      public void removeUIInformationListener(org.knime.core.node.workflow.ConnectionUIInformationListener l)
      Description copied from interface: ConnectionContainerUI
      Remove a registered listener from the listener list.
      Specified by:
      removeUIInformationListener in interface ConnectionContainerUI
      Parameters:
      l - The listener to remove.
    • addProgressListener

      public void addProgressListener(org.knime.core.node.workflow.ConnectionProgressListener listener)
      Description copied from interface: ConnectionContainerUI
      Adds a listener to the list of registered progress listeners.
      Specified by:
      addProgressListener in interface ConnectionContainerUI
      Parameters:
      listener - The listener to add, must not be null.
    • removeProgressListener

      public void removeProgressListener(org.knime.core.node.workflow.ConnectionProgressListener listener)
      Description copied from interface: ConnectionContainerUI
      Removes a listener from the list of registered progress listeners.
      Specified by:
      removeProgressListener in interface ConnectionContainerUI
      Parameters:
      listener - The listener to remove
    • progressChanged

      public void progressChanged(org.knime.core.node.workflow.ConnectionProgressEvent pe)
      Specified by:
      progressChanged in interface org.knime.core.node.workflow.ConnectionProgressListener
    • cleanup

      public void cleanup()
      Description copied from interface: ConnectionContainerUI
      Removes all registered listeners in order to release references on this object.
      Specified by:
      cleanup in interface ConnectionContainerUI
    • isFlowVariablePortConnection

      public boolean isFlowVariablePortConnection()
      Specified by:
      isFlowVariablePortConnection in interface ConnectionContainerUI
      Returns:
      whether the connection connects two flow variable ports