Package org.knime.gateway.api.entity
Class PortViewEnt
java.lang.Object
org.knime.gateway.api.entity.NodeUIExtensionEnt<NodePortWrapper>
org.knime.gateway.api.entity.PortViewEnt
Port view entity containing the info required by the UI (i.e. frontend) to be able to display a port view.
- Author:
- Martin Horn, KNIME GmbH, Konstanz, Germany
-
Constructor Summary
ConstructorsConstructorDescriptionPortViewEnt(NodePortWrapper wrapper, PortViewManager manager, Supplier<List<String>> initialSelectionSupplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic PortViewEntcreatePortViewEntAndInitSelectionEventSource(NodePortWrapper npw, PortViewManager manager, BiConsumer<String, Object> eventConsumer) Helper to create a port with and at the same time initialize theSelectionEventSourcewhile also determining the initial selection.Methods inherited from class org.knime.gateway.api.entity.NodeUIExtensionEnt
getExtensionType, getInitialData, getNodeId, getProjectId, getResourceInfo, getWorkflowId
-
Constructor Details
-
PortViewEnt
public PortViewEnt(NodePortWrapper wrapper, PortViewManager manager, Supplier<List<String>> initialSelectionSupplier) - Parameters:
wrapper-manager-initialSelectionSupplier- supplies the initial selection; can benullif selection is not supported by the port view
-
-
Method Details
-
createPortViewEntAndInitSelectionEventSource
public static PortViewEnt createPortViewEntAndInitSelectionEventSource(NodePortWrapper npw, PortViewManager manager, BiConsumer<String, Object> eventConsumer) Helper to create a port with and at the same time initialize theSelectionEventSourcewhile also determining the initial selection. The listeners for theSelectionEventSourceon the node are removed on node state change.- Parameters:
npw-manager-eventConsumer- consumer of theSelectionEventSource-events- Returns:
- a new port view ent instance
-
getIFrameStyle
- Returns:
- custom styling of the iframe that displays the port view's page
-
getNodeInfo
- Returns:
- additional info for the node providing the view
-
getInitialSelection
- Returns:
- the initial selection (e.g. a list of row keys)
-