Class TableViewManager<N extends NodeWrapper>

java.lang.Object
org.knime.core.webui.node.view.table.TableViewManager<N>
Type Parameters:
N -

public final class TableViewManager<N extends NodeWrapper> extends Object
Manages TableView-instances.
Author:
Martin Horn, KNIME GmbH, Konstanz, Germany
  • Constructor Details

    • TableViewManager

      public TableViewManager(Function<N,TableView> getTableView)
      Parameters:
      getTableView - a function that returns the table view if there is one, otherwise null
  • Method Details

    • callSelectionTranslationService

      public Set<org.knime.core.data.RowKey> callSelectionTranslationService(N node, List<String> selection) throws IOException
      Parameters:
      node - the node wrapper to call the data service for
      selection - 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
      Parameters:
      node - the node wrapper to call the data service for
      rowKeys - 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

      public Optional<org.knime.core.node.property.hilite.HiLiteHandler> getHiLiteHandler(N nw)
      Parameters:
      nw -
      Returns:
      the HiLiteHandler for the given node/port or an empty optional if there is none, because it's not a TableView
    • 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 HiLiteHandler at the given port or an empty optional if there is none
    • clearCaches

      public void clearCaches()
      Clears the cached selection services.