Package org.knime.core.ui.wrapper
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
-
Field Summary
Fields inherited from interface org.knime.core.ui.wrapper.Wrapper
WRAPPER_MAP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionContainerWrapper(org.knime.core.node.workflow.ConnectionContainer delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressListener(org.knime.core.node.workflow.ConnectionProgressListener listener) Adds a listener to the list of registered progress listeners.voidaddUIInformationListener(org.knime.core.node.workflow.ConnectionUIInformationListener l) Add a listener to the list of registered listeners.voidcleanup()Removes all registered listeners in order to release references on this object.org.knime.core.node.workflow.NodeIDgetDest()intorg.knime.core.node.workflow.ConnectionIDgetID()org.knime.core.node.workflow.NodeIDintorg.knime.core.node.workflow.ConnectionContainer.ConnectionTypegetType()org.knime.core.node.workflow.ConnectionUIInformationbooleanbooleanvoidprogressChanged(org.knime.core.node.workflow.ConnectionProgressEvent pe) voidremoveProgressListener(org.knime.core.node.workflow.ConnectionProgressListener listener) Removes a listener from the list of registered progress listeners.voidremoveUIInformationListener(org.knime.core.node.workflow.ConnectionUIInformationListener l) Remove a registered listener from the listener list.voidsetUIInfo(org.knime.core.node.workflow.ConnectionUIInformation uiInfo) static ConnectionContainerWrapperwrap(org.knime.core.node.workflow.ConnectionContainer cc) Wraps the object viaWrapper.wrapOrGet(Object, java.util.function.Function).Methods inherited from class org.knime.core.ui.wrapper.AbstractWrapper
equals, hashCode, toString, unwrap
-
Constructor Details
-
ConnectionContainerWrapper
protected ConnectionContainerWrapper(org.knime.core.node.workflow.ConnectionContainer delegate) - Parameters:
delegate-
-
-
Method Details
-
wrap
Wraps the object viaWrapper.wrapOrGet(Object, java.util.function.Function).- 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:
getUIInfoin interfaceConnectionContainerUI- Returns:
- the uiInfo
-
getDest
public org.knime.core.node.workflow.NodeID getDest()- Specified by:
getDestin interfaceConnectionContainerUI- Returns:
- the dest
-
getDestPort
public int getDestPort()- Specified by:
getDestPortin interfaceConnectionContainerUI- Returns:
- the destPort
-
getSource
public org.knime.core.node.workflow.NodeID getSource()- Specified by:
getSourcein interfaceConnectionContainerUI- Returns:
- the source
-
getSourcePort
public int getSourcePort()- Specified by:
getSourcePortin interfaceConnectionContainerUI- Returns:
- the sourcePort
-
isDeletable
public boolean isDeletable()- Specified by:
isDeletablein interfaceConnectionContainerUI- Returns:
- the isDeletable
-
getType
public org.knime.core.node.workflow.ConnectionContainer.ConnectionType getType()- Specified by:
getTypein interfaceConnectionContainerUI- Returns:
- type of the connection
-
getID
public org.knime.core.node.workflow.ConnectionID getID()- Specified by:
getIDin interfaceConnectionContainerUI- Returns:
- the ID for this connection.
-
setUIInfo
public void setUIInfo(org.knime.core.node.workflow.ConnectionUIInformation uiInfo) - Specified by:
setUIInfoin interfaceConnectionContainerUI- Parameters:
uiInfo- the uiInfo to set
-
addUIInformationListener
public void addUIInformationListener(org.knime.core.node.workflow.ConnectionUIInformationListener l) Description copied from interface:ConnectionContainerUIAdd a listener to the list of registered listeners.- Specified by:
addUIInformationListenerin interfaceConnectionContainerUI- 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:ConnectionContainerUIRemove a registered listener from the listener list.- Specified by:
removeUIInformationListenerin interfaceConnectionContainerUI- Parameters:
l- The listener to remove.
-
addProgressListener
public void addProgressListener(org.knime.core.node.workflow.ConnectionProgressListener listener) Description copied from interface:ConnectionContainerUIAdds a listener to the list of registered progress listeners.- Specified by:
addProgressListenerin interfaceConnectionContainerUI- 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:ConnectionContainerUIRemoves a listener from the list of registered progress listeners.- Specified by:
removeProgressListenerin interfaceConnectionContainerUI- Parameters:
listener- The listener to remove
-
progressChanged
public void progressChanged(org.knime.core.node.workflow.ConnectionProgressEvent pe) - Specified by:
progressChangedin interfaceorg.knime.core.node.workflow.ConnectionProgressListener
-
cleanup
public void cleanup()Description copied from interface:ConnectionContainerUIRemoves all registered listeners in order to release references on this object.- Specified by:
cleanupin interfaceConnectionContainerUI
-
isFlowVariablePortConnection
public boolean isFlowVariablePortConnection()- Specified by:
isFlowVariablePortConnectionin interfaceConnectionContainerUI- Returns:
- whether the connection connects two flow variable ports
-