Class TableViewManager<N extends NodeWrapper>
java.lang.Object
org.knime.core.webui.node.view.table.TableViewManager<N>
- Type Parameters:
N-
Manages
TableView-instances.- Author:
- Martin Horn, KNIME GmbH, Konstanz, Germany
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.knime.core.data.RowKey>callSelectionTranslationService(N node, List<String> selection) Helper to call theSelectionTranslationService.toRowKeys(List).callSelectionTranslationService(N node, Set<org.knime.core.data.RowKey> rowKeys) Helper to call theSelectionTranslationService.fromRowKeys(Set).voidClears the cached selection services.Optional<org.knime.core.node.property.hilite.HiLiteHandler>getHiLiteHandler(N nw) static Optional<org.knime.core.node.property.hilite.HiLiteHandler>getOutHiLiteHandler(org.knime.core.node.workflow.NodeContainer nc, int portIndex)
-
Constructor Details
-
TableViewManager
- Parameters:
getTableView- a function that returns the table view if there is one, otherwisenull
-
-
Method Details
-
callSelectionTranslationService
public Set<org.knime.core.data.RowKey> callSelectionTranslationService(N node, List<String> selection) throws IOException Helper to call theSelectionTranslationService.toRowKeys(List).- Parameters:
node- the node wrapper to call the data service forselection- the selection to translate- Returns:
- the result of the translation, i.e., an array of row keys
- Throws:
IOException- if applying the selection failed
-
callSelectionTranslationService
public List<String> callSelectionTranslationService(N node, Set<org.knime.core.data.RowKey> rowKeys) throws IOException Helper to call theSelectionTranslationService.fromRowKeys(Set).- Parameters:
node- the node wrapper to call the data service forrowKeys- the row keys to translate- Returns:
- the result of the translation, i.e., a text-representation of the selection
- Throws:
IOException- if the translation failed
-
getHiLiteHandler
- Parameters:
nw-- Returns:
- the
HiLiteHandlerfor the given node/port or an empty optional if there is none, because it's not aTableView
-
getOutHiLiteHandler
public static Optional<org.knime.core.node.property.hilite.HiLiteHandler> getOutHiLiteHandler(org.knime.core.node.workflow.NodeContainer nc, int portIndex) - Parameters:
nc-portIndex- the output port index, excluding the flow variable port- Returns:
- the output
HiLiteHandlerat the given port or an empty optional if there is none
-
clearCaches
public void clearCaches()Clears the cached selection services.
-